1 TESTS=test-base64 test-md4 test-md5 test-milenage test-ms_funcs test-sha1 \
2 test-sha256 test-aes test-asn1 test-x509 test-x509v3 test-list test-rc4
15 CFLAGS = -MMD -O2 -Wall -g
19 CFLAGS += -I../src/utils
21 SLIBS = ../src/utils/libutils.a
23 DLIBS = ../src/crypto/libcrypto.a \
26 LIBS = $(SLIBS) $(DLIBS)
27 LLIBS = -Wl,--start-group $(DLIBS) -Wl,--end-group $(SLIBS)
29 ../src/utils/libutils.a:
30 $(MAKE) -C ../src/utils
32 ../src/crypto/libcrypto.a:
33 $(MAKE) -C ../src/crypto
39 test-aes: test-aes.o $(LIBS)
40 $(LDO) $(LDFLAGS) -o $@ $^
42 test-asn1: test-asn1.o $(LIBS)
43 $(LDO) $(LDFLAGS) -o $@ $^
45 test-base64: test-base64.o $(LIBS)
46 $(LDO) $(LDFLAGS) -o $@ $^
48 test-https: test-https.o $(LIBS)
49 $(LDO) $(LDFLAGS) -o $@ $< $(LLIBS)
51 test-list: test-list.o $(LIBS)
52 $(LDO) $(LDFLAGS) -o $@ $^
54 test-md4: test-md4.o $(LIBS)
55 $(LDO) $(LDFLAGS) -o $@ $^
57 test-md5: test-md5.o $(LIBS)
58 $(LDO) $(LDFLAGS) -o $@ $^
60 test-milenage: test-milenage.o $(LIBS)
61 $(LDO) $(LDFLAGS) -o $@ $^
63 test-ms_funcs: test-ms_funcs.o $(LIBS)
64 $(LDO) $(LDFLAGS) -o $@ $^
66 test-rc4: test-rc4.o $(LIBS)
67 $(LDO) $(LDFLAGS) -o $@ $^
69 test-sha1: test-sha1.o $(LIBS)
70 $(LDO) $(LDFLAGS) -o $@ $^
72 test-sha256: test-sha256.o $(LIBS)
73 $(LDO) $(LDFLAGS) -o $@ $^
75 test-x509: test-x509.o $(LIBS)
76 $(LDO) $(LDFLAGS) -o $@ $< $(LLIBS)
78 test-x509v3: test-x509v3.o $(LIBS)
79 $(LDO) $(LDFLAGS) -o $@ $< $(LLIBS)
91 @echo All tests completed successfully.
94 $(MAKE) -C ../src clean
95 rm -f $(TESTS) *~ *.o *.d
97 rm -f test_x509v3_nist.out.*
98 rm -f test_x509v3_nist2.out.*
100 -include $(OBJS:%.o=%.d)