Skip to content

Commit

Permalink
Update makefile.osx-high-sierra
Browse files Browse the repository at this point in the history
  • Loading branch information
vashshawn authored Oct 1, 2023
1 parent 44837e8 commit 89cfc03
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions src/makefile.osx-high-sierra
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -*- mode: Makefile; -*-
# Copyright (c) 2009 - 2022 Bitcoin Developers
# Copyright (c) 2015 - 2022 The Litedoge developers
# Copyright (c) 2009 - 2024 Bitcoin Developers
# Copyright (c) 2015 - 2024 The Litedoge developers
# Distributed under the MIT/X11 software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.

Expand Down Expand Up @@ -53,13 +53,13 @@ LIBS += \
-lz
endif

DEFS=-DMAC_OSX -DMSG_NOSIGNAL=0 -DBOOST_SPIRIT_THREADSAFE
DEFS=-DMAC_OSX -DMSG_NOSIGNAL=0 -DBOOST_SPIRIT_THREADSAFE -D__STDC_FORMAT_MACROS

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 -O2 -msse2
CFLAGS = -O2 -msse2
else
CFLAGS = -g -msse2
endif
Expand Down Expand Up @@ -121,28 +121,27 @@ ifeq (${USE_WALLET}, 1)
obj/rpcwallet.o \
obj/wallet.o \
obj/walletdb.o
endif

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

all: litedoged

#
# LevelDB support
#
ifdef USE_LEVELDB
LIBS += $(CURDIR)/leveldb/libleveldb.a $(CURDIR)/leveldb/libmemenv.a
DEFS += $(addprefix -I,$(CURDIR)/leveldb/include)
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 libleveldb.a libmemenv.a; cd ..
@echo "Building LevelDB ..."; cd leveldb; CC=$(CC) CXX=$(CXX) make; cd ..
obj/txdb-leveldb.o: leveldb/libleveldb.a

# auto-generated dependencies:
Expand Down

0 comments on commit 89cfc03

Please sign in to comment.