|
|
@ -28,6 +28,7 @@ LIBS= \ |
|
|
|
DEFS=-DWIN32 -D_WINDOWS -DBOOST_THREAD_USE_LIB -DBOOST_SPIRIT_THREADSAFE |
|
|
|
DEFS=-DWIN32 -D_WINDOWS -DBOOST_THREAD_USE_LIB -DBOOST_SPIRIT_THREADSAFE |
|
|
|
DEBUGFLAGS=-g |
|
|
|
DEBUGFLAGS=-g |
|
|
|
CFLAGS=-mthreads -O2 -w -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter $(DEBUGFLAGS) $(DEFS) $(INCLUDEPATHS) |
|
|
|
CFLAGS=-mthreads -O2 -w -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter $(DEBUGFLAGS) $(DEFS) $(INCLUDEPATHS) |
|
|
|
|
|
|
|
LDFLAGS=-Wl,--dynamicbase -Wl,--nxcompat |
|
|
|
|
|
|
|
|
|
|
|
TESTDEFS = -DTEST_DATA_DIR=$(abspath test/data) |
|
|
|
TESTDEFS = -DTEST_DATA_DIR=$(abspath test/data) |
|
|
|
|
|
|
|
|
|
|
@ -85,7 +86,7 @@ obj/%.o: %.cpp $(HEADERS) |
|
|
|
g++ -c $(CFLAGS) -o $@ $< |
|
|
|
g++ -c $(CFLAGS) -o $@ $< |
|
|
|
|
|
|
|
|
|
|
|
bitcoind.exe: $(OBJS:obj/%=obj/%) |
|
|
|
bitcoind.exe: $(OBJS:obj/%=obj/%) |
|
|
|
g++ $(CFLAGS) -o $@ $(LIBPATHS) $^ $(LIBS) |
|
|
|
g++ $(CFLAGS) $(LDFLAGS) -o $@ $(LIBPATHS) $^ $(LIBS) |
|
|
|
|
|
|
|
|
|
|
|
TESTOBJS := $(patsubst test/%.cpp,obj-test/%.o,$(wildcard test/*.cpp)) |
|
|
|
TESTOBJS := $(patsubst test/%.cpp,obj-test/%.o,$(wildcard test/*.cpp)) |
|
|
|
|
|
|
|
|
|
|
@ -93,7 +94,7 @@ obj-test/%.o: test/%.cpp $(HEADERS) |
|
|
|
g++ -c $(TESTDEFS) $(CFLAGS) -o $@ $< |
|
|
|
g++ -c $(TESTDEFS) $(CFLAGS) -o $@ $< |
|
|
|
|
|
|
|
|
|
|
|
test_bitcoin.exe: $(TESTOBJS) $(filter-out obj/init.o,$(OBJS:obj/%=obj/%)) |
|
|
|
test_bitcoin.exe: $(TESTOBJS) $(filter-out obj/init.o,$(OBJS:obj/%=obj/%)) |
|
|
|
g++ $(CFLAGS) -o $@ $(LIBPATHS) $^ -lboost_unit_test_framework $(LIBS) |
|
|
|
g++ $(CFLAGS) $(LDFLAGS) -o $@ $(LIBPATHS) $^ -lboost_unit_test_framework $(LIBS) |
|
|
|
|
|
|
|
|
|
|
|
clean: |
|
|
|
clean: |
|
|
|
-del /Q bitcoind test_bitcoin |
|
|
|
-del /Q bitcoind test_bitcoin |
|
|
|