You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
90 lines
2.1 KiB
90 lines
2.1 KiB
15 years ago
|
# Copyright (c) 2009 Satoshi Nakamoto
|
||
|
# Distributed under the MIT/X11 software license, see the accompanying
|
||
|
# file license.txt or http://www.opensource.org/licenses/mit-license.php.
|
||
|
|
||
|
|
||
|
ifneq "$(BUILD)" "debug"
|
||
|
ifneq "$(BUILD)" "release"
|
||
|
BUILD=debug
|
||
|
endif
|
||
|
endif
|
||
|
ifeq "$(BUILD)" "debug"
|
||
|
D=d
|
||
|
DEBUGFLAGS=-g -D__WXDEBUG__
|
||
|
endif
|
||
|
|
||
|
|
||
|
|
||
15 years ago
|
INCLUDEPATHS= \
|
||
|
-I"/usr/include" \
|
||
|
-I"/usr/local/include/wx-2.8" \
|
||
|
-I"/usr/local/lib/wx/include/gtk2-ansi-debug-static-2.8"
|
||
|
|
||
|
LIBPATHS= \
|
||
|
-L"/usr/lib" \
|
||
15 years ago
|
-L"/usr/local/lib"
|
||
15 years ago
|
|
||
|
LIBS= \
|
||
15 years ago
|
-Wl,-Bstatic \
|
||
|
-l boost_system -l boost_filesystem \
|
||
|
-l db_cxx \
|
||
|
-l wx_gtk2$(D)-2.8 \
|
||
|
-Wl,-Bdynamic \
|
||
|
-l crypto \
|
||
|
-l gtk-x11-2.0 -l gthread-2.0 -l SM
|
||
15 years ago
|
|
||
15 years ago
|
WXDEFS=-D__WXGTK__ -DNOPCH
|
||
15 years ago
|
CFLAGS=-O0 -Wno-invalid-offsetof -Wformat $(DEBUGFLAGS) $(WXDEFS) $(INCLUDEPATHS)
|
||
15 years ago
|
HEADERS=headers.h util.h main.h serialize.h uint256.h key.h bignum.h script.h db.h base58.h
|
||
|
|
||
|
|
||
|
|
||
|
all: bitcoin
|
||
|
|
||
|
|
||
|
headers.h.gch: headers.h $(HEADERS) net.h irc.h market.h uibase.h ui.h
|
||
|
g++ -c $(CFLAGS) -o $@ $<
|
||
|
|
||
15 years ago
|
obj/util.o: util.cpp $(HEADERS)
|
||
15 years ago
|
g++ -c $(CFLAGS) -o $@ $<
|
||
|
|
||
15 years ago
|
obj/script.o: script.cpp $(HEADERS)
|
||
15 years ago
|
g++ -c $(CFLAGS) -o $@ $<
|
||
|
|
||
15 years ago
|
obj/db.o: db.cpp $(HEADERS) market.h
|
||
15 years ago
|
g++ -c $(CFLAGS) -o $@ $<
|
||
|
|
||
15 years ago
|
obj/net.o: net.cpp $(HEADERS) net.h
|
||
15 years ago
|
g++ -c $(CFLAGS) -o $@ $<
|
||
|
|
||
15 years ago
|
obj/main.o: main.cpp $(HEADERS) net.h market.h sha.h
|
||
15 years ago
|
g++ -c $(CFLAGS) -o $@ $<
|
||
|
|
||
15 years ago
|
obj/market.o: market.cpp $(HEADERS) market.h
|
||
15 years ago
|
g++ -c $(CFLAGS) -o $@ $<
|
||
|
|
||
15 years ago
|
obj/ui.o: ui.cpp $(HEADERS) net.h uibase.h ui.h market.h
|
||
15 years ago
|
g++ -c $(CFLAGS) -o $@ $<
|
||
|
|
||
15 years ago
|
obj/uibase.o: uibase.cpp uibase.h
|
||
15 years ago
|
g++ -c $(CFLAGS) -o $@ $<
|
||
|
|
||
15 years ago
|
obj/sha.o: sha.cpp sha.h
|
||
15 years ago
|
g++ -c $(CFLAGS) -O3 -o $@ $<
|
||
|
|
||
15 years ago
|
obj/irc.o: irc.cpp $(HEADERS)
|
||
15 years ago
|
g++ -c $(CFLAGS) -o $@ $<
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
OBJS=obj/util.o obj/script.o obj/db.o obj/net.o obj/main.o obj/market.o \
|
||
15 years ago
|
obj/ui.o obj/uibase.o obj/sha.o obj/irc.o
|
||
15 years ago
|
|
||
|
bitcoin: headers.h.gch $(OBJS)
|
||
|
g++ $(CFLAGS) -o $@ $(LIBPATHS) $(OBJS) $(LIBS)
|
||
|
|
||
|
clean:
|
||
|
-rm obj/*
|
||
|
-rm headers.h.gch
|