2
0

Makefile 636 B

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