xref: /openssl/demos/cipher/Makefile (revision 37697277)
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=../.. ./aesccm
9#    LD_LIBRARY_PATH=../.. ./aesgcm
10
11CFLAGS = $(OPENSSL_INCS_LOCATION)
12LDFLAGS = $(OPENSSL_LIBS_LOCATION) -lssl -lcrypto
13
14all: aesccm aesgcm ariacbc
15
16aesccm: aesccm.o
17aesgcm: aesgcm.o
18ariacbc: ariacbc.o
19
20aesccm aesgcm ariacbc:
21	$(CC) $(CFLAGS) -o $@ $< $(LDFLAGS)
22
23clean:
24	$(RM) aesccm aesgcm ariacbc *.o
25