X-Git-Url: https://git.novaco.in/?a=blobdiff_plain;f=src%2Fmakefile.osx;h=72821e1f6a363d11c269e48db949589dc6ffc3d9;hb=6e9bdffe9ddcda32a6c0431cacdd27d5daf33ce3;hp=3cd0962a8c6c5076ce0851f5612866ef049231d8;hpb=bdf6d65a4e4a31c64b7386d544ba968a3a03b6a3;p=novacoin.git diff --git a/src/makefile.osx b/src/makefile.osx index 3cd0962..72821e1 100644 --- a/src/makefile.osx +++ b/src/makefile.osx @@ -77,6 +77,7 @@ OBJS= \ obj/main.o \ obj/miner.o \ obj/net.o \ + obj/stun.o \ obj/protocol.o \ obj/bitcoinrpc.o \ obj/rpcdump.o \ @@ -93,19 +94,7 @@ OBJS= \ obj/noui.o \ obj/pbkdf2.o \ obj/kernel.o \ - obj/scrypt.o \ - obj/scrypt-x86.o \ - obj/scrypt-x86_64.o \ - obj/zerocoin/Accumulator.o \ - obj/zerocoin/AccumulatorProofOfKnowledge.o \ - obj/zerocoin/Coin.o \ - obj/zerocoin/CoinSpend.o \ - obj/zerocoin/Commitment.o \ - obj/zerocoin/ParamGeneration.o \ - obj/zerocoin/Params.o \ - obj/zerocoin/SerialNumberSignatureOfKnowledge.o \ - obj/zerocoin/SpendMetaData.o \ - obj/zerocoin/ZeroTest.o + obj/scrypt.o ifndef USE_UPNP override USE_UPNP = - @@ -140,6 +129,22 @@ else OBJS += obj/txdb-bdb.o endif +ifeq (${USE_ASM}, 1) +OBJS += obj/scrypt-x86.o obj/scrypt-x86_64.o + +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 $@ $< +endif +ifneq (${USE_ASM}, 1) +OBJS += obj/scrypt-generic.o + +obj/scrypt-generic.o: scrypt-generic.c + $(CC) -c $(xCXXFLAGS) -MMD -o $@ $< +endif + # auto-generated dependencies: -include obj/*.P @@ -155,28 +160,13 @@ obj/%.o: %.cpp -e '/^$$/ d' -e 's/$$/ :/' < $(@:%.o=%.d) >> $(@:%.o=%.P); \ rm -f $(@:%.o=%.d) -obj/zerocoin/%.o: zerocoin/%.cpp - $(CXX) -c $(xCXXFLAGS) -MMD -MF $(@:%.o=%.d) -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) - -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) clean: -rm -f novacoind -rm -f obj/*.o - -rm -f obj/zerocoin/*.o -rm -f obj/*.P - -rm -f obj/zerocoin/*.P -rm -f obj/build.h FORCE: