annotate src/makefile.unix @ 1689:e0b7a89bcaad draft

Moved checkpoints out of main, to prep for using them to help prevent DoS attacks
author Gavin Andresen <gavinandresen@gmail.com>
date Thu, 08 Sep 2011 16:50:58 -0400
parents dd922923468f
children 7fe46deb0a59 cd2653cbe33a
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
575
1a0476fe825f directory re-organization (keeps the old build system)
Jaromil <jaromil@dyne.org>
parents:
diff changeset
1 # Copyright (c) 2009-2010 Satoshi Nakamoto
1a0476fe825f directory re-organization (keeps the old build system)
Jaromil <jaromil@dyne.org>
parents:
diff changeset
2 # Distributed under the MIT/X11 software license, see the accompanying
1a0476fe825f directory re-organization (keeps the old build system)
Jaromil <jaromil@dyne.org>
parents:
diff changeset
3 # file license.txt or http://www.opensource.org/licenses/mit-license.php.
1a0476fe825f directory re-organization (keeps the old build system)
Jaromil <jaromil@dyne.org>
parents:
diff changeset
4
1a0476fe825f directory re-organization (keeps the old build system)
Jaromil <jaromil@dyne.org>
parents:
diff changeset
5 CXX=g++
1a0476fe825f directory re-organization (keeps the old build system)
Jaromil <jaromil@dyne.org>
parents:
diff changeset
6
1a0476fe825f directory re-organization (keeps the old build system)
Jaromil <jaromil@dyne.org>
parents:
diff changeset
7 WXINCLUDEPATHS=$(shell wx-config --cxxflags)
1a0476fe825f directory re-organization (keeps the old build system)
Jaromil <jaromil@dyne.org>
parents:
diff changeset
8
1a0476fe825f directory re-organization (keeps the old build system)
Jaromil <jaromil@dyne.org>
parents:
diff changeset
9 WXLIBS=$(shell wx-config --libs)
1a0476fe825f directory re-organization (keeps the old build system)
Jaromil <jaromil@dyne.org>
parents:
diff changeset
10
744
e98b41d99e48 Revert "Make UPnP default on Bitcoin but not on Bitcoind."
Matt Corallo <matt@bluematt.me>
parents: 726
diff changeset
11 USE_UPNP:=0
e98b41d99e48 Revert "Make UPnP default on Bitcoin but not on Bitcoind."
Matt Corallo <matt@bluematt.me>
parents: 726
diff changeset
12
869
82367e19d601 src/makefile.unix: remove -DFOURWAYSSE2
Jeff Garzik <jeff@garzik.org>
parents: 854
diff changeset
13 DEFS=-DNOPCH -DUSE_SSL
575
1a0476fe825f directory re-organization (keeps the old build system)
Jaromil <jaromil@dyne.org>
parents:
diff changeset
14
1a0476fe825f directory re-organization (keeps the old build system)
Jaromil <jaromil@dyne.org>
parents:
diff changeset
15 # for boost 1.37, add -mt to the boost libraries
1a0476fe825f directory re-organization (keeps the old build system)
Jaromil <jaromil@dyne.org>
parents:
diff changeset
16 LIBS= \
1a0476fe825f directory re-organization (keeps the old build system)
Jaromil <jaromil@dyne.org>
parents:
diff changeset
17 -Wl,-Bstatic \
1a0476fe825f directory re-organization (keeps the old build system)
Jaromil <jaromil@dyne.org>
parents:
diff changeset
18 -l boost_system \
1a0476fe825f directory re-organization (keeps the old build system)
Jaromil <jaromil@dyne.org>
parents:
diff changeset
19 -l boost_filesystem \
1a0476fe825f directory re-organization (keeps the old build system)
Jaromil <jaromil@dyne.org>
parents:
diff changeset
20 -l boost_program_options \
1a0476fe825f directory re-organization (keeps the old build system)
Jaromil <jaromil@dyne.org>
parents:
diff changeset
21 -l boost_thread \
1a0476fe825f directory re-organization (keeps the old build system)
Jaromil <jaromil@dyne.org>
parents:
diff changeset
22 -l db_cxx \
1a0476fe825f directory re-organization (keeps the old build system)
Jaromil <jaromil@dyne.org>
parents:
diff changeset
23 -l ssl \
1a0476fe825f directory re-organization (keeps the old build system)
Jaromil <jaromil@dyne.org>
parents:
diff changeset
24 -l crypto
1a0476fe825f directory re-organization (keeps the old build system)
Jaromil <jaromil@dyne.org>
parents:
diff changeset
25
744
e98b41d99e48 Revert "Make UPnP default on Bitcoin but not on Bitcoind."
Matt Corallo <matt@bluematt.me>
parents: 726
diff changeset
26 ifdef USE_UPNP
e98b41d99e48 Revert "Make UPnP default on Bitcoin but not on Bitcoind."
Matt Corallo <matt@bluematt.me>
parents: 726
diff changeset
27 LIBS += -l miniupnpc
e98b41d99e48 Revert "Make UPnP default on Bitcoin but not on Bitcoind."
Matt Corallo <matt@bluematt.me>
parents: 726
diff changeset
28 DEFS += -DUSE_UPNP=$(USE_UPNP)
e98b41d99e48 Revert "Make UPnP default on Bitcoin but not on Bitcoind."
Matt Corallo <matt@bluematt.me>
parents: 726
diff changeset
29 endif
575
1a0476fe825f directory re-organization (keeps the old build system)
Jaromil <jaromil@dyne.org>
parents:
diff changeset
30
1a0476fe825f directory re-organization (keeps the old build system)
Jaromil <jaromil@dyne.org>
parents:
diff changeset
31 LIBS+= \
1a0476fe825f directory re-organization (keeps the old build system)
Jaromil <jaromil@dyne.org>
parents:
diff changeset
32 -Wl,-Bdynamic \
1a0476fe825f directory re-organization (keeps the old build system)
Jaromil <jaromil@dyne.org>
parents:
diff changeset
33 -l z \
576
8ec6d5e778e5 Manual merge of jaromil's source tree reorg commit.
Jeff Garzik <jeff@garzik.org>
parents: 575
diff changeset
34 -l dl \
8ec6d5e778e5 Manual merge of jaromil's source tree reorg commit.
Jeff Garzik <jeff@garzik.org>
parents: 575
diff changeset
35 -l pthread
575
1a0476fe825f directory re-organization (keeps the old build system)
Jaromil <jaromil@dyne.org>
parents:
diff changeset
36
1a0476fe825f directory re-organization (keeps the old build system)
Jaromil <jaromil@dyne.org>
parents:
diff changeset
37
950
e5d23800c530 Add some hardening to protect against unknown/future exploits.
cjdelisle <calebdelisle@lavabit.com>
parents: 901
diff changeset
38 # Hardening
e5d23800c530 Add some hardening to protect against unknown/future exploits.
cjdelisle <calebdelisle@lavabit.com>
parents: 901
diff changeset
39 # Make some classes of vulnerabilities unexploitable in case one is discovered.
e5d23800c530 Add some hardening to protect against unknown/future exploits.
cjdelisle <calebdelisle@lavabit.com>
parents: 901
diff changeset
40 #
1665
dd922923468f Added a workaround for an Ubuntu bug which causes -fstack-protector-all to be disregarded.
cjdelisle <calebdelisle@lavabit.com>
parents: 1664
diff changeset
41 # This is a workaround for Ubuntu bug #691722, the default -fstack-protector causes
dd922923468f Added a workaround for an Ubuntu bug which causes -fstack-protector-all to be disregarded.
cjdelisle <calebdelisle@lavabit.com>
parents: 1664
diff changeset
42 # -fstack-protector-all to be ignored unless -fno-stack-protector is used first.
dd922923468f Added a workaround for an Ubuntu bug which causes -fstack-protector-all to be disregarded.
cjdelisle <calebdelisle@lavabit.com>
parents: 1664
diff changeset
43 # see: https://bugs.launchpad.net/ubuntu/+source/gcc-4.5/+bug/691722
dd922923468f Added a workaround for an Ubuntu bug which causes -fstack-protector-all to be disregarded.
cjdelisle <calebdelisle@lavabit.com>
parents: 1664
diff changeset
44 HARDENING=-fno-stack-protector
dd922923468f Added a workaround for an Ubuntu bug which causes -fstack-protector-all to be disregarded.
cjdelisle <calebdelisle@lavabit.com>
parents: 1664
diff changeset
45
950
e5d23800c530 Add some hardening to protect against unknown/future exploits.
cjdelisle <calebdelisle@lavabit.com>
parents: 901
diff changeset
46 # Stack Canaries
e5d23800c530 Add some hardening to protect against unknown/future exploits.
cjdelisle <calebdelisle@lavabit.com>
parents: 901
diff changeset
47 # Put numbers at the beginning of each stack frame and check that they are the same.
e5d23800c530 Add some hardening to protect against unknown/future exploits.
cjdelisle <calebdelisle@lavabit.com>
parents: 901
diff changeset
48 # If a stack buffer if overflowed, it writes over the canary number and then on return
e5d23800c530 Add some hardening to protect against unknown/future exploits.
cjdelisle <calebdelisle@lavabit.com>
parents: 901
diff changeset
49 # when that number is checked, it won't be the same and the program will exit with
e5d23800c530 Add some hardening to protect against unknown/future exploits.
cjdelisle <calebdelisle@lavabit.com>
parents: 901
diff changeset
50 # a "Stack smashing detected" error instead of being exploited.
1665
dd922923468f Added a workaround for an Ubuntu bug which causes -fstack-protector-all to be disregarded.
cjdelisle <calebdelisle@lavabit.com>
parents: 1664
diff changeset
51 HARDENING+=-fstack-protector-all -Wstack-protector
950
e5d23800c530 Add some hardening to protect against unknown/future exploits.
cjdelisle <calebdelisle@lavabit.com>
parents: 901
diff changeset
52
e5d23800c530 Add some hardening to protect against unknown/future exploits.
cjdelisle <calebdelisle@lavabit.com>
parents: 901
diff changeset
53 # Make some important things such as the global offset table read only as soon as
e5d23800c530 Add some hardening to protect against unknown/future exploits.
cjdelisle <calebdelisle@lavabit.com>
parents: 901
diff changeset
54 # the dynamic linker is finished building it. This will prevent overwriting of addresses
e5d23800c530 Add some hardening to protect against unknown/future exploits.
cjdelisle <calebdelisle@lavabit.com>
parents: 901
diff changeset
55 # which would later be jumped to.
e5d23800c530 Add some hardening to protect against unknown/future exploits.
cjdelisle <calebdelisle@lavabit.com>
parents: 901
diff changeset
56 HARDENING+=-Wl,-z,relro -Wl,-z,now
e5d23800c530 Add some hardening to protect against unknown/future exploits.
cjdelisle <calebdelisle@lavabit.com>
parents: 901
diff changeset
57
e5d23800c530 Add some hardening to protect against unknown/future exploits.
cjdelisle <calebdelisle@lavabit.com>
parents: 901
diff changeset
58 # Build position independent code to take advantage of Address Space Layout Randomization
e5d23800c530 Add some hardening to protect against unknown/future exploits.
cjdelisle <calebdelisle@lavabit.com>
parents: 901
diff changeset
59 # offered by some kernels.
e5d23800c530 Add some hardening to protect against unknown/future exploits.
cjdelisle <calebdelisle@lavabit.com>
parents: 901
diff changeset
60 # see doc/build-unix.txt for more information.
e5d23800c530 Add some hardening to protect against unknown/future exploits.
cjdelisle <calebdelisle@lavabit.com>
parents: 901
diff changeset
61 ifdef PIE
e5d23800c530 Add some hardening to protect against unknown/future exploits.
cjdelisle <calebdelisle@lavabit.com>
parents: 901
diff changeset
62 HARDENING+=-fPIE -pie
e5d23800c530 Add some hardening to protect against unknown/future exploits.
cjdelisle <calebdelisle@lavabit.com>
parents: 901
diff changeset
63 endif
e5d23800c530 Add some hardening to protect against unknown/future exploits.
cjdelisle <calebdelisle@lavabit.com>
parents: 901
diff changeset
64
e5d23800c530 Add some hardening to protect against unknown/future exploits.
cjdelisle <calebdelisle@lavabit.com>
parents: 901
diff changeset
65 # -D_FORTIFY_SOURCE=2 does some checking for potentially exploitable code patterns in
e5d23800c530 Add some hardening to protect against unknown/future exploits.
cjdelisle <calebdelisle@lavabit.com>
parents: 901
diff changeset
66 # the source such overflowing a statically defined buffer.
e5d23800c530 Add some hardening to protect against unknown/future exploits.
cjdelisle <calebdelisle@lavabit.com>
parents: 901
diff changeset
67 HARDENING+=-D_FORTIFY_SOURCE=2
e5d23800c530 Add some hardening to protect against unknown/future exploits.
cjdelisle <calebdelisle@lavabit.com>
parents: 901
diff changeset
68 #
e5d23800c530 Add some hardening to protect against unknown/future exploits.
cjdelisle <calebdelisle@lavabit.com>
parents: 901
diff changeset
69
e5d23800c530 Add some hardening to protect against unknown/future exploits.
cjdelisle <calebdelisle@lavabit.com>
parents: 901
diff changeset
70
575
1a0476fe825f directory re-organization (keeps the old build system)
Jaromil <jaromil@dyne.org>
parents:
diff changeset
71 DEBUGFLAGS=-g -D__WXDEBUG__
950
e5d23800c530 Add some hardening to protect against unknown/future exploits.
cjdelisle <calebdelisle@lavabit.com>
parents: 901
diff changeset
72 CXXFLAGS=-O2 -Wno-invalid-offsetof -Wformat $(DEBUGFLAGS) $(DEFS) $(HARDENING)
874
2e1afcc5958d Cleanup makefiles such that diffs to them are smaller
Giel van Schijndel <me@mortis.eu>
parents: 869
diff changeset
73 HEADERS = \
2e1afcc5958d Cleanup makefiles such that diffs to them are smaller
Giel van Schijndel <me@mortis.eu>
parents: 869
diff changeset
74 base58.h \
2e1afcc5958d Cleanup makefiles such that diffs to them are smaller
Giel van Schijndel <me@mortis.eu>
parents: 869
diff changeset
75 bignum.h \
1689
e0b7a89bcaad Moved checkpoints out of main, to prep for using them to help prevent DoS attacks
Gavin Andresen <gavinandresen@gmail.com>
parents: 1665
diff changeset
76 checkpoints.h \
874
2e1afcc5958d Cleanup makefiles such that diffs to them are smaller
Giel van Schijndel <me@mortis.eu>
parents: 869
diff changeset
77 crypter.h \
2e1afcc5958d Cleanup makefiles such that diffs to them are smaller
Giel van Schijndel <me@mortis.eu>
parents: 869
diff changeset
78 db.h \
2e1afcc5958d Cleanup makefiles such that diffs to them are smaller
Giel van Schijndel <me@mortis.eu>
parents: 869
diff changeset
79 headers.h \
2e1afcc5958d Cleanup makefiles such that diffs to them are smaller
Giel van Schijndel <me@mortis.eu>
parents: 869
diff changeset
80 init.h \
2e1afcc5958d Cleanup makefiles such that diffs to them are smaller
Giel van Schijndel <me@mortis.eu>
parents: 869
diff changeset
81 irc.h \
2e1afcc5958d Cleanup makefiles such that diffs to them are smaller
Giel van Schijndel <me@mortis.eu>
parents: 869
diff changeset
82 key.h \
2e1afcc5958d Cleanup makefiles such that diffs to them are smaller
Giel van Schijndel <me@mortis.eu>
parents: 869
diff changeset
83 keystore.h \
2e1afcc5958d Cleanup makefiles such that diffs to them are smaller
Giel van Schijndel <me@mortis.eu>
parents: 869
diff changeset
84 main.h \
2e1afcc5958d Cleanup makefiles such that diffs to them are smaller
Giel van Schijndel <me@mortis.eu>
parents: 869
diff changeset
85 net.h \
2e1afcc5958d Cleanup makefiles such that diffs to them are smaller
Giel van Schijndel <me@mortis.eu>
parents: 869
diff changeset
86 noui.h \
876
b5abe85df1e7 Start moving protocol-specific code to protocol.[ch]pp
Giel van Schijndel <me@mortis.eu>
parents: 874
diff changeset
87 protocol.h \
874
2e1afcc5958d Cleanup makefiles such that diffs to them are smaller
Giel van Schijndel <me@mortis.eu>
parents: 869
diff changeset
88 rpc.h \
2e1afcc5958d Cleanup makefiles such that diffs to them are smaller
Giel van Schijndel <me@mortis.eu>
parents: 869
diff changeset
89 script.h \
2e1afcc5958d Cleanup makefiles such that diffs to them are smaller
Giel van Schijndel <me@mortis.eu>
parents: 869
diff changeset
90 serialize.h \
2e1afcc5958d Cleanup makefiles such that diffs to them are smaller
Giel van Schijndel <me@mortis.eu>
parents: 869
diff changeset
91 strlcpy.h \
2e1afcc5958d Cleanup makefiles such that diffs to them are smaller
Giel van Schijndel <me@mortis.eu>
parents: 869
diff changeset
92 ui.h \
2e1afcc5958d Cleanup makefiles such that diffs to them are smaller
Giel van Schijndel <me@mortis.eu>
parents: 869
diff changeset
93 uibase.h \
2e1afcc5958d Cleanup makefiles such that diffs to them are smaller
Giel van Schijndel <me@mortis.eu>
parents: 869
diff changeset
94 uint256.h \
2e1afcc5958d Cleanup makefiles such that diffs to them are smaller
Giel van Schijndel <me@mortis.eu>
parents: 869
diff changeset
95 util.h \
2e1afcc5958d Cleanup makefiles such that diffs to them are smaller
Giel van Schijndel <me@mortis.eu>
parents: 869
diff changeset
96 wallet.h
575
1a0476fe825f directory re-organization (keeps the old build system)
Jaromil <jaromil@dyne.org>
parents:
diff changeset
97
1a0476fe825f directory re-organization (keeps the old build system)
Jaromil <jaromil@dyne.org>
parents:
diff changeset
98 OBJS= \
1689
e0b7a89bcaad Moved checkpoints out of main, to prep for using them to help prevent DoS attacks
Gavin Andresen <gavinandresen@gmail.com>
parents: 1665
diff changeset
99 obj/checkpoints.o \
874
2e1afcc5958d Cleanup makefiles such that diffs to them are smaller
Giel van Schijndel <me@mortis.eu>
parents: 869
diff changeset
100 obj/crypter.o \
575
1a0476fe825f directory re-organization (keeps the old build system)
Jaromil <jaromil@dyne.org>
parents:
diff changeset
101 obj/db.o \
874
2e1afcc5958d Cleanup makefiles such that diffs to them are smaller
Giel van Schijndel <me@mortis.eu>
parents: 869
diff changeset
102 obj/init.o \
575
1a0476fe825f directory re-organization (keeps the old build system)
Jaromil <jaromil@dyne.org>
parents:
diff changeset
103 obj/irc.o \
689
9df222fa1ef1 move wallet code to separate file
Pieter Wuille <pieter.wuille@gmail.com>
parents: 576
diff changeset
104 obj/keystore.o \
575
1a0476fe825f directory re-organization (keeps the old build system)
Jaromil <jaromil@dyne.org>
parents:
diff changeset
105 obj/main.o \
874
2e1afcc5958d Cleanup makefiles such that diffs to them are smaller
Giel van Schijndel <me@mortis.eu>
parents: 869
diff changeset
106 obj/net.o \
876
b5abe85df1e7 Start moving protocol-specific code to protocol.[ch]pp
Giel van Schijndel <me@mortis.eu>
parents: 874
diff changeset
107 obj/protocol.o \
575
1a0476fe825f directory re-organization (keeps the old build system)
Jaromil <jaromil@dyne.org>
parents:
diff changeset
108 obj/rpc.o \
874
2e1afcc5958d Cleanup makefiles such that diffs to them are smaller
Giel van Schijndel <me@mortis.eu>
parents: 869
diff changeset
109 obj/script.o \
2e1afcc5958d Cleanup makefiles such that diffs to them are smaller
Giel van Schijndel <me@mortis.eu>
parents: 869
diff changeset
110 obj/util.o \
2e1afcc5958d Cleanup makefiles such that diffs to them are smaller
Giel van Schijndel <me@mortis.eu>
parents: 869
diff changeset
111 obj/wallet.o \
575
1a0476fe825f directory re-organization (keeps the old build system)
Jaromil <jaromil@dyne.org>
parents:
diff changeset
112 cryptopp/obj/sha.o \
1a0476fe825f directory re-organization (keeps the old build system)
Jaromil <jaromil@dyne.org>
parents:
diff changeset
113 cryptopp/obj/cpu.o
1a0476fe825f directory re-organization (keeps the old build system)
Jaromil <jaromil@dyne.org>
parents:
diff changeset
114
1a0476fe825f directory re-organization (keeps the old build system)
Jaromil <jaromil@dyne.org>
parents:
diff changeset
115
1a0476fe825f directory re-organization (keeps the old build system)
Jaromil <jaromil@dyne.org>
parents:
diff changeset
116 all: bitcoin
1a0476fe825f directory re-organization (keeps the old build system)
Jaromil <jaromil@dyne.org>
parents:
diff changeset
117
1a0476fe825f directory re-organization (keeps the old build system)
Jaromil <jaromil@dyne.org>
parents:
diff changeset
118
1a0476fe825f directory re-organization (keeps the old build system)
Jaromil <jaromil@dyne.org>
parents:
diff changeset
119 obj/%.o: %.cpp $(HEADERS)
1a0476fe825f directory re-organization (keeps the old build system)
Jaromil <jaromil@dyne.org>
parents:
diff changeset
120 $(CXX) -c $(CXXFLAGS) $(WXINCLUDEPATHS) -DGUI -o $@ $<
1a0476fe825f directory re-organization (keeps the old build system)
Jaromil <jaromil@dyne.org>
parents:
diff changeset
121
1a0476fe825f directory re-organization (keeps the old build system)
Jaromil <jaromil@dyne.org>
parents:
diff changeset
122 cryptopp/obj/%.o: cryptopp/%.cpp
1a0476fe825f directory re-organization (keeps the old build system)
Jaromil <jaromil@dyne.org>
parents:
diff changeset
123 $(CXX) -c $(CXXFLAGS) -O3 -o $@ $<
1a0476fe825f directory re-organization (keeps the old build system)
Jaromil <jaromil@dyne.org>
parents:
diff changeset
124
576
8ec6d5e778e5 Manual merge of jaromil's source tree reorg commit.
Jeff Garzik <jeff@garzik.org>
parents: 575
diff changeset
125 bitcoin: $(OBJS) obj/ui.o obj/uibase.o
575
1a0476fe825f directory re-organization (keeps the old build system)
Jaromil <jaromil@dyne.org>
parents:
diff changeset
126 $(CXX) $(CXXFLAGS) -o $@ $^ $(WXLIBS) $(LIBS)
1a0476fe825f directory re-organization (keeps the old build system)
Jaromil <jaromil@dyne.org>
parents:
diff changeset
127
1a0476fe825f directory re-organization (keeps the old build system)
Jaromil <jaromil@dyne.org>
parents:
diff changeset
128
1a0476fe825f directory re-organization (keeps the old build system)
Jaromil <jaromil@dyne.org>
parents:
diff changeset
129 obj/nogui/%.o: %.cpp $(HEADERS)
1a0476fe825f directory re-organization (keeps the old build system)
Jaromil <jaromil@dyne.org>
parents:
diff changeset
130 $(CXX) -c $(CXXFLAGS) -o $@ $<
1a0476fe825f directory re-organization (keeps the old build system)
Jaromil <jaromil@dyne.org>
parents:
diff changeset
131
576
8ec6d5e778e5 Manual merge of jaromil's source tree reorg commit.
Jeff Garzik <jeff@garzik.org>
parents: 575
diff changeset
132 bitcoind: $(OBJS:obj/%=obj/nogui/%)
575
1a0476fe825f directory re-organization (keeps the old build system)
Jaromil <jaromil@dyne.org>
parents:
diff changeset
133 $(CXX) $(CXXFLAGS) -o $@ $^ $(LIBS)
1a0476fe825f directory re-organization (keeps the old build system)
Jaromil <jaromil@dyne.org>
parents:
diff changeset
134
886
1816aebec598 CHECKMULTISIG unit tests.
Gavin Andresen <gavinandresen@gmail.com>
parents: 869
diff changeset
135 obj/test/test_bitcoin.o: $(wildcard test/*.cpp) $(HEADERS)
1816aebec598 CHECKMULTISIG unit tests.
Gavin Andresen <gavinandresen@gmail.com>
parents: 869
diff changeset
136 $(CXX) -c $(CFLAGS) -o $@ test/test_bitcoin.cpp
708
06d213590314 Boost unit-testing framework.
Gavin Andresen <gavinandresen@gmail.com>
parents: 689
diff changeset
137
854
e414103667ba Fix testing setup
Vegard Nossum <vegard.nossum@gmail.com>
parents: 760
diff changeset
138 test_bitcoin: obj/test/test_bitcoin.o $(filter-out obj/nogui/init.o,$(OBJS:obj/%=obj/nogui/%))
e414103667ba Fix testing setup
Vegard Nossum <vegard.nossum@gmail.com>
parents: 760
diff changeset
139 $(CXX) $(CXXFLAGS) -o $@ $(LIBPATHS) $^ -Wl,-Bstatic -lboost_unit_test_framework $(LIBS)
575
1a0476fe825f directory re-organization (keeps the old build system)
Jaromil <jaromil@dyne.org>
parents:
diff changeset
140
1a0476fe825f directory re-organization (keeps the old build system)
Jaromil <jaromil@dyne.org>
parents:
diff changeset
141 clean:
708
06d213590314 Boost unit-testing framework.
Gavin Andresen <gavinandresen@gmail.com>
parents: 689
diff changeset
142 -rm -f bitcoin bitcoind test_bitcoin
575
1a0476fe825f directory re-organization (keeps the old build system)
Jaromil <jaromil@dyne.org>
parents:
diff changeset
143 -rm -f obj/*.o
1a0476fe825f directory re-organization (keeps the old build system)
Jaromil <jaromil@dyne.org>
parents:
diff changeset
144 -rm -f obj/nogui/*.o
708
06d213590314 Boost unit-testing framework.
Gavin Andresen <gavinandresen@gmail.com>
parents: 689
diff changeset
145 -rm -f obj/test/*.o
575
1a0476fe825f directory re-organization (keeps the old build system)
Jaromil <jaromil@dyne.org>
parents:
diff changeset
146 -rm -f cryptopp/obj/*.o
1a0476fe825f directory re-organization (keeps the old build system)
Jaromil <jaromil@dyne.org>
parents:
diff changeset
147 -rm -f headers.h.gch