Skip to content

Commit

Permalink
Bugfix: Make USE_UPNP=- work with makefile.{linux-mingw,mingw,osx} too
Browse files Browse the repository at this point in the history
  • Loading branch information
luke-jr committed Aug 23, 2012
1 parent e422beb commit 45beb88
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
5 changes: 4 additions & 1 deletion src/makefile.linux-mingw
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,10 @@ CFLAGS=-O2 -w -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter $(D

TESTDEFS = -DTEST_DATA_DIR=$(abspath test/data)

ifdef USE_UPNP
ifndef USE_UPNP
override USE_UPNP = -
endif
ifneq (${USE_UPNP}, -)
LIBPATHS += -L"$(DEPSDIR)/miniupnpc"
LIBS += -l miniupnpc -l iphlpapi
DEFS += -DSTATICLIB -DUSE_UPNP=$(USE_UPNP)
Expand Down
5 changes: 4 additions & 1 deletion src/makefile.mingw
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 4 additions & 1 deletion src/makefile.osx
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,10 @@ OBJS= \
obj/walletdb.o \
obj/noui.o

ifdef USE_UPNP
ifndef USE_UPNP
override USE_UPNP = -
endif
ifneq (${USE_UPNP}, -)
DEFS += -DUSE_UPNP=$(USE_UPNP)
ifdef STATIC
LIBS += $(DEPSDIR)/lib/libminiupnpc.a
Expand Down

0 comments on commit 45beb88

Please sign in to comment.