diff options
| author | Gavin Andresen <[email protected]> | 2011-06-27 14:05:02 -0400 |
|---|---|---|
| committer | Gavin Andresen <[email protected]> | 2011-06-27 14:12:48 -0400 |
| commit | 8baf865c94653e21d4f6f43bbb5c712b16aba0e4 (patch) | |
| tree | 406fea14ada1518e4d4122d4785deb7165f0e290 /src/makefile.osx | |
| parent | Merge branch 'totalblocksestimate1' of https://github.com/laanwj/bitcoin (diff) | |
| download | discoin-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.osx')
| -rw-r--r-- | src/makefile.osx | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/makefile.osx b/src/makefile.osx index 4e173a9df..784596b72 100644 --- a/src/makefile.osx +++ b/src/makefile.osx @@ -74,9 +74,15 @@ obj/nogui/%.o: %.cpp $(HEADERS) bitcoind: $(OBJS:obj/%=obj/nogui/%) $(CXX) $(CFLAGS) -o $@ $(LIBPATHS) $^ $(LIBS) +obj/test/%.o: test/%.cpp $(HEADERS) + $(CXX) -c $(CFLAGS) -o $@ $< + +test_bitcoin: obj/test/test_bitcoin.o + $(CXX) $(CFLAGS) -o $@ $(LIBPATHS) $^ $(LIBS) -lboost_unit_test_framework clean: - -rm -f bitcoin bitcoind + -rm -f bitcoin bitcoind test_bitcoin -rm -f obj/*.o -rm -f obj/nogui/*.o + -rm -f obj/test/*.o -rm -f cryptopp/obj/*.o |