1 1.1 christos # Quick instruction: 2 1.1 christos # To build against an OpenSSL built in the source tree, do this: 3 1.1 christos # 4 1.1 christos # make OPENSSL_INCS_LOCATION=-I../../include OPENSSL_LIBS_LOCATION=-L../.. 5 1.1 christos # 6 1.1 christos # To run the demos when linked with a shared library (default): 7 1.1 christos # 8 1.1 christos # LD_LIBRARY_PATH=../.. ./gmac 9 1.1 christos # LD_LIBRARY_PATH=../.. ./poly1305 10 1.1 christos 11 1.1 christos CFLAGS = $(OPENSSL_INCS_LOCATION) -Wall 12 1.1 christos LDFLAGS = $(OPENSSL_LIBS_LOCATION) -lssl -lcrypto 13 1.1 christos 14 1.1 christos all: gmac hmac-sha512 cmac-aes256 poly1305 15 1.1 christos 16 1.1 christos gmac: gmac.o 17 1.1 christos hmac-sha512: hmac-sha512.o 18 1.1 christos cmac-aes256: cmac-aes256.o 19 1.1 christos poly1305: poly1305.o 20 1.1 christos 21 1.1 christos gmac hmac-sha512 cmac-aes256 poly1305: 22 1.1 christos $(CC) $(CFLAGS) -o $@ $< $(LDFLAGS) 23 1.1 christos 24 1.1 christos clean: 25 1.1 christos $(RM) gmac hmac-sha512 cmac-aes256 poly1305 *.o 26