23 lines
307 B
Makefile
23 lines
307 B
Makefile
CROSS_COMPILE ?=
|
|
CC := $(CROSS_COMPILE)gcc
|
|
STRIP := $(CROSS_COMPILE)strip
|
|
CFLAGS += -g -Wall -Os
|
|
LIBS = -static
|
|
OBJ := sha
|
|
|
|
all: aes.o sha.o
|
|
$(CC) $(CFLAGS) -o $(OBJ) $^ $(LIBS)
|
|
.c.o:
|
|
$(CC) $(CFLAGS) -c $<
|
|
|
|
install:
|
|
cp $(OBJ) /bin/sha
|
|
|
|
uninstall:
|
|
rm /bin/$(OBJ)
|
|
|
|
clean:
|
|
rm -rf *.o
|
|
rm $(OBJ)
|
|
|