From bcce12266571d419c5d6342539e27e29ec54132d Mon Sep 17 00:00:00 2001 From: Toni Uhlig Date: Fri, 18 Sep 2020 19:08:56 +0200 Subject: Fixed mingw build w/o examples/tests/fuzzer. Signed-off-by: Toni Uhlig --- example/Makefile.in | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'example') diff --git a/example/Makefile.in b/example/Makefile.in index 32e36677d..e0dc34b95 100644 --- a/example/Makefile.in +++ b/example/Makefile.in @@ -1,5 +1,6 @@ CC=@CC@ CXX=@CXX@ +BUILD_MINGW=@BUILD_MINGW@ SRCHOME=../src CFLAGS=-g -fPIC -DPIC -I$(SRCHOME)/include @CFLAGS@ LIBNDPI=$(SRCHOME)/lib/libndpi.a @@ -9,6 +10,12 @@ HEADERS=intrusion_detection.h reader_util.h $(SRCHOME)/include/ndpi_api.h \ OBJS=ndpiReader.o reader_util.o intrusion_detection.o PREFIX?=@prefix@ +ifneq ($(BUILD_MINGW),) +all: + @echo 'Examples disabled due to mingw build.' + +else + all: ndpiReader @DPDK_TARGET@ EXECUTABLE_SOURCES := ndpiReader.c ndpiSimpleIntegration.c @@ -50,3 +57,5 @@ clean: distclean: clean /bin/rm -f Makefile.dpdk /bin/rm -f Makefile + +endif -- cgit v1.2.3