Skip to content

Commit

Permalink
build bitcoind on ubuntu 16.10
Browse files Browse the repository at this point in the history
  • Loading branch information
ccen committed Mar 4, 2017
1 parent b8dc87b commit faa70ca
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions src/makefile.unix
Expand Up @@ -3,11 +3,16 @@
# file license.txt or http://www.opensource.org/licenses/mit-license.php.

CXX=g++
COMPILERCONFIG=-std=c++03 -fpermissive

WXINCLUDEPATHS=$(shell wx-config --cxxflags)

WXLIBS=$(shell wx-config --libs)

INCLUDEPATHS= \
-I /home/ccen/db-4.7.25.NC/build_unix
LIBPATHS= \
-L /home/ccen/db-4.7.25.NC/build_unix/.libs

USE_UPNP:=0

DEFS=-DNOPCH -DFOURWAYSSE2 -DUSE_SSL
Expand All @@ -19,7 +24,7 @@ LIBS= \
-l boost_filesystem \
-l boost_program_options \
-l boost_thread \
-l db_cxx \
-l db_cxx-4.7 \
-l ssl \
-l crypto

Expand All @@ -37,7 +42,7 @@ LIBS+= \


DEBUGFLAGS=-g -D__WXDEBUG__
CXXFLAGS=-O2 -Wno-invalid-offsetof -Wformat $(DEBUGFLAGS) $(DEFS)
CXXFLAGS=-O2 -Wno-invalid-offsetof -Wformat $(DEBUGFLAGS) $(DEFS) $(INCLUDEPATHS) $(COMPILERCONFIG)
HEADERS=headers.h strlcpy.h serialize.h uint256.h util.h key.h bignum.h base58.h \
script.h db.h net.h irc.h keystore.h main.h wallet.h rpc.h uibase.h ui.h noui.h init.h

Expand Down Expand Up @@ -66,14 +71,14 @@ cryptopp/obj/%.o: cryptopp/%.cpp
$(CXX) -c $(CXXFLAGS) -O3 -o $@ $<

bitcoin: $(OBJS) obj/ui.o obj/uibase.o
$(CXX) $(CXXFLAGS) -o $@ $^ $(WXLIBS) $(LIBS)
$(CXX) $(CXXFLAGS) -o $@ $^ $(LIBPATHS) $(WXLIBS) $(LIBS)


obj/nogui/%.o: %.cpp $(HEADERS)
$(CXX) -c $(CXXFLAGS) -o $@ $<

bitcoind: $(OBJS:obj/%=obj/nogui/%)
$(CXX) $(CXXFLAGS) -o $@ $^ $(LIBS)
$(CXX) $(CXXFLAGS) -o $@ $^ $(LIBPATHS) $(LIBS)

obj/test/%.o: test/%.cpp $(HEADERS)
$(CXX) -c $(CFLAGS) -o $@ $<
Expand Down

0 comments on commit faa70ca

Please sign in to comment.