1e1051a39Sopenharmony_ci# Quick instruction: 2e1051a39Sopenharmony_ci# To build against an OpenSSL built in the source tree, do this: 3e1051a39Sopenharmony_ci# 4e1051a39Sopenharmony_ci# make OPENSSL_INCS_LOCATION=-I../../include OPENSSL_LIBS_LOCATION=-L../.. 5e1051a39Sopenharmony_ci# 6e1051a39Sopenharmony_ci# To run the demos when linked with a shared library (default): 7e1051a39Sopenharmony_ci# 8e1051a39Sopenharmony_ci# LD_LIBRARY_PATH=../.. ./aesccm 9e1051a39Sopenharmony_ci# LD_LIBRARY_PATH=../.. ./aesgcm 10e1051a39Sopenharmony_ci# LD_LIBRARY_PATH=../.. ./aeskeywrap 11e1051a39Sopenharmony_ci# LD_LIBRARY_PATH=../.. ./ariacbc 12e1051a39Sopenharmony_ci 13e1051a39Sopenharmony_ciCFLAGS = $(OPENSSL_INCS_LOCATION) 14e1051a39Sopenharmony_ciLDFLAGS = $(OPENSSL_LIBS_LOCATION) -lssl -lcrypto 15e1051a39Sopenharmony_ci 16e1051a39Sopenharmony_ciall: aesccm aesgcm aeskeywrap ariacbc 17e1051a39Sopenharmony_ci 18e1051a39Sopenharmony_ciaesccm: aesccm.o 19e1051a39Sopenharmony_ciaesgcm: aesgcm.o 20e1051a39Sopenharmony_ciaeskeywrap: aeskeywrap.o 21e1051a39Sopenharmony_ciariacbc: ariacbc.o 22e1051a39Sopenharmony_ci 23e1051a39Sopenharmony_ciaesccm aesgcm aeskeywrap ariacbc: 24e1051a39Sopenharmony_ci $(CC) $(CFLAGS) -o $@ $< $(LDFLAGS) 25e1051a39Sopenharmony_ci 26e1051a39Sopenharmony_ciclean: 27e1051a39Sopenharmony_ci $(RM) aesccm aesgcm aeskeywrap ariacbc *.o 28