2 # To build against an OpenSSL built in the source tree, do this:
4 # make OPENSSL_INCS_LOCATION=-I../../include OPENSSL_LIBS_LOCATION=-L../..
6 # To run the demos when linked with a shared library (default):
8 # LD_LIBRARY_PATH=../.. ./gmac
9 # LD_LIBRARY_PATH=../.. ./poly1305
11 CFLAGS = $(OPENSSL_INCS_LOCATION) -Wall
12 LDFLAGS = $(OPENSSL_LIBS_LOCATION) -lssl -lcrypto
14 all: gmac hmac-sha512 cmac-aes256 poly1305
17 hmac-sha512: hmac-sha512.o
18 cmac-aes256: cmac-aes256.o
21 gmac hmac-sha512 cmac-aes256 poly1305:
22 $(CC) $(CFLAGS) -o $@ $< $(LDFLAGS)
25 $(RM) gmac hmac-sha512 cmac-aes256 poly1305 *.o