1 # Copyright (c) 2009-2010 Satoshi Nakamoto
2 # Distributed under the MIT/X11 software license, see the accompanying
3 # file license.txt or http://www.opensource.org/licenses/mit-license.php.
7 -I"/usr/local/include/wx-2.9" \
8 -I"/usr/local/lib/wx/include/gtk2-unicode-debug-static-2.9"
10 # for wxWidgets 2.9.1, add -l Xxf86vm
18 # for boost 1.37, add -mt to the boost libraries
23 -l boost_program_options \
33 DEFS=-D__WXGTK__ -DNOPCH -DFOURWAYSSE2 -DUSE_SSL
34 DEBUGFLAGS=-g -D__WXDEBUG__
35 CFLAGS=-O2 -Wno-invalid-offsetof -Wformat $(DEBUGFLAGS) $(DEFS) $(INCLUDEPATHS)
36 HEADERS=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.h
55 obj/%.o: %.cpp $(HEADERS)
56 g++ -c $(CFLAGS) -DGUI -o $@ $<
58 cryptopp/obj/%.o: cryptopp/%.cpp
59 g++ -c $(CFLAGS) -O3 -o $@ $<
61 obj/sha256.o: sha256.cpp
62 g++ -c $(CFLAGS) -msse2 -O3 -march=amdfam10 -o $@ $<
64 bitcoin: $(OBJS) obj/ui.o obj/uibase.o obj/sha256.o
65 g++ $(CFLAGS) -o $@ $^ $(WXLIBS) $(LIBS)
68 obj/nogui/%.o: %.cpp $(HEADERS)
69 g++ -c $(CFLAGS) -o $@ $<
71 bitcoind: $(OBJS:obj/%=obj/nogui/%) obj/sha256.o
72 g++ $(CFLAGS) -o $@ $^ $(LIBS)
78 -rm -f cryptopp/obj/*.o