# 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
obj/util.o \
obj/wallet.o \
obj/walletdb.o \
- obj/noui.o
+ obj/noui.o \
+ obj/pbkdf2.o \
+ obj/kernel.o \
+ obj/scrypt_mine.o \
+ obj/scrypt-x86.o \
+ obj/scrypt-x86_64.o
ifdef USE_UPNP
DEFS += -DUSE_UPNP=$(USE_UPNP)
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
-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))
-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