Home | History | Annotate | Line # | Download | only in signature
      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 
      7 TESTS = EVP_EC_Signature_demo \
      8         EVP_DSA_Signature_demo \
      9         EVP_ED_Signature_demo \
     10         rsa_pss_direct \
     11         rsa_pss_hash
     12 
     13 CFLAGS  = -I../../include -g -Wall
     14 LDFLAGS = -L../..
     15 LDLIBS  = -lcrypto
     16 
     17 all: $(TESTS)
     18 
     19 EVP_EC_Signature_demo: EVP_EC_Signature_demo.o
     20 EVP_DSA_Signature_demo: EVP_DSA_Signature_demo.o
     21 EVP_ED_Signature_demo: EVP_ED_Signature_demo.o
     22 rsa_pss_direct: rsa_pss_direct.o
     23 rsa_pss_hash: rsa_pss_hash.o
     24 
     25 $(TESTS):
     26 	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LDLIBS)
     27 
     28 clean:
     29 	$(RM) *.o $(TESTS)
     30 
     31 .PHONY: test
     32 test: 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