1ALL=wlantest wlantest_cli test_vectors 2 3include ../src/build.rules 4 5UNAME := $(shell uname -s) 6 7CFLAGS += -I. 8CFLAGS += -I../src 9CFLAGS += -I../src/utils 10 11ifneq ($(UNAME),Darwin) 12# glibc < 2.17 needs -lrt for clock_gettime() 13LIBS += -lrt 14endif 15 16OWN_LIBS += ../src/utils/libutils.a 17OWN_LIBS += ../src/crypto/libcrypto.a 18 19CFLAGS += -DCONFIG_OCV 20CFLAGS += -DCONFIG_IEEE80211R 21CFLAGS += -DCONFIG_HS20 22CFLAGS += -DCONFIG_DEBUG_FILE 23CFLAGS += -DCONFIG_FILS 24CFLAGS += -DCONFIG_SAE 25CFLAGS += -DCONFIG_OWE 26CFLAGS += -DCONFIG_DPP 27CFLAGS += -DCONFIG_SHA384 28CFLAGS += -DCONFIG_PASN 29 30OBJS += ../src/common/ieee802_11_common.o 31OBJS += ../src/common/wpa_common.o 32OBJS += ../src/radius/radius.o 33OBJS += ../src/rsn_supp/wpa_ie.o 34 35OBJS += wlantest.o 36OBJS += readpcap.o 37OBJS += writepcap.o 38OBJS += monitor.o 39OBJS += process.o 40OBJS += wired.o 41OBJS += rx_mgmt.o 42OBJS += rx_data.o 43OBJS += rx_eapol.o 44OBJS += rx_ip.o 45OBJS += rx_tdls.o 46OBJS += bss.o 47OBJS += sta.o 48OBJS += ccmp.o 49OBJS += tkip.o 50OBJS += ctrl.o 51OBJS += inject.o 52OBJS += wep.o 53OBJS += bip.o 54OBJS += gcmp.o 55 56LIBS += -lpcap 57 58TOBJS += test_vectors.o 59TOBJS += ccmp.o 60TOBJS += tkip.o 61TOBJS += wep.o 62TOBJS += bip.o 63TOBJS += gcmp.o 64 65 66OBJS_cli = wlantest_cli.o 67OBJS_cli += ../src/common/cli.o 68 69_OBJS_VAR := OBJS 70include ../src/objs.mk 71_OBJS_VAR := TOBJS 72include ../src/objs.mk 73_OBJS_VAR := OBJS_cli 74include ../src/objs.mk 75_OBJS_VAR := OWN_LIBS 76include ../src/objs.mk 77 78wlantest: $(OBJS) $(OWN_LIBS) 79 $(LDO) $(LDFLAGS) -o wlantest $(OBJS) $(OWN_LIBS) $(LIBS) 80 81wlantest_cli: $(OBJS_cli) $(OWN_LIBS) 82 $(LDO) $(LDFLAGS) -o wlantest_cli $(OBJS_cli) $(OWN_LIBS) $(LIBS) 83 84test_vectors: $(TOBJS) $(OWN_LIBS) 85 $(LDO) $(LDFLAGS) -o test_vectors $(TOBJS) $(OWN_LIBS) $(LIBS) 86 87clean: common-clean 88 rm -f core *~ 89