sha/Makefile
2023-07-07 17:36:36 +08:00

24 lines
323 B
Makefile

CROSS_COMPILE ?=
CC := $(CROSS_COMPILE)gcc
STRIP := $(CROSS_COMPILE)strip
CFLAGS += -g -Wall -Os
LDFLAGS +=
OBJ := sha
all: aes.o sha.o
$(CC) $(CFLAGS) -o $(OBJ) $^ $(LDFLAGS)
: $(STRIP) $(OBJ)
.c.o:
$(CC) $(CFLAGS) -c $<
install:
cp $(OBJ) /bin/
uninstall:
rm /bin/$(OBJ)
clean:
rm -rf *.o
rm $(OBJ)