aboutsummaryrefslogtreecommitdiff
path: root/src/makefile.unix
diff options
context:
space:
mode:
Diffstat (limited to 'src/makefile.unix')
-rw-r--r--src/makefile.unix9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/makefile.unix b/src/makefile.unix
index f2d85b9dd3..bb26bf5edd 100644
--- a/src/makefile.unix
+++ b/src/makefile.unix
@@ -75,11 +75,16 @@ obj/nogui/%.o: %.cpp $(HEADERS)
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