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
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-list: test-list.o $(LIBS)
49 $(LDO) $(LDFLAGS) -o $@ $^
51 test-md4: test-md4.o $(LIBS)
52 $(LDO) $(LDFLAGS) -o $@ $^
54 test-md5: test-md5.o $(LIBS)
55 $(LDO) $(LDFLAGS) -o $@ $^
57 test-milenage: test-milenage.o $(LIBS)
58 $(LDO) $(LDFLAGS) -o $@ $^
60 test-ms_funcs: test-ms_funcs.o $(LIBS)
61 $(LDO) $(LDFLAGS) -o $@ $^
63 test-sha1: test-sha1.o $(LIBS)
64 $(LDO) $(LDFLAGS) -o $@ $^
66 test-sha256: test-sha256.o $(LIBS)
67 $(LDO) $(LDFLAGS) -o $@ $^
69 test-x509: test-x509.o $(LIBS)
70 $(LDO) $(LDFLAGS) -o $@ $< $(LLIBS)
72 test-x509v3: test-x509v3.o $(LIBS)
73 $(LDO) $(LDFLAGS) -o $@ $< $(LLIBS)
85 @echo All tests completed successfully.
88 $(MAKE) -C ../src clean
89 rm -f $(TESTS) *~ *.o *.d
90 rm -f test_x509v3_nist.out.*
91 rm -f test_x509v3_nist2.out.*
93 -include $(OBJS:%.o=%.d)