X-Git-Url: https://git.novaco.in/?a=blobdiff_plain;f=src%2Fmakefile.unix;h=7c3b72aa93d7afb46bd1b238307a54ebc87b06e9;hb=6e9bdffe9ddcda32a6c0431cacdd27d5daf33ce3;hp=65118497bbdf8c8eb071efcebd5f088b4500a600;hpb=bdf6d65a4e4a31c64b7386d544ba968a3a03b6a3;p=novacoin.git diff --git a/src/makefile.unix b/src/makefile.unix index 6511849..7c3b72a 100644 --- a/src/makefile.unix +++ b/src/makefile.unix @@ -118,6 +118,7 @@ OBJS= \ obj/miner.o \ obj/main.o \ obj/net.o \ + obj/stun.o \ obj/protocol.o \ obj/bitcoinrpc.o \ obj/rpcdump.o \ @@ -134,20 +135,7 @@ OBJS= \ obj/noui.o \ obj/kernel.o \ obj/pbkdf2.o \ - obj/scrypt.o \ - obj/scrypt-arm.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 all: novacoind @@ -167,13 +155,8 @@ ifneq (${USE_LEVELDB}, 1) OBJS += obj/txdb-bdb.o endif -# auto-generated dependencies: --include obj/*.P - -obj/build.h: FORCE - /bin/sh ../share/genbuild.sh obj/build.h -version.cpp: obj/build.h -DEFS += -DHAVE_BUILD_INFO +ifeq (${USE_ASM}, 1) +OBJS += obj/scrypt-arm.o obj/scrypt-x86.o obj/scrypt-x86_64.o obj/scrypt-x86.o: scrypt-x86.S $(CXX) -c $(xCXXFLAGS) -MMD -o $@ $< @@ -183,15 +166,24 @@ obj/scrypt-x86_64.o: scrypt-x86_64.S obj/scrypt-arm.o: scrypt-arm.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 + +obj/build.h: FORCE + /bin/sh ../share/genbuild.sh obj/build.h +version.cpp: obj/build.h +DEFS += -DHAVE_BUILD_INFO -obj/%.o: %.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/zerocoin/%.o: zerocoin/%.cpp +obj/%.o: %.cpp $(CXX) -c $(xCXXFLAGS) -MMD -MF $(@:%.o=%.d) -o $@ $< @cp $(@:%.o=%.d) $(@:%.o=%.P); \ sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \ @@ -204,9 +196,7 @@ novacoind: $(OBJS:obj/%=obj/%) 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: