aboutsummaryrefslogtreecommitdiff
path: root/src/lib/Makefile.in
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 /src/lib/Makefile.in
parent6a7139bb24c4835604641262a07becee637a9e53 (diff)
parentd0052fd5b2c48c8ab344d17bf4b603e80b6e1a29 (diff)
Merge pull request #1017 from lnslbrty/fix/mingw-xcompile
Added support for mingw xcompile.
Diffstat (limited to 'src/lib/Makefile.in')
-rw-r--r--src/lib/Makefile.in6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib/Makefile.in b/src/lib/Makefile.in
index 09e1a7d09..902941d26 100644
--- a/src/lib/Makefile.in
+++ b/src/lib/Makefile.in
@@ -29,13 +29,19 @@ NDPI_LIBS = $(NDPI_LIB_STATIC) $(NDPI_LIB_SHARED)
ifneq ($(OS),Windows_NT)
OS := $(shell uname)
endif
+BUILD_MINGW = @BUILD_MINGW@
ifeq ($(OS),Darwin)
CC=clang
SONAME_FLAG=
else
+ifneq ($(BUILD_MINGW),)
+NDPI_LIB_SHARED_BASE = libndpi
+NDPI_LIB_SHARED = $(NDPI_LIB_SHARED_BASE)-@NDPI_VERSION_SHORT@.dll
+else
SONAME_FLAG=-Wl,-soname,$(NDPI_LIB_SHARED_BASE).$(NDPI_VERSION_MAJOR)
endif
+endif
all: $(NDPI_LIBS)