aboutsummaryrefslogtreecommitdiff
path: root/src/makefile.mingw
diff options
context:
space:
mode:
authorLuke Dashjr <[email protected]>2012-06-08 16:36:40 +0000
committerLuke Dashjr <[email protected]>2012-08-23 21:00:57 +0000
commit45beb88966ff0f54606593f9cf43a5883e8acf49 (patch)
treea53084c3e30e4051715e8dbf81abc628de6cc5fe /src/makefile.mingw
parentMake IPv6 support buildtime-optional again (defaults to enabled) (diff)
downloaddiscoin-45beb88966ff0f54606593f9cf43a5883e8acf49.tar.xz
discoin-45beb88966ff0f54606593f9cf43a5883e8acf49.zip
Bugfix: Make USE_UPNP=- work with makefile.{linux-mingw,mingw,osx} too
Diffstat (limited to 'src/makefile.mingw')
-rw-r--r--src/makefile.mingw5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/makefile.mingw b/src/makefile.mingw
index 22dc4801c..0bde965e1 100644
--- a/src/makefile.mingw
+++ b/src/makefile.mingw
@@ -30,7 +30,10 @@ CFLAGS=-mthreads -O2 -w -Wall -Wextra -Wformat -Wformat-security -Wno-unused-par
TESTDEFS = -DTEST_DATA_DIR=$(abspath test/data)
-ifdef USE_UPNP
+ifndef USE_UPNP
+ override USE_UPNP = -
+endif
+ifneq (${USE_UPNP}, -)
INCLUDEPATHS += -I"C:\miniupnpc-1.6-mgw"
LIBPATHS += -L"C:\miniupnpc-1.6-mgw"
LIBS += -l miniupnpc -l iphlpapi