aboutsummaryrefslogtreecommitdiff
path: root/src/makefile.osx
diff options
context:
space:
mode:
authorGavin Andresen <gavinandresen@gmail.com>2011-06-27 13:30:44 -0700
committerGavin Andresen <gavinandresen@gmail.com>2011-06-27 13:30:44 -0700
commit8111e27905deda5c5415ed6b3c30ca944590a378 (patch)
tree5ccf717439043d3e7d2fbe8980f5070021349197 /src/makefile.osx
parentd0d80170a2ca73004e08fb85007fe055cbf4e411 (diff)
parent8baf865c94653e21d4f6f43bbb5c712b16aba0e4 (diff)
Merge pull request #356 from gavinandresen/unitTest
Boost unit-testing framework. Thanks to Steve (gasteve in irc) for original code.
Diffstat (limited to 'src/makefile.osx')
-rw-r--r--src/makefile.osx8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/makefile.osx b/src/makefile.osx
index 4e173a9dfa..784596b72d 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