X-Git-Url: https://git.novaco.in/?a=blobdiff_plain;f=src%2Fmakefile.osx;h=02c0a672d0830264d3cd6b71b9be47f8a21d1a7a;hb=3176e0f244d929669aa3e1d81e0787d82d9150d3;hp=e2e35de5ccd89ddbc32a052962cae55765d94108;hpb=f9f625fb326d054a7398a9931f20ee40c737d858;p=novacoin.git diff --git a/src/makefile.osx b/src/makefile.osx index e2e35de..02c0a67 100644 --- a/src/makefile.osx +++ b/src/makefile.osx @@ -22,6 +22,9 @@ LIBPATHS= \ USE_UPNP:=1 LIBS= -dead_strip + +TESTDEFS = -DTEST_DATA_DIR=$(abspath test/data) + ifdef STATIC # Build STATIC if you are redistributing the bitcoind binary TESTLIBS += \ @@ -50,15 +53,15 @@ LIBS += \ TESTDEFS += -DBOOST_TEST_DYN_LINK endif -DEFS=-DMAC_OSX -DMSG_NOSIGNAL=0 +DEFS=-DMAC_OSX -DMSG_NOSIGNAL=0 -DBOOST_SPIRIT_THREADSAFE ifdef RELEASE # Compile for maximum compatibility and smallest size. # This requires that dependencies are compiled # the same way. -CFLAGS = -mmacosx-version-min=10.5 -arch i386 -O3 +CFLAGS = -mmacosx-version-min=10.5 -arch i386 -O3 -msse2 else -CFLAGS = -g +CFLAGS = -g -msse2 endif # ppc doesn't work because we don't support big-endian @@ -84,7 +87,12 @@ OBJS= \ obj/script.o \ obj/util.o \ obj/wallet.o \ - obj/noui.o + obj/walletdb.o \ + obj/noui.o \ + obj/pbkdf2.o \ + obj/scrypt_mine.o \ + obj/scrypt-x86.o \ + obj/scrypt-x86_64.o ifdef USE_UPNP DEFS += -DUSE_UPNP=$(USE_UPNP) @@ -95,14 +103,14 @@ else endif endif -all: bitcoind +all: novacoind # auto-generated dependencies: -include obj/*.P -include obj-test/*.P obj/build.h: FORCE - ../share/genbuild.sh obj/build.h + /bin/sh ../share/genbuild.sh obj/build.h version.cpp: obj/build.h DEFS += -DHAVE_BUILD_INFO @@ -113,7 +121,13 @@ obj/%.o: %.cpp -e '/^$$/ d' -e 's/$$/ :/' < $(@:%.o=%.d) >> $(@:%.o=%.P); \ rm -f $(@:%.o=%.d) -bitcoind: $(OBJS:obj/%=obj/%) +obj/scrypt-x86.o: scrypt-x86.S + $(CXX) -c $(xCXXFLAGS) -MMD -o $@ $< + +obj/scrypt-x86_64.o: scrypt-x86_64.S + $(CXX) -c $(xCXXFLAGS) -MMD -o $@ $< + +novacoind: $(OBJS:obj/%=obj/%) $(CXX) $(CFLAGS) -o $@ $(LIBPATHS) $^ $(LIBS) TESTOBJS := $(patsubst test/%.cpp,obj-test/%.o,$(wildcard test/*.cpp)) @@ -125,11 +139,11 @@ obj-test/%.o: test/%.cpp -e '/^$$/ d' -e 's/$$/ :/' < $(@:%.o=%.d) >> $(@:%.o=%.P); \ rm -f $(@:%.o=%.d) -test_bitcoin: $(TESTOBJS) $(filter-out obj/init.o,$(OBJS:obj/%=obj/%)) +test_novacoin: $(TESTOBJS) $(filter-out obj/init.o,$(OBJS:obj/%=obj/%)) $(CXX) $(CFLAGS) -o $@ $(LIBPATHS) $^ $(LIBS) $(TESTLIBS) clean: - -rm -f bitcoind test_bitcoin + -rm -f novacoind test_novacoin -rm -f obj/*.o -rm -f obj-test/*.o -rm -f obj/*.P