2023-11-04 01:15:04 +08:00
|
|
|
#
|
|
|
|
# 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
|
|
|
|
|
2023-11-11 03:02:00 +08:00
|
|
|
CFLAGS = -I../../include -g -Wall
|
2023-11-04 01:15:04 +08:00
|
|
|
LDFLAGS = -L../..
|
|
|
|
LDLIBS = -lcrypto
|
|
|
|
|
|
|
|
all: $(TESTS)
|
|
|
|
|
2023-11-11 03:02:00 +08:00
|
|
|
cms_comp: cms_comp.o
|
|
|
|
cms_ddec: cms_ddec.o
|
|
|
|
cms_dec: cms_dec.o
|
|
|
|
cms_denc: cms_denc.o
|
|
|
|
cms_enc: cms_enc.o
|
|
|
|
cms_sign: cms_sign.o
|
|
|
|
cms_sign2: cms_sign2.o
|
|
|
|
cms_uncomp: cms_uncomp.o
|
|
|
|
cms_ver: cms_ver.o
|
|
|
|
|
|
|
|
$(TESTS):
|
|
|
|
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LDLIBS)
|
|
|
|
|
2023-11-04 01:15:04 +08:00
|
|
|
clean:
|
|
|
|
$(RM) $(TESTS) *.o
|
|
|
|
|
|
|
|
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
|