Research
Timechain
Search Donate
Sponsors
Cake Wallet, private Bitcoin and Monero walletSideShift.ai, no-signup crypto exchangeOrangeRock, non-custodial bitcoin spot and perps tradingBraiins Hashpower, buy and sell Bitcoin hashrateeCash.com
Bitcoin v0.2.0 · 2009-12-16

makefile.unix

89 lines · plain text · GitHub · MIT license (license.txt)
1# Copyright (c) 2009 Satoshi Nakamoto2# Distributed under the MIT/X11 software license, see the accompanying3# file license.txt or http://www.opensource.org/licenses/mit-license.php.456ifneq "$(BUILD)" "debug"7ifneq "$(BUILD)" "release"8BUILD=debug9endif10endif11ifeq "$(BUILD)" "debug"12D=d13DEBUGFLAGS=-g -D__WXDEBUG__14endif15161718INCLUDEPATHS= \19 -I"/usr/include" \20 -I"/usr/local/include/wx-2.8" \21 -I"/usr/local/lib/wx/include/gtk2-ansi-debug-static-2.8"2223LIBPATHS= \24 -L"/usr/lib" \25 -L"/usr/local/lib"2627LIBS= \28 -Wl,-Bstatic \29   -l boost_system -l boost_filesystem \30   -l db_cxx \31   -l wx_gtk2$(D)-2.8 \32 -Wl,-Bdynamic \33   -l crypto \34   -l gtk-x11-2.0 -l gthread-2.0 -l SM3536WXDEFS=-D__WXGTK__ -DNOPCH37CFLAGS=-O0 -Wno-invalid-offsetof -Wformat $(DEBUGFLAGS) $(WXDEFS) $(INCLUDEPATHS)38HEADERS=headers.h util.h main.h serialize.h uint256.h key.h bignum.h script.h db.h base58.h39404142all: bitcoin434445headers.h.gch: headers.h $(HEADERS) net.h irc.h market.h uibase.h ui.h46	g++ -c $(CFLAGS) -o $@ $<4748obj/util.o: util.cpp                $(HEADERS)49	g++ -c $(CFLAGS) -o $@ $<5051obj/script.o: script.cpp            $(HEADERS)52	g++ -c $(CFLAGS) -o $@ $<5354obj/db.o: db.cpp                    $(HEADERS) market.h55	g++ -c $(CFLAGS) -o $@ $<5657obj/net.o: net.cpp                  $(HEADERS) net.h58	g++ -c $(CFLAGS) -o $@ $<5960obj/main.o: main.cpp                $(HEADERS) net.h market.h sha.h61	g++ -c $(CFLAGS) -o $@ $<6263obj/market.o: market.cpp            $(HEADERS) market.h64	g++ -c $(CFLAGS) -o $@ $<6566obj/ui.o: ui.cpp                    $(HEADERS) net.h uibase.h ui.h market.h67	g++ -c $(CFLAGS) -o $@ $<6869obj/uibase.o: uibase.cpp            uibase.h70	g++ -c $(CFLAGS) -o $@ $<7172obj/sha.o: sha.cpp                  sha.h73	g++ -c $(CFLAGS) -O3 -o $@ $<7475obj/irc.o: irc.cpp                  $(HEADERS)76	g++ -c $(CFLAGS) -o $@ $<7778798081OBJS=obj/util.o obj/script.o obj/db.o obj/net.o obj/main.o obj/market.o \82        obj/ui.o obj/uibase.o obj/sha.o obj/irc.o8384bitcoin: headers.h.gch $(OBJS)85	g++ $(CFLAGS) -o $@ $(LIBPATHS) $(OBJS) $(LIBS)8687clean:88	-rm obj/*89	-rm 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.

0:000:00