sha/Makefile

23 lines
307 B
Makefile
Raw Normal View History

2022-09-07 15:41:40 +08:00
CROSS_COMPILE ?=
CC := $(CROSS_COMPILE)gcc
STRIP := $(CROSS_COMPILE)strip
CFLAGS += -g -Wall -Os
2022-09-07 15:41:40 +08:00
LIBS = -static
OBJ := sha
all: aes.o sha.o
2022-09-07 15:41:40 +08:00
$(CC) $(CFLAGS) -o $(OBJ) $^ $(LIBS)
.c.o:
$(CC) $(CFLAGS) -c $<
install:
cp $(OBJ) /bin/sha
uninstall:
rm /bin/$(OBJ)
2022-09-07 15:41:40 +08:00
clean:
rm -rf *.o
rm $(OBJ)