Merge pull request #1017 from lnslbrty/fix/mingw-xcompile

Added support for mingw xcompile.
This commit is contained in:
Luca Deri
2020-09-20 18:33:40 +02:00
committed by GitHub
9 changed files with 64 additions and 15 deletions
+9
View File
@@ -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