Skip to content

Commit

Permalink
Update OS X daemon makefile
Browse files Browse the repository at this point in the history
MintCoin distribution is now linked against BDB 5.3. Reflect this
change in the makefile for OSX.
  • Loading branch information
Fuzzbawls committed Mar 2, 2016
1 parent 85b76b5 commit 8ba9d18
Showing 1 changed file with 7 additions and 16 deletions.
23 changes: 7 additions & 16 deletions src/makefile.osx
Expand Up @@ -13,15 +13,14 @@ INCLUDEPATHS= \
-I"$(CURDIR)" \
-I"$(CURDIR)"/obj \
-I"$(DEPSDIR)/include" \
-I"$(DEPSDIR)/include/db48"
-I"$(DEPSDIR)/include/db53"

LIBPATHS= \
-L"$(DEPSDIR)/lib" \
-L"$(DEPSDIR)/lib/db48"
-L"$(DEPSDIR)/lib/db53"

USE_UPNP:=1
USE_IPV6:=1
USE_LEVELDB:=1

LIBS= -dead_strip

Expand All @@ -32,19 +31,19 @@ ifdef STATIC
TESTLIBS += \
$(DEPSDIR)/lib/libboost_unit_test_framework-mt.a
LIBS += \
$(DEPSDIR)/lib/db48/libdb_cxx-4.8.a \
$(DEPSDIR)/lib/db53/libdb_cxx-5.3.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 \
-lz
$(DEPSDIR)/lib/libz.a
else
TESTLIBS += \
-lboost_unit_test_framework-mt
LIBS += \
-ldb_cxx-4.8 \
-ldb_cxx-5.3 \
-lboost_system-mt \
-lboost_filesystem-mt \
-lboost_program_options-mt \
Expand All @@ -61,7 +60,7 @@ ifdef RELEASE
# Compile for maximum compatibility and smallest size.
# This requires that dependencies are compiled
# the same way.
CFLAGS = -mmacosx-version-min=10.5 -arch x86_64 -O3 -msse2
CFLAGS = -mmacosx-version-min=10.7 -arch x86_64 -O3 -msse2
else
CFLAGS = -g -msse2
endif
Expand Down Expand Up @@ -121,21 +120,13 @@ endif

all: mintcoind

#
# LevelDB support
#
ifdef USE_LEVELDB
LIBS += $(CURDIR)/leveldb/libleveldb.a $(CURDIR)/leveldb/libmemenv.a
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 && $(MAKE) CC=$(CC) CXX=$(CXX) OPT="$(CFLAGS)" libleveldb.a libmemenv.a && cd ..
obj/txdb-leveldb.o: leveldb/libleveldb.a
else
OBJS += obj/txdb-bdb.o
endif


test check: test_mintcoin FORCE
./test_mintcoin
Expand Down

0 comments on commit 8ba9d18

Please sign in to comment.