2021-05-23 14:48:45 +08:00
|
|
|
#
|
|
|
|
# To run the demos when linked with a shared library (default):
|
|
|
|
#
|
|
|
|
# LD_LIBRARY_PATH=../.. ./EVP_PKEY_EC_keygen
|
2022-03-07 21:29:49 +08:00
|
|
|
# LD_LIBRARY_PATH=../.. ./EVP_PKEY_RSA_keygen
|
2022-12-08 04:03:26 +08:00
|
|
|
# LD_LIBRARY_PATH=../.. ./EVP_PKEY_DSA_keygen
|
|
|
|
# LD_LIBRARY_PATH=../.. ./EVP_PKEY_DSA_paramgen
|
|
|
|
# LD_LIBRARY_PATH=../.. ./EVP_PKEY_DSA_paramvalidate
|
|
|
|
# LD_LIBRARY_PATH=../.. ./EVP_PKEY_DSA_paramfromdata
|
2021-05-23 14:48:45 +08:00
|
|
|
|
2022-03-07 21:29:49 +08:00
|
|
|
CFLAGS = -I../../include -g -Wall
|
2021-05-23 14:48:45 +08:00
|
|
|
LDFLAGS = -L../..
|
|
|
|
LDLIBS = -lcrypto
|
|
|
|
|
2022-12-08 04:03:26 +08:00
|
|
|
all: EVP_PKEY_EC_keygen EVP_PKEY_RSA_keygen EVP_PKEY_DSA_keygen \
|
|
|
|
EVP_PKEY_DSA_paramgen EVP_PKEY_DSA_paramvalidate EVP_PKEY_DSA_paramfromdata \
|
2021-05-23 14:48:45 +08:00
|
|
|
|
2022-12-08 04:03:26 +08:00
|
|
|
%.o: %.c dsa.inc
|
2021-05-23 14:48:45 +08:00
|
|
|
$(CC) $(CFLAGS) -c $<
|
|
|
|
|
|
|
|
EVP_PKEY_EC_keygen: EVP_PKEY_EC_keygen.o
|
|
|
|
|
2022-03-07 21:29:49 +08:00
|
|
|
EVP_PKEY_RSA_keygen: EVP_PKEY_RSA_keygen.o
|
|
|
|
|
2022-12-08 04:03:26 +08:00
|
|
|
EVP_PKEY_DSA_keygen: EVP_PKEY_DSA_keygen.o
|
|
|
|
|
|
|
|
EVP_PKEY_DSA_paramgen: EVP_PKEY_DSA_paramgen.o
|
|
|
|
|
|
|
|
EVP_PKEY_DSA_paramvalidate: EVP_PKEY_DSA_paramvalidate.o
|
|
|
|
|
|
|
|
EVP_PKEY_DSA_paramfromdata: EVP_PKEY_DSA_paramfromdata.o
|
|
|
|
|
2021-05-23 14:48:45 +08:00
|
|
|
test: ;
|
|
|
|
|
|
|
|
clean:
|
2022-12-08 04:03:26 +08:00
|
|
|
$(RM) *.o EVP_PKEY_EC_keygen EVP_PKEY_RSA_keygen EVP_PKEY_DSA_keygen \
|
|
|
|
EVP_PKEY_DSA_paramgen EVP_PKEY_DSA_paramfromdata EVP_PKEY_DSA_paramvalidate
|