Browse Source

fixed windows makefile

pull/5/head
orignal 8 years ago
parent
commit
b6ef70387f
  1. 14
      src/makefile.mingw

14
src/makefile.mingw

@ -21,7 +21,7 @@ USE_UPNP:=- @@ -21,7 +21,7 @@ USE_UPNP:=-
USE_IPV6:=1
DEPSDIR?=/usr/local
BOOST_SUFFIX?=-mgw46-mt-sd-1_52
BOOST_SUFFIX?=-mt
INCLUDEPATHS= \
-I"$(CURDIR)" \
@ -117,10 +117,10 @@ OBJS_SSE2= obj/scrypt-sse2.o @@ -117,10 +117,10 @@ OBJS_SSE2= obj/scrypt-sse2.o
OBJS += $(OBJS_SSE2)
endif
all: anoncoind.exe
all: gostcoind.exe
test check: test_anoncoin.exe FORCE
test_anoncoin.exe
test check: test_gostcoin.exe FORCE
test_gostcoin.exe
#
# LevelDB support
@ -137,7 +137,7 @@ obj/%-sse2.o: %-sse2.cpp @@ -137,7 +137,7 @@ obj/%-sse2.o: %-sse2.cpp
obj/%.o: %.cpp $(HEADERS)
$(CXX) -c $(CFLAGS) -o $@ $<
anoncoind.exe: $(OBJS:obj/%=obj/%)
gostcoind.exe: $(OBJS:obj/%=obj/%)
$(CXX) $(CFLAGS) $(LDFLAGS) -o $@ $(LIBPATHS) $^ $(LIBS)
TESTOBJS := $(patsubst test/%.cpp,obj-test/%.o,$(wildcard test/*.cpp))
@ -145,11 +145,11 @@ TESTOBJS := $(patsubst test/%.cpp,obj-test/%.o,$(wildcard test/*.cpp)) @@ -145,11 +145,11 @@ TESTOBJS := $(patsubst test/%.cpp,obj-test/%.o,$(wildcard test/*.cpp))
obj-test/%.o: test/%.cpp $(HEADERS)
$(CXX) -c $(TESTDEFS) $(CFLAGS) -o $@ $<
test_anoncoin.exe: $(TESTOBJS) $(filter-out obj/init.o,$(OBJS:obj/%=obj/%))
test_gostcoin.exe: $(TESTOBJS) $(filter-out obj/init.o,$(OBJS:obj/%=obj/%))
$(CXX) $(CFLAGS) $(LDFLAGS) -o $@ $(LIBPATHS) $^ -lboost_unit_test_framework$(BOOST_SUFFIX) $(LIBS)
clean:
rm -f anoncoind.exe test_anoncoin.exe
rm -f gostcoind.exe test_gostcoin.exe
rm -f obj/*
rm -f obj-test/*
cd leveldb && $(MAKE) TARGET_OS=NATIVE_WINDOWS clean && cd ..

Loading…
Cancel
Save