Makefile 664 B

12345678910111213141516171819202122232425
  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=../.. ./gmac
  9. # LD_LIBRARY_PATH=../.. ./poly1305
  10. CFLAGS = $(OPENSSL_INCS_LOCATION) -Wall
  11. LDFLAGS = $(OPENSSL_LIBS_LOCATION) -lssl -lcrypto
  12. all: gmac hmac-sha512 cmac-aes256 poly1305
  13. gmac: gmac.o
  14. hmac-sha512: hmac-sha512.o
  15. cmac-aes256: cmac-aes256.o
  16. poly1305: poly1305.o
  17. gmac hmac-sha512 cmac-aes256 poly1305:
  18. $(CC) $(CFLAGS) -o $@ $< $(LDFLAGS)
  19. clean:
  20. $(RM) gmac hmac-sha512 cmac-aes256 poly1305 *.o