aboutsummaryrefslogtreecommitdiff
path: root/makefile.osx
diff options
context:
space:
mode:
authorMatt Corallo <matt@bluematt.me>2011-03-26 13:01:27 +0100
committerMatt Corallo <matt@bluematt.me>2011-03-30 20:45:56 +0200
commit8bb5edc1c9054d835ef79c9f1ab3e021b0693303 (patch)
tree3f97435a0e5c512bcbafe15bb0f8a014a7b6e278 /makefile.osx
parent454bc86479a387893604cd662aae994d37699672 (diff)
downloadbitcoin-8bb5edc1c9054d835ef79c9f1ab3e021b0693303.tar.xz
Allow UPnP mapping when USE_UPNP is defined and miniupnpc is installed at build time(statically linked).
Thanks joepie91 for the translation of the new copyright notices into Dutch. Thanks sipa for the translation of the new copyright notices into French. Thanks megu for the translation of the new copyright notices into Spanish. Thanks justmoon/Blitzboom for the translation of the new copyright notices into German. Thanks Joozero for the translation of the new copyright notices into Italian. Remaining translations were provided by Google Translate.
Diffstat (limited to 'makefile.osx')
-rw-r--r--makefile.osx7
1 files changed, 7 insertions, 0 deletions
diff --git a/makefile.osx b/makefile.osx
index 5c1ca6fba7..4836ea3f4f 100644
--- a/makefile.osx
+++ b/makefile.osx
@@ -16,6 +16,8 @@ LIBPATHS= \
WXLIBS=$(shell $(DEPSDIR)/bin/wx-config --libs --static)
+USE_UPNP:=0
+
LIBS= -dead_strip \
$(DEPSDIR)/lib/libdb_cxx-4.8.a \
$(DEPSDIR)/lib/libboost_system.a \
@@ -44,6 +46,11 @@ OBJS= \
obj/init.o \
cryptopp/obj/sha.o \
cryptopp/obj/cpu.o
+
+ifdef USE_UPNP
+ LIBS += $(DEPSDIR)/lib/libminiupnpc.a
+ DEFS += -DUSE_UPNP=$(USE_UPNP)
+endif
all: bitcoin