稍微优化

This commit is contained in:
2022-09-14 16:47:34 +08:00
parent fbfc828997
commit e4243709c2
2 changed files with 34 additions and 30 deletions

View File

@@ -2,16 +2,16 @@ CROSS_COMPILE ?=
CC := $(CROSS_COMPILE)gcc
STRIP := $(CROSS_COMPILE)strip
CFLAGS += -g -Wall -Os
LIBS = -static
LDFLAGS +=
OBJ := sha
all: aes.o sha.o
$(CC) $(CFLAGS) -o $(OBJ) $^ $(LIBS)
$(CC) $(CFLAGS) -o $(OBJ) $^ $(LDFLAGS)
.c.o:
$(CC) $(CFLAGS) -c $<
install:
cp $(OBJ) /bin/sha
cp $(OBJ) /bin/
uninstall:
rm /bin/$(OBJ)