xref: /freebsd/crypto/openssl/demos/pkey/Makefile (revision cb14a3fe5122c879eae1fb480ed7ce82a699ddb6)
1#
2# To run the demos when linked with a shared library (default):
3#
4#    LD_LIBRARY_PATH=../.. ./EVP_PKEY_EC_keygen
5#    LD_LIBRARY_PATH=../.. ./EVP_PKEY_RSA_keygen
6#    LD_LIBRARY_PATH=../.. ./EVP_PKEY_DSA_keygen
7#    LD_LIBRARY_PATH=../.. ./EVP_PKEY_DSA_paramgen
8#    LD_LIBRARY_PATH=../.. ./EVP_PKEY_DSA_paramvalidate
9#    LD_LIBRARY_PATH=../.. ./EVP_PKEY_DSA_paramfromdata
10
11CFLAGS = -I../../include -g -Wall
12LDFLAGS = -L../..
13LDLIBS = -lcrypto
14
15all: EVP_PKEY_EC_keygen EVP_PKEY_RSA_keygen EVP_PKEY_DSA_keygen \
16	 EVP_PKEY_DSA_paramgen EVP_PKEY_DSA_paramvalidate EVP_PKEY_DSA_paramfromdata \
17
18%.o: %.c dsa.inc
19	$(CC) $(CFLAGS) -c $<
20
21EVP_PKEY_EC_keygen: EVP_PKEY_EC_keygen.o
22
23EVP_PKEY_RSA_keygen: EVP_PKEY_RSA_keygen.o
24
25EVP_PKEY_DSA_keygen: EVP_PKEY_DSA_keygen.o
26
27EVP_PKEY_DSA_paramgen: EVP_PKEY_DSA_paramgen.o
28
29EVP_PKEY_DSA_paramvalidate: EVP_PKEY_DSA_paramvalidate.o
30
31EVP_PKEY_DSA_paramfromdata: EVP_PKEY_DSA_paramfromdata.o
32
33test: ;
34
35clean:
36	$(RM) *.o EVP_PKEY_EC_keygen EVP_PKEY_RSA_keygen EVP_PKEY_DSA_keygen \
37	      EVP_PKEY_DSA_paramgen EVP_PKEY_DSA_paramfromdata EVP_PKEY_DSA_paramvalidate
38