blob: 7c8f30d63207a3f89a82755918eb72633c964f5b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
#
# To run the demos when linked with a shared library (default) ensure that
# libcrypto is on the library path. For example, to run the
# cms_enc demo:
#
# LD_LIBRARY_PATH=../.. ./cms_enc
TESTS = cms_comp \
cms_ddec \
cms_dec \
cms_denc \
cms_enc \
cms_sign \
cms_sign2 \
cms_uncomp \
cms_ver
CFLAGS = -I../../include -g
LDFLAGS = -L../..
LDLIBS = -lcrypto
all: $(TESTS)
clean:
$(RM) $(TESTS) *.o
cms_%: cms_%.c
$(CC) $(CFLAGS) $(LDFLAGS) -o "$@" "$<" $(LDLIBS)
test: all
@echo "\nCMS tests:"
LD_LIBRARY_PATH=../.. ./cms_enc
LD_LIBRARY_PATH=../.. ./cms_dec
LD_LIBRARY_PATH=../.. ./cms_sign2
LD_LIBRARY_PATH=../.. ./cms_ver
|