1 # Copyright (c) 2009-2010 Satoshi Nakamoto
2 # Rewritten for Archlinux by shahid
3 # Distributed under the MIT/X11 software license, see the accompanying
4 # file license.txt or http://www.opensource.org/licenses/mit-license.php.
15 DEFS=-DNOPCH -DFOURWAYSSE2 -DUSE_SSL
19 # --as-needed lazy linking set as default behavior of ld because i guess, there are useless libs here
20 # Of couse, this may be overriden by LDFLAGS in makepkg.conf
26 -l boost_program_options \
32 DEFS += -DUSE_UPNP=$(USE_UPNP)
42 #DEBUGFLAGS=-g -D__WXDEBUG__
43 CCFLAGS=${CXXFLAGS} -DBOOST_FILESYSTEM_DEPRECATED -Wno-invalid-offsetof -Wformat $(WXDEFS) $(INCLUDEPATHS) $(DEFS)
44 HEADERS=headers.h strlcpy.h serialize.h uint256.h util.h key.h bignum.h base58.h \
45 script.h db.h net.h irc.h main.h rpc.h uibase.h ui.h noui.h init.h
63 headers.h.gch: headers.h $(HEADERS)
64 $(CXX) -c $(CCFLAGS) -DGUI -o $@ $<
66 obj/%.o: %.cpp $(HEADERS) headers.h.gch
67 $(CXX) -c $(CCFLAGS) -DGUI -o $@ $<
69 # -DCRYPTOPP_DISABLE_SSE2
70 cryptopp/obj/%.o: cryptopp/%.cpp
71 $(CXX) -c $(CCFLAGS) -O3 -o $@ $<
73 bitcoin: $(OBJS) obj/ui.o obj/uibase.o
74 $(CXX) $(CCFLAGS) -o $@ $(LIBPATHS) $^ $(LIBS) $(WXLIBS)
76 obj/nogui/%.o: %.cpp $(HEADERS)
77 $(CXX) -c $(CCFLAGS) -o $@ $<
79 bitcoind: $(OBJS:obj/%=obj/nogui/%)
80 $(CXX) $(CCFLAGS) -o $@ $(LIBPATHS) $^ $(LIBS)
85 -rm -f cryptopp/obj/*.o