]> git.ipfire.org Git - thirdparty/hostap.git/blame - tests/Makefile
Write multi_ap_backhaul_sta to wpa_supplicant config
[thirdparty/hostap.git] / tests / Makefile
CommitLineData
896e1b83 1TESTS=test-base64 test-md4 test-milenage \
46fcf474 2 test-rsa-sig-ver \
0d7773b6 3 test-sha1 \
f551fa8d 4 test-sha256 test-aes test-asn1 test-x509 test-x509v3 test-list test-rc4
1801bd7f
JM
5
6all: $(TESTS)
7
8ifndef CC
9CC=gcc
10endif
11
12ifndef LDO
13LDO=$(CC)
14endif
15
16ifndef CFLAGS
17CFLAGS = -MMD -O2 -Wall -g
18endif
19
20CFLAGS += -I../src
953f8343 21CFLAGS += -I../src/utils
1801bd7f 22
0bc377fa
JM
23SLIBS = ../src/utils/libutils.a
24
25DLIBS = ../src/crypto/libcrypto.a \
ab7ddc74 26 ../src/tls/libtls.a
1801bd7f 27
0bc377fa
JM
28LIBS = $(SLIBS) $(DLIBS)
29LLIBS = -Wl,--start-group $(DLIBS) -Wl,--end-group $(SLIBS)
30
6be79541
JM
31# glibc < 2.17 needs -lrt for clock_gettime()
32LLIBS += -lrt
33
6a230ba2
JM
34../src/utils/libutils.a:
35 $(MAKE) -C ../src/utils
953f8343 36
631afd99
JM
37../src/crypto/libcrypto.a:
38 $(MAKE) -C ../src/crypto
39
ab7ddc74
JM
40../src/tls/libtls.a:
41 $(MAKE) -C ../src/tls
42
1801bd7f 43
f8cf3ce6 44test-aes: test-aes.o $(LIBS)
c2372d7c 45 $(LDO) $(LDFLAGS) -o $@ $^ $(LLIBS)
f8cf3ce6 46
ab7ddc74 47test-asn1: test-asn1.o $(LIBS)
6be79541 48 $(LDO) $(LDFLAGS) -o $@ $^ $(LLIBS)
ab7ddc74 49
c7ab5122 50test-base64: test-base64.o $(LIBS)
6be79541 51 $(LDO) $(LDFLAGS) -o $@ $^ $(LLIBS)
1801bd7f 52
d10b1398
JM
53test-https: test-https.o $(LIBS)
54 $(LDO) $(LDFLAGS) -o $@ $< $(LLIBS)
55
dacf4783 56test-list: test-list.o $(LIBS)
6be79541 57 $(LDO) $(LDFLAGS) -o $@ $^ $(LLIBS)
dacf4783 58
668562d5 59test-md4: test-md4.o $(LIBS)
6be79541 60 $(LDO) $(LDFLAGS) -o $@ $^ $(LLIBS)
953f8343 61
c7ab5122 62test-milenage: test-milenage.o $(LIBS)
6be79541 63 $(LDO) $(LDFLAGS) -o $@ $^ $(LLIBS)
953f8343 64
f551fa8d 65test-rc4: test-rc4.o $(LIBS)
6be79541 66 $(LDO) $(LDFLAGS) -o $@ $^ $(LLIBS)
f551fa8d 67
46fcf474
JM
68test-rsa-sig-ver: test-rsa-sig-ver.o $(LIBS)
69 $(LDO) $(LDFLAGS) -o $@ $< $(LLIBS)
70
f8cf3ce6 71test-sha1: test-sha1.o $(LIBS)
6be79541 72 $(LDO) $(LDFLAGS) -o $@ $^ $(LLIBS)
f8cf3ce6
JM
73
74test-sha256: test-sha256.o $(LIBS)
6be79541 75 $(LDO) $(LDFLAGS) -o $@ $^ $(LLIBS)
f8cf3ce6 76
ab7ddc74 77test-x509: test-x509.o $(LIBS)
0bc377fa 78 $(LDO) $(LDFLAGS) -o $@ $< $(LLIBS)
ab7ddc74 79
655702f3
JM
80test-x509v3: test-x509v3.o $(LIBS)
81 $(LDO) $(LDFLAGS) -o $@ $< $(LLIBS)
82
953f8343
JM
83
84run-tests: $(TESTS)
f8cf3ce6 85 ./test-aes
dacf4783 86 ./test-list
668562d5 87 ./test-md4
953f8343 88 ./test-milenage
46fcf474 89 ./test-rsa-sig-ver
f8cf3ce6
JM
90 ./test-sha1
91 ./test-sha256
92 @echo
93 @echo All tests completed successfully.
953f8343 94
1801bd7f
JM
95clean:
96 $(MAKE) -C ../src clean
8ad733d5 97 rm -f $(TESTS) *~ *.o *.d
b87346c4 98 rm -f test-https
655702f3
JM
99 rm -f test_x509v3_nist.out.*
100 rm -f test_x509v3_nist2.out.*
8ad733d5
JM
101
102-include $(OBJS:%.o=%.d)