Bugfix: Make USE_UPNP=- work with makefile.{linux-mingw,mingw,osx} too

This commit is contained in:
Luke Dashjr
2012-06-08 16:36:40 +00:00
parent e422bebbdc
commit 45beb88966
3 changed files with 12 additions and 3 deletions

View File

@@ -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