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