1 TESTS=test-base64 test-md4 test-md5 test-milenage test-ms_funcs \
5 test-sha256 test-aes test-asn1 test-x509 test-x509v3 test-list test-rc4
18 CFLAGS = -MMD -O2 -Wall -g
22 CFLAGS += -I../src/utils
24 SLIBS = ../src/utils/libutils.a
26 DLIBS = ../src/crypto/libcrypto.a \
29 LIBS = $(SLIBS) $(DLIBS)
30 LLIBS = -Wl,--start-group $(DLIBS) -Wl,--end-group $(SLIBS)
32 # glibc < 2.17 needs -lrt for clock_gettime()
35 ../src/utils/libutils.a:
36 $(MAKE) -C ../src/utils
38 ../src/crypto/libcrypto.a:
39 $(MAKE) -C ../src/crypto
45 test-aes: test-aes.o $(LIBS)
46 $(LDO) $(LDFLAGS) -o $@ $^ $(LLIBS)
48 test-asn1: test-asn1.o $(LIBS)
49 $(LDO) $(LDFLAGS) -o $@ $^ $(LLIBS)
51 test-base64: test-base64.o $(LIBS)
52 $(LDO) $(LDFLAGS) -o $@ $^ $(LLIBS)
54 test-bitfield: test-bitfield.o $(LIBS)
55 $(LDO) $(LDFLAGS) -o $@ $^ $(LLIBS)
57 test-https: test-https.o $(LIBS)
58 $(LDO) $(LDFLAGS) -o $@ $< $(LLIBS)
60 test-list: test-list.o $(LIBS)
61 $(LDO) $(LDFLAGS) -o $@ $^ $(LLIBS)
63 test-md4: test-md4.o $(LIBS)
64 $(LDO) $(LDFLAGS) -o $@ $^ $(LLIBS)
66 test-md5: test-md5.o $(LIBS)
67 $(LDO) $(LDFLAGS) -o $@ $^ $(LLIBS)
69 test-milenage: test-milenage.o $(LIBS)
70 $(LDO) $(LDFLAGS) -o $@ $^ $(LLIBS)
72 test-ms_funcs: test-ms_funcs.o $(LIBS)
73 $(LDO) $(LDFLAGS) -o $@ $^ $(LLIBS)
75 test-rc4: test-rc4.o $(LIBS)
76 $(LDO) $(LDFLAGS) -o $@ $^ $(LLIBS)
78 test-rsa-sig-ver: test-rsa-sig-ver.o $(LIBS)
79 $(LDO) $(LDFLAGS) -o $@ $< $(LLIBS)
81 test-sha1: test-sha1.o $(LIBS)
82 $(LDO) $(LDFLAGS) -o $@ $^ $(LLIBS)
84 test-sha256: test-sha256.o $(LIBS)
85 $(LDO) $(LDFLAGS) -o $@ $^ $(LLIBS)
87 test-x509: test-x509.o $(LIBS)
88 $(LDO) $(LDFLAGS) -o $@ $< $(LLIBS)
90 test-x509v3: test-x509v3.o $(LIBS)
91 $(LDO) $(LDFLAGS) -o $@ $< $(LLIBS)
105 @echo All tests completed successfully.
108 $(MAKE) -C ../src clean
109 rm -f $(TESTS) *~ *.o *.d
111 rm -f test_x509v3_nist.out.*
112 rm -f test_x509v3_nist2.out.*
114 -include $(OBJS:%.o=%.d)