aboutsummaryrefslogtreecommitdiff
path: root/makefile.unix
diff options
context:
space:
mode:
Diffstat (limited to 'makefile.unix')
-rw-r--r--makefile.unix15
1 files changed, 13 insertions, 2 deletions
diff --git a/makefile.unix b/makefile.unix
index d306f746d3..61b925e3bc 100644
--- a/makefile.unix
+++ b/makefile.unix
@@ -8,6 +8,10 @@ WXINCLUDEPATHS=$(shell wx-config --cxxflags)
WXLIBS=$(shell wx-config --libs)
+USE_UPNP:=0
+
+DEFS=-DNOPCH -DFOURWAYSSE2 -DUSE_SSL
+
# for boost 1.37, add -mt to the boost libraries
LIBS= \
-Wl,-Bstatic \
@@ -17,13 +21,20 @@ LIBS= \
-l boost_thread \
-l db_cxx \
-l ssl \
- -l crypto \
+ -l crypto
+
+ifdef USE_UPNP
+ LIBS += -l miniupnpc
+ DEFS += -DUSE_UPNP=$(USE_UPNP)
+endif
+
+LIBS+= \
-Wl,-Bdynamic \
-l gthread-2.0 \
-l z \
-l dl
-DEFS=-DNOPCH -DFOURWAYSSE2 -DUSE_SSL
+
DEBUGFLAGS=-g -D__WXDEBUG__
CXXFLAGS=-O2 -Wno-invalid-offsetof -Wformat $(DEBUGFLAGS) $(DEFS)
HEADERS=headers.h strlcpy.h serialize.h uint256.h util.h key.h bignum.h base58.h \