xref: /openssl/demos/smime/Makefile (revision 86db9588)
1#
2# To run the demos when linked with a shared library (default) ensure that
3# libcrypto is on the library path. For example, to run the
4# sm_enc demo:
5#
6#    LD_LIBRARY_PATH=../.. ./sms_enc
7
8TESTS = smenc \
9        smdec \
10        smsign \
11        smsign2 \
12        smver
13
14CFLAGS  = -I../../include -g -Wall
15LDFLAGS = -L../..
16LDLIBS  = -lcrypto
17
18all: $(TESTS)
19
20smenc: smenc.o
21smdec: smdec.o
22smsign: smsign.o
23smsign2: smsign2.o
24smver: smver.o
25
26$(TESTS):
27	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LDLIBS)
28
29clean:
30	$(RM) $(TESTS) *.o
31
32test: all
33	@echo "\nS/MIME tests:"
34	LD_LIBRARY_PATH=../.. ./smenc
35	LD_LIBRARY_PATH=../.. ./smdec
36	LD_LIBRARY_PATH=../.. ./smsign2
37	LD_LIBRARY_PATH=../.. ./smver
38