USE_LEVELDB:=0
USE_IPV6:=1
+# CC=clang
+# CXX=clang++
+
LINK:=$(CXX)
ARCH:=$(shell uname -m)
ifeq (${ARCH}, i686)
- EXT_OPTIONS=-msse2 -mssse3
-endif
-
-ifeq (${ARCH}, x86_64)
- EXT_OPTIONS=-mssse3
+ EXT_OPTIONS=-msse2
endif
xOPT_LEVEL=-O2
# CXXFLAGS can be specified on the make command line, so we use xCXXFLAGS that only
# adds some defaults in front. Unfortunately, CXXFLAGS=... $(CXXFLAGS) does not work.
-xCXXFLAGS=$(xOPT_LEVEL) $(EXT_OPTIONS) -pthread -Wall -Wextra -Wno-ignored-qualifiers -Wformat -Wformat-security -Wno-unused-parameter \
+xCXXFLAGS=$(xOPT_LEVEL) $(EXT_OPTIONS) -std=c++11 -pthread -Wall -Wextra -Wno-ignored-qualifiers -Wformat -Wformat-security -Wno-unused-parameter \
$(DEBUGFLAGS) $(DEFS) $(HARDENING) $(CXXFLAGS)
# LDFLAGS can be specified on the make command line, so we use xLDFLAGS that only
obj/stun.o \
obj/protocol.o \
obj/bitcoinrpc.o \
+ obj/rpccrypt.o \
obj/rpcdump.o \
obj/rpcnet.o \
obj/rpcmining.o \
obj/walletdb.o \
obj/noui.o \
obj/kernel.o \
- obj/kernel_worker.o
+ obj/uint256.o \
+ obj/kernel_worker.o \
+ obj/ecies.o \
+ obj/cryptogram.o \
+ obj/ipcollector.o \
+ obj/serialize.o
all: novacoind
DEFS += $(addprefix -I,$(CURDIR)/leveldb/helpers)
OBJS += obj/txdb-leveldb.o
leveldb/libleveldb.a:
- @echo "Building LevelDB ..."; cd leveldb; make libleveldb.a libmemenv.a; cd ..;
+ @echo "Building LevelDB ..."; cd leveldb; CC=$(CC) CXX=$(CXX) make libleveldb.a libmemenv.a; cd ..;
obj/txdb-leveldb.o: leveldb/libleveldb.a
endif
ifneq (${USE_LEVELDB}, 1)