|
|
@ -101,15 +101,26 @@ OBJS= \ |
|
|
|
|
|
|
|
|
|
|
|
all: bitcoind |
|
|
|
all: bitcoind |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# auto-generated dependencies: |
|
|
|
|
|
|
|
-include obj/nogui/*.P |
|
|
|
|
|
|
|
-include obj/test/*.P |
|
|
|
|
|
|
|
|
|
|
|
obj/nogui/%.o: %.cpp $(HEADERS) |
|
|
|
obj/nogui/%.o: %.cpp |
|
|
|
$(CXX) -c $(CXXFLAGS) -o $@ $< |
|
|
|
$(CXX) -c $(CXXFLAGS) -MMD -o $@ $< |
|
|
|
|
|
|
|
@cp $(@:%.o=%.d) $(@:%.o=%.P); \ |
|
|
|
|
|
|
|
sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \ |
|
|
|
|
|
|
|
-e '/^$$/ d' -e 's/$$/ :/' < $(@:%.o=%.d) >> $(@:%.o=%.P); \ |
|
|
|
|
|
|
|
rm -f $(@:%.o=%.d) |
|
|
|
|
|
|
|
|
|
|
|
bitcoind: $(OBJS:obj/%=obj/nogui/%) |
|
|
|
bitcoind: $(OBJS:obj/%=obj/nogui/%) |
|
|
|
$(CXX) $(CXXFLAGS) -o $@ $^ $(LIBS) |
|
|
|
$(CXX) $(CXXFLAGS) -o $@ $^ $(LIBS) |
|
|
|
|
|
|
|
|
|
|
|
obj/test/test_bitcoin.o: $(wildcard test/*.cpp) $(HEADERS) |
|
|
|
obj/test/%.o: test/%.cpp |
|
|
|
$(CXX) -c $(CFLAGS) -o $@ test/test_bitcoin.cpp |
|
|
|
$(CXX) -c $(CXXFLAGS) -MMD -o $@ $< |
|
|
|
|
|
|
|
@cp $(@:%.o=%.d) $(@:%.o=%.P); \ |
|
|
|
|
|
|
|
sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \ |
|
|
|
|
|
|
|
-e '/^$$/ d' -e 's/$$/ :/' < $(@:%.o=%.d) >> $(@:%.o=%.P); \ |
|
|
|
|
|
|
|
rm -f $(@:%.o=%.d) |
|
|
|
|
|
|
|
|
|
|
|
test_bitcoin: obj/test/test_bitcoin.o $(filter-out obj/nogui/init.o,$(OBJS:obj/%=obj/nogui/%)) |
|
|
|
test_bitcoin: obj/test/test_bitcoin.o $(filter-out obj/nogui/init.o,$(OBJS:obj/%=obj/nogui/%)) |
|
|
|
$(CXX) $(CXXFLAGS) -o $@ $(LIBPATHS) $^ -Wl,-Bstatic -lboost_unit_test_framework $(LIBS) |
|
|
|
$(CXX) $(CXXFLAGS) -o $@ $(LIBPATHS) $^ -Wl,-Bstatic -lboost_unit_test_framework $(LIBS) |
|
|
@ -119,4 +130,6 @@ clean: |
|
|
|
-rm -f obj/*.o |
|
|
|
-rm -f obj/*.o |
|
|
|
-rm -f obj/nogui/*.o |
|
|
|
-rm -f obj/nogui/*.o |
|
|
|
-rm -f obj/test/*.o |
|
|
|
-rm -f obj/test/*.o |
|
|
|
-rm -f headers.h.gch |
|
|
|
-rm -f obj/*.P |
|
|
|
|
|
|
|
-rm -f obj/nogui/*.P |
|
|
|
|
|
|
|
-rm -f obj/test/*.P |
|
|
|