2021-02-11 06:49:19 +08:00
|
|
|
#
|
|
|
|
# To run the demos when linked with a shared library (default):
|
|
|
|
#
|
|
|
|
# LD_LIBRARY_PATH=../.. ./EVP_MD_demo
|
|
|
|
|
2022-03-03 16:20:05 +08:00
|
|
|
CFLAGS = -I../../include -g -Wall
|
2021-02-11 06:49:19 +08:00
|
|
|
LDFLAGS = -L../..
|
|
|
|
LDLIBS = -lcrypto
|
|
|
|
|
2022-03-03 16:20:05 +08:00
|
|
|
all: EVP_MD_demo EVP_MD_stdin EVP_MD_xof BIO_f_md
|
2021-02-11 06:49:19 +08:00
|
|
|
|
|
|
|
%.o: %.c
|
|
|
|
$(CC) $(CFLAGS) -c $<
|
|
|
|
|
|
|
|
EVP_MD_demo: EVP_MD_demo.o
|
|
|
|
EVP_MD_stdin: EVP_MD_stdin.o
|
2022-03-03 16:20:05 +08:00
|
|
|
EVP_MD_xof: EVP_MD_xof.o
|
2021-02-11 06:49:19 +08:00
|
|
|
BIO_f_md: BIO_f_md.o
|
|
|
|
|
|
|
|
test: ;
|
|
|
|
|
|
|
|
clean:
|
2022-03-03 16:20:05 +08:00
|
|
|
$(RM) *.o EVP_MD_demo EVP_MD_stdin EVP_MD_xof BIO_f_md
|