Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
23 lines (16 sloc) 498 Bytes
CC = gcc
CFLAGS = $(shell grep '^CFLAGS = ' crypt_blowfish/Makefile | cut -d= -f2-)
.PHONY: crypt_blowfish
all: bcrypt.a
test: bcrypt.c crypt_blowfish
$(CC) $(CFLAGS) -DTEST_BCRYPT -c bcrypt.c
$(CC) -o bcrypt_test bcrypt.o crypt_blowfish/*.o
bcrypt.a: bcrypt.o crypt_blowfish
ar r bcrypt.a bcrypt.o crypt_blowfish/*.o
bcrypt.o: bcrypt.c
$(CC) $(CFLAGS) -c bcrypt.c
crypt_blowfish:
$(MAKE) -C crypt_blowfish
clean:
rm -f *.o bcrypt_test bcrypt.a *~ core
$(MAKE) -C crypt_blowfish clean