2021-05-24 14:33:55 +08:00
|
|
|
#
|
|
|
|
# To run the demos when linked with a shared library (default):
|
|
|
|
#
|
|
|
|
# LD_LIBRARY_PATH=../.. ./EVP_Signature_demo
|
|
|
|
|
2022-03-03 01:39:28 +08:00
|
|
|
CFLAGS = -I../../include -g -Wall
|
2021-05-24 14:33:55 +08:00
|
|
|
LDFLAGS = -L../..
|
|
|
|
LDLIBS = -lcrypto
|
|
|
|
|
2022-10-21 12:28:12 +08:00
|
|
|
all: EVP_EC_Signature_demo EVP_DSA_Signature_demo rsa_pss_direct rsa_pss_hash
|
2021-05-24 14:33:55 +08:00
|
|
|
|
|
|
|
%.o: %.c
|
|
|
|
$(CC) $(CFLAGS) -c $<
|
|
|
|
|
2022-10-21 12:28:12 +08:00
|
|
|
EVP_EC_Signature_demo: EVP_EC_Signature_demo.o
|
|
|
|
EVP_DSA_Signature_demo: EVP_DSA_Signature_demo.o
|
2022-03-03 01:39:28 +08:00
|
|
|
rsa_pss_direct: rsa_pss_direct.o
|
|
|
|
rsa_pss_hash: rsa_pss_hash.o
|
2021-05-24 14:33:55 +08:00
|
|
|
|
|
|
|
test: ;
|
|
|
|
|
|
|
|
clean:
|
2022-10-21 12:28:12 +08:00
|
|
|
$(RM) *.o EVP_EC_Signature_demo EVP_DSA_Signature_demo rsa_pss_direct rsa_pss_hash
|