aboutsummaryrefslogtreecommitdiff
path: root/src/makefile.mingw
diff options
context:
space:
mode:
authorGavin Andresen <[email protected]>2011-06-27 14:05:02 -0400
committerGavin Andresen <[email protected]>2011-06-27 14:12:48 -0400
commit8baf865c94653e21d4f6f43bbb5c712b16aba0e4 (patch)
tree406fea14ada1518e4d4122d4785deb7165f0e290 /src/makefile.mingw
parentMerge branch 'totalblocksestimate1' of https://github.com/laanwj/bitcoin (diff)
downloaddiscoin-8baf865c94653e21d4f6f43bbb5c712b16aba0e4.tar.xz
discoin-8baf865c94653e21d4f6f43bbb5c712b16aba0e4.zip
Boost unit-testing framework.
make -f makefile.{unix,osx,mingw} test_bitcoin to compile dumb, do-almost-nothing placeholder unit tests.
Diffstat (limited to 'src/makefile.mingw')
-rw-r--r--src/makefile.mingw8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/makefile.mingw b/src/makefile.mingw
index fccc0e36a..507833be4 100644
--- a/src/makefile.mingw
+++ b/src/makefile.mingw
@@ -81,9 +81,17 @@ obj/nogui/%.o: %.cpp $(HEADERS)
bitcoind.exe: $(OBJS:obj/%=obj/nogui/%) obj/ui_res.o
g++ $(CFLAGS) -o $@ $(LIBPATHS) $^ $(LIBS)
+obj/test/%.o: obj/test/%.cpp $(HEADERS)
+ g++ -c $(CFLAGS) -o $@ $<
+
+test_bitcoin: obj/test/test_bitcoin.o
+ g++ $(CFLAGS) -o $@ $(LIBPATHS) $^ $(LIBS)
clean:
+ -del /Q bitcoin bitcoind test_bitcoin
-del /Q obj\*
-del /Q obj\nogui\*
+ -del /Q obj\test\*
-del /Q cryptopp\obj\*
+ -del /Q test\*.o
-del /Q headers.h.gch