2012-09-08 07:03:43 -04:00
|
|
|
ALL=wlantest wlantest_cli test_vectors
|
2010-11-06 10:20:45 -04:00
|
|
|
|
2020-09-18 05:49:48 -04:00
|
|
|
include ../src/build.rules
|
2010-11-06 10:20:45 -04:00
|
|
|
|
2020-04-05 10:59:57 -04:00
|
|
|
UNAME := $(shell uname -s)
|
|
|
|
|
2010-11-06 10:20:45 -04:00
|
|
|
CFLAGS += -I.
|
|
|
|
CFLAGS += -I../src
|
|
|
|
CFLAGS += -I../src/utils
|
|
|
|
|
2020-04-05 10:59:57 -04:00
|
|
|
ifneq ($(UNAME),Darwin)
|
2013-11-20 05:01:09 -05:00
|
|
|
# glibc < 2.17 needs -lrt for clock_gettime()
|
|
|
|
LIBS += -lrt
|
2020-04-05 10:59:57 -04:00
|
|
|
endif
|
2010-11-06 10:20:45 -04:00
|
|
|
|
2020-04-05 10:58:46 -04:00
|
|
|
OWN_LIBS += ../src/utils/libutils.a
|
|
|
|
OWN_LIBS += ../src/crypto/libcrypto.a
|
2010-11-06 10:20:45 -04:00
|
|
|
|
2018-08-06 15:46:25 -04:00
|
|
|
CFLAGS += -DCONFIG_OCV
|
2010-11-09 13:29:12 -05:00
|
|
|
CFLAGS += -DCONFIG_IEEE80211R
|
2014-05-15 05:40:02 -04:00
|
|
|
CFLAGS += -DCONFIG_HS20
|
2013-11-17 14:16:29 -05:00
|
|
|
CFLAGS += -DCONFIG_DEBUG_FILE
|
2017-09-05 11:59:41 -04:00
|
|
|
CFLAGS += -DCONFIG_FILS
|
2020-02-10 14:58:10 -05:00
|
|
|
CFLAGS += -DCONFIG_SAE
|
|
|
|
CFLAGS += -DCONFIG_OWE
|
|
|
|
CFLAGS += -DCONFIG_DPP
|
|
|
|
CFLAGS += -DCONFIG_SHA384
|
2010-11-09 13:29:12 -05:00
|
|
|
|
2010-11-06 11:11:12 -04:00
|
|
|
OBJS += ../src/common/ieee802_11_common.o
|
2010-11-06 16:57:49 -04:00
|
|
|
OBJS += ../src/common/wpa_common.o
|
2010-11-07 10:59:50 -05:00
|
|
|
OBJS += ../src/radius/radius.o
|
2010-11-09 13:29:12 -05:00
|
|
|
OBJS += ../src/rsn_supp/wpa_ie.o
|
2010-11-06 11:11:12 -04:00
|
|
|
|
2010-11-06 10:20:45 -04:00
|
|
|
OBJS += wlantest.o
|
|
|
|
OBJS += readpcap.o
|
2010-11-11 18:00:31 -05:00
|
|
|
OBJS += writepcap.o
|
2010-11-06 10:20:45 -04:00
|
|
|
OBJS += monitor.o
|
|
|
|
OBJS += process.o
|
2010-11-07 10:59:50 -05:00
|
|
|
OBJS += wired.o
|
2010-11-06 12:01:24 -04:00
|
|
|
OBJS += rx_mgmt.o
|
|
|
|
OBJS += rx_data.o
|
2010-11-20 14:40:04 -05:00
|
|
|
OBJS += rx_eapol.o
|
2010-11-20 15:34:42 -05:00
|
|
|
OBJS += rx_ip.o
|
2010-12-13 04:20:55 -05:00
|
|
|
OBJS += rx_tdls.o
|
2010-11-06 11:11:12 -04:00
|
|
|
OBJS += bss.o
|
2010-11-06 11:31:02 -04:00
|
|
|
OBJS += sta.o
|
2010-11-10 18:29:30 -05:00
|
|
|
OBJS += ccmp.o
|
2010-11-13 04:36:37 -05:00
|
|
|
OBJS += tkip.o
|
2010-11-13 11:38:19 -05:00
|
|
|
OBJS += ctrl.o
|
2010-11-18 17:35:13 -05:00
|
|
|
OBJS += inject.o
|
2011-01-14 10:43:17 -05:00
|
|
|
OBJS += wep.o
|
2012-09-08 09:32:35 -04:00
|
|
|
OBJS += bip.o
|
2014-08-29 09:05:05 -04:00
|
|
|
OBJS += gcmp.o
|
2010-11-06 10:20:45 -04:00
|
|
|
|
|
|
|
LIBS += -lpcap
|
|
|
|
|
2012-09-08 07:03:43 -04:00
|
|
|
TOBJS += test_vectors.o
|
|
|
|
TOBJS += ccmp.o
|
|
|
|
TOBJS += tkip.o
|
|
|
|
TOBJS += wep.o
|
2012-09-08 09:43:11 -04:00
|
|
|
TOBJS += bip.o
|
2012-09-08 13:00:54 -04:00
|
|
|
TOBJS += gcmp.o
|
2012-09-08 07:03:43 -04:00
|
|
|
|
2010-11-06 10:20:45 -04:00
|
|
|
|
|
|
|
../src/utils/libutils.a:
|
|
|
|
$(MAKE) -C ../src/utils
|
|
|
|
|
|
|
|
../src/crypto/libcrypto.a:
|
|
|
|
$(MAKE) -C ../src/crypto
|
|
|
|
|
|
|
|
|
2010-11-13 11:38:19 -05:00
|
|
|
OBJS_cli = wlantest_cli.o
|
|
|
|
|
|
|
|
|
2020-04-05 10:58:46 -04:00
|
|
|
wlantest: $(OBJS) $(OWN_LIBS)
|
|
|
|
$(LDO) $(LDFLAGS) -o wlantest $(OBJS) $(OWN_LIBS) $(LIBS)
|
2010-11-06 10:20:45 -04:00
|
|
|
|
2020-04-05 10:58:46 -04:00
|
|
|
wlantest_cli: $(OBJS_cli) $(OWN_LIBS)
|
|
|
|
$(LDO) $(LDFLAGS) -o wlantest_cli $(OBJS_cli) $(OWN_LIBS) $(LIBS)
|
2010-11-13 11:38:19 -05:00
|
|
|
|
2020-04-05 10:58:46 -04:00
|
|
|
test_vectors: $(TOBJS) $(OWN_LIBS)
|
|
|
|
$(LDO) $(LDFLAGS) -o test_vectors $(TOBJS) $(OWN_LIBS) $(LIBS)
|
2012-09-08 07:03:43 -04:00
|
|
|
|
2010-11-06 10:20:45 -04:00
|
|
|
clean:
|
|
|
|
$(MAKE) -C ../src clean
|
2020-04-05 10:58:46 -04:00
|
|
|
rm -f core *~ *.o *.d $(ALL)
|
2010-11-06 10:20:45 -04:00
|
|
|
|
|
|
|
-include $(OBJS:%.o=%.d)
|