aboutsummaryrefslogtreecommitdiff
path: root/example
diff options
context:
space:
mode:
authorLuca Deri <lucaderi@users.noreply.github.com>2020-09-20 18:33:40 +0200
committerGitHub <noreply@github.com>2020-09-20 18:33:40 +0200
commit1385f05713045b846f5a830cfc23eabd5f71e70d (patch)
tree0f95d7f1cd5ea9d1053280d317a247cb4e2f083f /example
parent6a7139bb24c4835604641262a07becee637a9e53 (diff)
parentd0052fd5b2c48c8ab344d17bf4b603e80b6e1a29 (diff)
Merge pull request #1017 from lnslbrty/fix/mingw-xcompile
Added support for mingw xcompile.
Diffstat (limited to 'example')
-rw-r--r--example/Makefile.in9
1 files changed, 9 insertions, 0 deletions
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