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=../.. ./aesccm 9 1.1 christos # LD_LIBRARY_PATH=../.. ./aesgcm 10 1.1 christos # LD_LIBRARY_PATH=../.. ./aeskeywrap 11 1.1 christos # LD_LIBRARY_PATH=../.. ./ariacbc 12 1.1 christos 13 1.1 christos CFLAGS = $(OPENSSL_INCS_LOCATION) 14 1.1 christos LDFLAGS = $(OPENSSL_LIBS_LOCATION) -lssl -lcrypto 15 1.1 christos 16 1.1 christos all: aesccm aesgcm aeskeywrap ariacbc 17 1.1 christos 18 1.1 christos aesccm: aesccm.o 19 1.1 christos aesgcm: aesgcm.o 20 1.1 christos aeskeywrap: aeskeywrap.o 21 1.1 christos ariacbc: ariacbc.o 22 1.1 christos 23 1.1 christos aesccm aesgcm aeskeywrap ariacbc: 24 1.1 christos $(CC) $(CFLAGS) -o $@ $< $(LDFLAGS) 25 1.1 christos 26 1.1 christos clean: 27 1.1 christos $(RM) aesccm aesgcm aeskeywrap ariacbc *.o 28