xref: /netbsd-src/crypto/external/bsd/openssl/dist/demos/digest/Makefile (revision b0d1725196a7921d003d2c66a14f186abda4176b)
1*b0d17251Schristos#
2*b0d17251Schristos# To run the demos when linked with a shared library (default):
3*b0d17251Schristos#
4*b0d17251Schristos#    LD_LIBRARY_PATH=../.. ./EVP_MD_demo
5*b0d17251Schristos
6*b0d17251SchristosCFLAGS = -I../../include -g -Wall
7*b0d17251SchristosLDFLAGS = -L../..
8*b0d17251SchristosLDLIBS = -lcrypto
9*b0d17251Schristos
10*b0d17251Schristosall: EVP_MD_demo EVP_MD_stdin EVP_MD_xof BIO_f_md
11*b0d17251Schristos
12*b0d17251Schristos%.o: %.c
13*b0d17251Schristos	$(CC) $(CFLAGS) -c $<
14*b0d17251Schristos
15*b0d17251SchristosEVP_MD_demo: EVP_MD_demo.o
16*b0d17251SchristosEVP_MD_stdin: EVP_MD_stdin.o
17*b0d17251SchristosEVP_MD_xof: EVP_MD_xof.o
18*b0d17251SchristosBIO_f_md: BIO_f_md.o
19*b0d17251Schristos
20*b0d17251Schristostest: ;
21*b0d17251Schristos
22*b0d17251Schristosclean:
23*b0d17251Schristos	$(RM) *.o EVP_MD_demo EVP_MD_stdin EVP_MD_xof BIO_f_md
24