xref: /third_party/openssl/demos/mac/Makefile
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /third_party/openssl/demos/mac/
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=../.. ./gmac
9e1051a39Sopenharmony_ci#    LD_LIBRARY_PATH=../.. ./poly1305
10e1051a39Sopenharmony_ci
11e1051a39Sopenharmony_ciCFLAGS = $(OPENSSL_INCS_LOCATION) -Wall
12e1051a39Sopenharmony_ciLDFLAGS = $(OPENSSL_LIBS_LOCATION) -lssl -lcrypto
13e1051a39Sopenharmony_ci
14e1051a39Sopenharmony_ciall: gmac hmac-sha512 cmac-aes256 poly1305
15e1051a39Sopenharmony_ci
16e1051a39Sopenharmony_cigmac: gmac.o
17e1051a39Sopenharmony_cihmac-sha512: hmac-sha512.o
18e1051a39Sopenharmony_cicmac-aes256: cmac-aes256.o
19e1051a39Sopenharmony_cipoly1305: poly1305.o
20e1051a39Sopenharmony_ci
21e1051a39Sopenharmony_cigmac hmac-sha512 cmac-aes256 poly1305:
22e1051a39Sopenharmony_ci	$(CC) $(CFLAGS) -o $@ $< $(LDFLAGS)
23e1051a39Sopenharmony_ci
24e1051a39Sopenharmony_ciclean:
25e1051a39Sopenharmony_ci	$(RM) gmac hmac-sha512 cmac-aes256 poly1305 *.o
26

Indexes created Thu Nov 07 10:32:03 CST 2024