2022-09-07 15:41:40 +08:00
|
|
|
CROSS_COMPILE ?=
|
|
|
|
CC := $(CROSS_COMPILE)gcc
|
|
|
|
STRIP := $(CROSS_COMPILE)strip
|
2022-09-09 10:07:24 +08:00
|
|
|
CFLAGS += -g -Wall -Os
|
2022-09-14 16:47:34 +08:00
|
|
|
LDFLAGS +=
|
2022-09-07 15:41:40 +08:00
|
|
|
OBJ := sha
|
|
|
|
|
2022-09-09 10:07:24 +08:00
|
|
|
all: aes.o sha.o
|
2022-09-14 16:47:34 +08:00
|
|
|
$(CC) $(CFLAGS) -o $(OBJ) $^ $(LDFLAGS)
|
2023-07-07 17:36:36 +08:00
|
|
|
: $(STRIP) $(OBJ)
|
2022-09-07 15:41:40 +08:00
|
|
|
.c.o:
|
|
|
|
$(CC) $(CFLAGS) -c $<
|
|
|
|
|
2022-09-13 12:49:32 +08:00
|
|
|
install:
|
2022-09-14 16:47:34 +08:00
|
|
|
cp $(OBJ) /bin/
|
2022-09-13 12:49:32 +08:00
|
|
|
|
|
|
|
uninstall:
|
|
|
|
rm /bin/$(OBJ)
|
|
|
|
|
2022-09-07 15:41:40 +08:00
|
|
|
clean:
|
|
|
|
rm -rf *.o
|
|
|
|
rm $(OBJ)
|
|
|
|
|