X-Git-Url: https://git.novaco.in/?a=blobdiff_plain;f=src%2Fmakefile.osx;h=02c0a672d0830264d3cd6b71b9be47f8a21d1a7a;hb=3176e0f244d929669aa3e1d81e0787d82d9150d3;hp=11c624876752c4fb8f359f0e4b0413461c6f23a4;hpb=23e7583a8c9a0dcee9cbbf3be8bfc453298773f0;p=novacoin.git diff --git a/src/makefile.osx b/src/makefile.osx index 11c6248..02c0a67 100644 --- a/src/makefile.osx +++ b/src/makefile.osx @@ -59,9 +59,9 @@ 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 @@ -88,7 +88,11 @@ OBJS= \ obj/util.o \ obj/wallet.o \ obj/walletdb.o \ - obj/noui.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) @@ -99,7 +103,7 @@ else endif endif -all: bitcoind +all: novacoind # auto-generated dependencies: -include obj/*.P @@ -117,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)) @@ -129,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