Bitcoin v0.3.19 · 2010-12-13
makefile.unix
1# Copyright (c) 2009-2010 Satoshi Nakamoto2# Distributed under the MIT/X11 software license, see the accompanying3# file license.txt or http://www.opensource.org/licenses/mit-license.php.456INCLUDEPATHS= \7 -I"/usr/local/include/wx-2.9" \8 -I"/usr/local/lib/wx/include/gtk2-unicode-debug-static-2.9"910# for wxWidgets 2.9.1, add -l Xxf86vm11WXLIBS= \12 -Wl,-Bstatic \13 -l wx_gtk2ud-2.9 \14 -Wl,-Bdynamic \15 -l gtk-x11-2.0 \16 -l SM1718# for boost 1.37, add -mt to the boost libraries19LIBS= \20 -Wl,-Bstatic \21 -l boost_system \22 -l boost_filesystem \23 -l boost_program_options \24 -l boost_thread \25 -l db_cxx \26 -l ssl \27 -l crypto \28 -Wl,-Bdynamic \29 -l gthread-2.0 \30 -l z \31 -l dl3233DEFS=-D__WXGTK__ -DNOPCH -DFOURWAYSSE2 -DUSE_SSL34DEBUGFLAGS=-g -D__WXDEBUG__35CFLAGS=-O2 -Wno-invalid-offsetof -Wformat $(DEBUGFLAGS) $(DEFS) $(INCLUDEPATHS)36HEADERS=headers.h strlcpy.h serialize.h uint256.h util.h key.h bignum.h base58.h \37 script.h db.h net.h irc.h main.h rpc.h uibase.h ui.h noui.h init.h3839OBJS= \40 obj/util.o \41 obj/script.o \42 obj/db.o \43 obj/net.o \44 obj/irc.o \45 obj/main.o \46 obj/rpc.o \47 obj/init.o \48 cryptopp/obj/sha.o \49 cryptopp/obj/cpu.o505152all: bitcoin535455obj/%.o: %.cpp $(HEADERS)56 g++ -c $(CFLAGS) -DGUI -o $@ $<5758cryptopp/obj/%.o: cryptopp/%.cpp59 g++ -c $(CFLAGS) -O3 -o $@ $<6061obj/sha256.o: sha256.cpp62 g++ -c $(CFLAGS) -msse2 -O3 -march=amdfam10 -o $@ $<6364bitcoin: $(OBJS) obj/ui.o obj/uibase.o obj/sha256.o65 g++ $(CFLAGS) -o $@ $^ $(WXLIBS) $(LIBS)666768obj/nogui/%.o: %.cpp $(HEADERS)69 g++ -c $(CFLAGS) -o $@ $<7071bitcoind: $(OBJS:obj/%=obj/nogui/%) obj/sha256.o72 g++ $(CFLAGS) -o $@ $^ $(LIBS)737475clean:76 -rm -f obj/*.o77 -rm -f obj/nogui/*.o78 -rm -f cryptopp/obj/*.o79 -rm -f headers.h.gch
Click a line number to link to it; use #L10-L20 for a range. "=" next to a version means the file is identical there.
