Makefile 575 B

123456789101112131415161718192021222324
  1. # Quick instruction:
  2. # To build against an OpenSSL built in the source tree, do this:
  3. #
  4. # make OPENSSL_INCS_LOCATION=-I../../include OPENSSL_LIBS_LOCATION=-L../..
  5. #
  6. # To run the demos when linked with a shared library (default):
  7. #
  8. # LD_LIBRARY_PATH=../.. ./aesccm
  9. # LD_LIBRARY_PATH=../.. ./aesgcm
  10. CFLAGS = $(OPENSSL_INCS_LOCATION)
  11. LDFLAGS = $(OPENSSL_LIBS_LOCATION) -lssl -lcrypto
  12. all: aesccm aesgcm ariacbc
  13. aesccm: aesccm.o
  14. aesgcm: aesgcm.o
  15. ariacbc: ariacbc.o
  16. aesccm aesgcm ariacbc:
  17. $(CC) $(CFLAGS) -o $@ $< $(LDFLAGS)
  18. clean:
  19. $(RM) aesccm aesgcm ariacbc *.o