Makefile 852 B

12345678910111213141516171819202122232425262728293031323334353637
  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. TESTS = EVP_EC_Signature_demo \
  7. EVP_DSA_Signature_demo \
  8. EVP_ED_Signature_demo \
  9. rsa_pss_direct \
  10. rsa_pss_hash
  11. CFLAGS = -I../../include -g -Wall
  12. LDFLAGS = -L../..
  13. LDLIBS = -lcrypto
  14. all: $(TESTS)
  15. EVP_EC_Signature_demo: EVP_EC_Signature_demo.o
  16. EVP_DSA_Signature_demo: EVP_DSA_Signature_demo.o
  17. EVP_ED_Signature_demo: EVP_ED_Signature_demo.o
  18. rsa_pss_direct: rsa_pss_direct.o
  19. rsa_pss_hash: rsa_pss_hash.o
  20. $(TESTS):
  21. $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LDLIBS)
  22. clean:
  23. $(RM) *.o $(TESTS)
  24. .PHONY: test
  25. test: all
  26. @echo "\nSignature tests:"
  27. @set -e; for tst in $(TESTS); do \
  28. echo "\n"$$tst; \
  29. LD_LIBRARY_PATH=../.. ./$$tst; \
  30. done