1 TESTS=test-base64 test-md4 test-milenage \
4 test-sha256 test-aes test-asn1 test-x509 test-x509v3 test-list test-rc4
17 CFLAGS = -MMD -O2 -Wall -g
21 CFLAGS += -I../src/utils
23 SLIBS = ../src/utils/libutils.a
25 DLIBS = ../src/crypto/libcrypto.a \
28 LIBS = $(SLIBS) $(DLIBS)
29 LLIBS = -Wl,--start-group $(DLIBS) -Wl,--end-group $(SLIBS)
31 # glibc < 2.17 needs -lrt for clock_gettime()
34 ../src/utils/libutils.a:
35 $(MAKE) -C ../src/utils
37 ../src/crypto/libcrypto.a:
38 $(MAKE) -C ../src/crypto
44 test-aes: test-aes.o $(LIBS)
45 $(LDO) $(LDFLAGS) -o $@ $^ $(LLIBS)
47 test-asn1: test-asn1.o $(LIBS)
48 $(LDO) $(LDFLAGS) -o $@ $^ $(LLIBS)
50 test-base64: test-base64.o $(LIBS)
51 $(LDO) $(LDFLAGS) -o $@ $^ $(LLIBS)
53 test-https: test-https.o $(LIBS)
54 $(LDO) $(LDFLAGS) -o $@ $< $(LLIBS)
56 test-list: test-list.o $(LIBS)
57 $(LDO) $(LDFLAGS) -o $@ $^ $(LLIBS)
59 test-md4: test-md4.o $(LIBS)
60 $(LDO) $(LDFLAGS) -o $@ $^ $(LLIBS)
62 test-milenage: test-milenage.o $(LIBS)
63 $(LDO) $(LDFLAGS) -o $@ $^ $(LLIBS)
65 test-rc4: test-rc4.o $(LIBS)
66 $(LDO) $(LDFLAGS) -o $@ $^ $(LLIBS)
68 test-rsa-sig-ver: test-rsa-sig-ver.o $(LIBS)
69 $(LDO) $(LDFLAGS) -o $@ $< $(LLIBS)
71 test-sha1: test-sha1.o $(LIBS)
72 $(LDO) $(LDFLAGS) -o $@ $^ $(LLIBS)
74 test-sha256: test-sha256.o $(LIBS)
75 $(LDO) $(LDFLAGS) -o $@ $^ $(LLIBS)
77 test-x509: test-x509.o $(LIBS)
78 $(LDO) $(LDFLAGS) -o $@ $< $(LLIBS)
80 test-x509v3: test-x509v3.o $(LIBS)
81 $(LDO) $(LDFLAGS) -o $@ $< $(LLIBS)
93 @echo All tests completed successfully.
96 $(MAKE) -C ../src clean
97 rm -f $(TESTS) *~ *.o *.d
99 rm -f test_x509v3_nist.out.*
100 rm -f test_x509v3_nist2.out.*
102 -include $(OBJS:%.o=%.d)