diff options
author | Jouni Malinen <j@w1.fi> | 2015-04-08 20:12:25 (GMT) |
---|---|---|
committer | Jouni Malinen <j@w1.fi> | 2015-04-22 08:44:19 (GMT) |
commit | a65d7495b52690d3a7d660b8aec50aa22f5ceda6 (patch) | |
tree | 36e15ecda654a0f9167b574a7b971b64c5f942bb /tests/p2p-fuzzer/Makefile | |
parent | 632931c3cef852fc0a2a38150825cd949fff940e (diff) | |
download | hostap-a65d7495b52690d3a7d660b8aec50aa22f5ceda6.zip hostap-a65d7495b52690d3a7d660b8aec50aa22f5ceda6.tar.gz hostap-a65d7495b52690d3a7d660b8aec50aa22f5ceda6.tar.bz2 |
tests: Add p2p-fuzzer
This program can be used to run fuzzing tests for areas related to P2P
message parsing and processing. p2p-fuzzer allows data files to be used
to inject Probe Response and Action frames for processing by the P2P
module.
Signed-off-by: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'tests/p2p-fuzzer/Makefile')
-rw-r--r-- | tests/p2p-fuzzer/Makefile | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/tests/p2p-fuzzer/Makefile b/tests/p2p-fuzzer/Makefile new file mode 100644 index 0000000..4f81ef1 --- /dev/null +++ b/tests/p2p-fuzzer/Makefile @@ -0,0 +1,51 @@ +all: p2p-fuzzer + +ifndef CC +CC=gcc +endif + +ifndef LDO +LDO=$(CC) +endif + +ifndef CFLAGS +CFLAGS = -MMD -O2 -Wall -g +endif + +SRC=../../src + +CFLAGS += -I$(SRC) + +$(SRC)/utils/libutils.a: + $(MAKE) -C $(SRC)/utils + +$(SRC)/common/libcommon.a: + $(MAKE) -C $(SRC)/common + +$(SRC)/crypto/libcrypto.a: + $(MAKE) -C $(SRC)/crypto + +$(SRC)/tls/libtls.a: + $(MAKE) -C $(SRC)/tls + +$(SRC)/p2p/libp2p.a: + $(MAKE) -C $(SRC)/p2p + +$(SRC)/wps/libwps.a: + $(MAKE) -C $(SRC)/wps + +LIBS += $(SRC)/utils/libutils.a +LIBS += $(SRC)/common/libcommon.a +LIBS += $(SRC)/crypto/libcrypto.a +LIBS += $(SRC)/p2p/libp2p.a +LIBS += $(SRC)/tls/libtls.a +LIBS += $(SRC)/wps/libwps.a + +p2p-fuzzer: p2p-fuzzer.o $(LIBS) + $(LDO) $(LDFLAGS) -o $@ $^ $(LIBS) + +clean: + $(MAKE) -C $(SRC) clean + rm -f p2p-fuzzer *~ *.o *.d + +-include $(OBJS:%.o=%.d) |