1 TESTS=test-base64 test-md4 test-md5 test-milenage test-ms_funcs test-sha1 \
2 test-sha256 test-aes test-asn1 test-x509
15 CFLAGS = -MMD -O2 -Wall -g
19 CFLAGS += -I../src/utils
21 LIBS = ../src/utils/libutils.a \
22 ../src/crypto/libcrypto.a \
25 ../src/utils/libutils.a:
26 $(MAKE) -C ../src/utils
28 ../src/crypto/libcrypto.a:
29 $(MAKE) -C ../src/crypto
35 test-aes: test-aes.o $(LIBS)
36 $(LDO) $(LDFLAGS) -o $@ $^
38 test-asn1: test-asn1.o $(LIBS)
39 $(LDO) $(LDFLAGS) -o $@ $^
41 test-base64: test-base64.o $(LIBS)
42 $(LDO) $(LDFLAGS) -o $@ $^
44 test-md4: test-md4.o $(LIBS)
45 $(LDO) $(LDFLAGS) -o $@ $^
47 test-md5: test-md5.o $(LIBS)
48 $(LDO) $(LDFLAGS) -o $@ $^
50 test-milenage: test-milenage.o $(LIBS)
51 $(LDO) $(LDFLAGS) -o $@ $^
53 test-ms_funcs: test-ms_funcs.o $(LIBS)
54 $(LDO) $(LDFLAGS) -o $@ $^
56 test-sha1: test-sha1.o $(LIBS)
57 $(LDO) $(LDFLAGS) -o $@ $^
59 test-sha256: test-sha256.o $(LIBS)
60 $(LDO) $(LDFLAGS) -o $@ $^
62 test-x509: test-x509.o $(LIBS)
63 $(LDO) $(LDFLAGS) -o $@ $^
74 @echo All tests completed successfully.
77 $(MAKE) -C ../src clean
78 rm -f $(TESTS) *~ *.o *.d
80 -include $(OBJS:%.o=%.d)