X-Git-Url: https://git.novaco.in/?a=blobdiff_plain;f=src%2Fmakefile.osx;h=394e157c202e0ef39795731fce6a3598854a388f;hb=ef17ac0211ddd486127e1f94756fbb3fd704a9b4;hp=cd13d12fc95ddbd5e3db4e2c15ac5c35dda13230;hpb=71bb258543e2a50555397336a0d1ad8f1fccfc4c;p=novacoin.git diff --git a/src/makefile.osx b/src/makefile.osx index cd13d12..394e157 100644 --- a/src/makefile.osx +++ b/src/makefile.osx @@ -6,20 +6,22 @@ # Mac OS X makefile for bitcoin # Originally by Laszlo Hanyecz (solar@heliacal.net) -CXX=llvm-g++ -DEPSDIR=/opt/local +CC=clang +CXX=clang++ +DEPSDIR=/opt/homebrew INCLUDEPATHS= \ -I"$(CURDIR)" \ -I"$(CURDIR)"/obj \ -I"$(DEPSDIR)/include" \ - -I"$(DEPSDIR)/include/db48" + -I"$(DEPSDIR)/Cellar/berkeley-db@4/4.8.30/include" \ + -I"$(CURDIR)/additional/stage/usr/include" LIBPATHS= \ -L"$(DEPSDIR)/lib" \ - -L"$(DEPSDIR)/lib/db48" + -L"$(DEPSDIR)/lib/db48" \ + -L"$(CURDIR)/additional/stage/usr/lib" -USE_UPNP:=0 USE_LEVELDB:=0 USE_IPV6:=1 @@ -28,13 +30,14 @@ LIBS= -dead_strip ifdef STATIC # Build STATIC if you are redistributing the bitcoind binary LIBS += \ - $(DEPSDIR)/lib/db48/libdb_cxx-4.8.a \ + $(DEPSDIR)/Cellar/berkeley-db@4/4.8.30/lib/libdb_cxx-4.8.a \ $(DEPSDIR)/lib/libboost_system-mt.a \ $(DEPSDIR)/lib/libboost_filesystem-mt.a \ $(DEPSDIR)/lib/libboost_program_options-mt.a \ $(DEPSDIR)/lib/libboost_thread-mt.a \ $(DEPSDIR)/lib/libssl.a \ $(DEPSDIR)/lib/libcrypto.a \ + $(CURDIR)/additional/stage/usr/lib/libixwebsocket.a \ -lz else LIBS += \ @@ -45,6 +48,7 @@ LIBS += \ -lboost_thread-mt \ -lssl \ -lcrypto \ + -lixwebsocket \ -lz endif @@ -60,7 +64,7 @@ CFLAGS = -g -msse2 endif # ppc doesn't work because we don't support big-endian -CFLAGS += -Wall -Wextra -Wformat -Wno-ignored-qualifiers -Wformat-security -Wno-unused-parameter \ +CFLAGS += -std=c++17 -Wall -Wno-deprecated -Wextra -Wformat -Wno-ignored-qualifiers -Wformat-security -Wno-unused-parameter \ $(DEBUGFLAGS) $(DEFS) $(INCLUDEPATHS) OBJS= \ @@ -70,6 +74,7 @@ OBJS= \ obj/netbase.o \ obj/addrman.o \ obj/crypter.o \ + obj/base58.o \ obj/key.o \ obj/db.o \ obj/init.o \ @@ -94,19 +99,9 @@ OBJS= \ obj/wallet.o \ obj/walletdb.o \ obj/noui.o \ - obj/kernel.o - -ifndef USE_UPNP - override USE_UPNP = - -endif -ifneq (${USE_UPNP}, -) - DEFS += -DUSE_UPNP=$(USE_UPNP) -ifdef STATIC - LIBS += $(DEPSDIR)/lib/libminiupnpc.a -else - LIBS += -lminiupnpc -endif -endif + obj/kernel.o \ + obj/kernel_worker.o \ + obj/ipcollector.o ifneq (${USE_IPV6}, -) DEFS += -DUSE_IPV6=$(USE_IPV6) @@ -123,7 +118,7 @@ DEFS += $(addprefix -I,$(CURDIR)/leveldb/include) -DUSE_LEVELDB DEFS += $(addprefix -I,$(CURDIR)/leveldb/helpers) OBJS += obj/txdb-leveldb.o leveldb/libleveldb.a: - @echo "Building LevelDB ..."; cd leveldb; make; cd .. + @echo "Building LevelDB ..."; cd leveldb; CC=$(CC) CXX=$(CXX) make; cd .. obj/txdb-leveldb.o: leveldb/libleveldb.a else OBJS += obj/txdb-bdb.o @@ -131,7 +126,7 @@ endif ifeq (${USE_ASM}, 1) # Assembler implementation -OBJS += crypto/scrypt/asm/obj/scrypt-arm.o crypto/scrypt/asm/obj/scrypt-x86.o crypto/scrypt/asm/obj/scrypt-x86_64.o crypto/scrypt/asm/obj/asm-wrapper.o +OBJS += crypto/scrypt/asm/obj/scrypt-x86.o crypto/scrypt/asm/obj/scrypt-x86_64.o crypto/scrypt/asm/obj/asm-wrapper.o crypto/scrypt/asm/obj/scrypt-x86.o: crypto/scrypt/asm/scrypt-x86.S $(CXX) -c $(CFLAGS) -MMD -o $@ $< @@ -139,11 +134,11 @@ crypto/scrypt/asm/obj/scrypt-x86.o: crypto/scrypt/asm/scrypt-x86.S crypto/scrypt/asm/obj/scrypt-x86_64.o: crypto/scrypt/asm/scrypt-x86_64.S $(CXX) -c $(CFLAGS) -MMD -o $@ $< -crypto/scrypt/asm/obj/scrypt-arm.o: crypto/scrypt/asm/scrypt-arm.S - $(CXX) -c $(CFLAGS) -MMD -o $@ $< - crypto/scrypt/asm/obj/asm-wrapper.o: crypto/scrypt/asm/asm-wrapper.cpp $(CXX) -c $(CFLAGS) -MMD -o $@ $< + +DEFS += -DUSE_ASM + else ifeq (${USE_SSE2}, 1) # Intrinsic implementation