Mercurial > hg > bitcoin
diff src/makefile.unix @ 708:06d213590314 draft
Boost unit-testing framework.
make -f makefile.{unix,osx,mingw} test_bitcoin
to compile dumb, do-almost-nothing placeholder unit tests.
author | Gavin Andresen <gavinandresen@gmail.com> |
---|---|
date | Mon, 27 Jun 2011 14:05:02 -0400 (2011-06-27) |
parents | 9df222fa1ef1 |
children | 53efc26fbf15 |
line wrap: on
line diff
--- a/src/makefile.unix +++ b/src/makefile.unix @@ -75,11 +75,16 @@ bitcoind: $(OBJS:obj/%=obj/nogui/%) $(CXX) $(CXXFLAGS) -o $@ $^ $(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 test_bitcoin -rm -f obj/*.o -rm -f obj/nogui/*.o + -rm -f obj/test/*.o -rm -f cryptopp/obj/*.o -rm -f headers.h.gch - -rm -f bitcoin - -rm -f bitcoind