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