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=../.. ./EVP_PKEY_EC_keygen 6 1.1 christos 7 1.1 christos TESTS = EVP_PKEY_EC_keygen \ 8 1.1 christos EVP_PKEY_RSA_keygen \ 9 1.1 christos EVP_PKEY_DSA_keygen \ 10 1.1 christos EVP_PKEY_DSA_paramgen \ 11 1.1 christos EVP_PKEY_DSA_paramvalidate \ 12 1.1 christos EVP_PKEY_DSA_paramfromdata 13 1.1 christos 14 1.1 christos CFLAGS = -I../../include -g -Wall 15 1.1 christos LDFLAGS = -L../.. 16 1.1 christos LDLIBS = -lcrypto 17 1.1 christos 18 1.1 christos all: $(TESTS) 19 1.1 christos 20 1.1 christos EVP_PKEY_DSA_keygen.o: EVP_PKEY_DSA_keygen.c dsa.inc 21 1.1 christos EVP_PKEY_DSA_paramgen.o: EVP_PKEY_DSA_paramgen.c dsa.inc 22 1.1 christos EVP_PKEY_DSA_paramvalidate.o: EVP_PKEY_DSA_paramvalidate.c dsa.inc 23 1.1 christos EVP_PKEY_DSA_paramfromdata.o: EVP_PKEY_DSA_paramfromdata.c dsa.inc 24 1.1 christos 25 1.1 christos EVP_PKEY_EC_keygen: EVP_PKEY_EC_keygen.o 26 1.1 christos EVP_PKEY_RSA_keygen: EVP_PKEY_RSA_keygen.o 27 1.1 christos EVP_PKEY_DSA_keygen: EVP_PKEY_DSA_keygen.o 28 1.1 christos EVP_PKEY_DSA_paramgen: EVP_PKEY_DSA_paramgen.o 29 1.1 christos EVP_PKEY_DSA_paramvalidate: EVP_PKEY_DSA_paramvalidate.o 30 1.1 christos EVP_PKEY_DSA_paramfromdata: EVP_PKEY_DSA_paramfromdata.o 31 1.1 christos 32 1.1 christos $(TESTS): 33 1.1 christos $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LDLIBS) 34 1.1 christos 35 1.1 christos clean: 36 1.1 christos $(RM) *.o $(TESTS) 37 1.1 christos 38 1.1 christos .PHONY: test 39 1.1 christos test: all 40 1.1 christos @echo "\nPKEY tests:" 41 1.1 christos @set -e; for tst in $(TESTS); do \ 42 1.1 christos echo "\n"$$tst; \ 43 1.1 christos LD_LIBRARY_PATH=../.. ./$$tst; \ 44 1.1 christos done 45