1271294Sngie# Quick instruction: 2271294Sngie# To build against an OpenSSL built in the source tree, do this: 3271294Sngie# 4271294Sngie# make OPENSSL_INCS_LOCATION=-I../../include OPENSSL_LIBS_LOCATION=-L../.. 5271294Sngie# 6271294Sngie# To run the demos when linked with a shared library (default): 7271294Sngie# 8271294Sngie# LD_LIBRARY_PATH=../.. ./gmac 9271294Sngie# LD_LIBRARY_PATH=../.. ./poly1305 10271294Sngie 11271294SngieCFLAGS = $(OPENSSL_INCS_LOCATION) -Wall 12271294SngieLDFLAGS = $(OPENSSL_LIBS_LOCATION) -lssl -lcrypto 13271294Sngie 14271294Sngieall: gmac hmac-sha512 cmac-aes256 poly1305 15271294Sngie 16271294Sngiegmac: gmac.o 17271294Sngiehmac-sha512: hmac-sha512.o 18271294Sngiecmac-aes256: cmac-aes256.o 19271294Sngiepoly1305: poly1305.o 20271294Sngie 21271294Sngiegmac hmac-sha512 cmac-aes256 poly1305: 22271294Sngie $(CC) $(CFLAGS) -o $@ $< $(LDFLAGS) 23271294Sngie 24271294Sngieclean: 25271294Sngie $(RM) gmac hmac-sha512 cmac-aes256 poly1305 *.o 26271294Sngie