1# 2# To run the demos when linked with a shared library (default) ensure that 3# libcrypto is on the library path. For example: 4# 5# LD_LIBRARY_PATH=../.. ./hkdf 6 7TESTS = hkdf \ 8 pbkdf2 \ 9 scrypt \ 10 argon2 11 12CFLAGS = -I../../include -g -Wall 13LDFLAGS = -L../.. 14LDLIBS = -lcrypto 15 16all: $(TESTS) 17 18hkdf: hkdf.o 19pbkdf2: pbkdf2.o 20scrypt: scrypt.o 21argon2: argon2.o 22 23$(TESTS): 24 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LDLIBS) 25 26clean: 27 $(RM) *.o $(TESTS) 28 29.PHONY: test 30test: all 31 @echo "\nKDF tests:" 32 @set -e; for tst in $(TESTS); do \ 33 echo "\n"$$tst; \ 34 LD_LIBRARY_PATH=../.. ./$$tst; \ 35 done 36