|
1 | 1 | # -*- mode: Makefile; -*-
|
2 |
| -# Copyright (c) 2009 - 2022 Bitcoin Developers |
3 |
| -# Copyright (c) 2015 - 2022 The Litedoge developers |
| 2 | +# Copyright (c) 2009 - 2024 Bitcoin Developers |
| 3 | +# Copyright (c) 2015 - 2024 The Litedoge developers |
4 | 4 | # Distributed under the MIT/X11 software license, see the accompanying
|
5 | 5 | # file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
6 | 6 |
|
@@ -53,13 +53,13 @@ LIBS += \
|
53 | 53 | -lz
|
54 | 54 | endif
|
55 | 55 |
|
56 |
| -DEFS=-DMAC_OSX -DMSG_NOSIGNAL=0 -DBOOST_SPIRIT_THREADSAFE |
| 56 | +DEFS=-DMAC_OSX -DMSG_NOSIGNAL=0 -DBOOST_SPIRIT_THREADSAFE -D__STDC_FORMAT_MACROS |
57 | 57 |
|
58 | 58 | ifdef RELEASE
|
59 | 59 | # Compile for maximum compatibility and smallest size.
|
60 | 60 | # This requires that dependencies are compiled
|
61 | 61 | # the same way.
|
62 |
| -CFLAGS = -mmacosx-version-min=10.5 -arch x86_64 -O2 -msse2 |
| 62 | +CFLAGS = -O2 -msse2 |
63 | 63 | else
|
64 | 64 | CFLAGS = -g -msse2
|
65 | 65 | endif
|
@@ -121,28 +121,27 @@ ifeq (${USE_WALLET}, 1)
|
121 | 121 | obj/rpcwallet.o \
|
122 | 122 | obj/wallet.o \
|
123 | 123 | obj/walletdb.o
|
124 |
| -endif |
125 | 124 |
|
126 |
| -ifndef USE_UPNP |
127 |
| - override USE_UPNP = - |
128 |
| -endif |
129 | 125 | ifneq (${USE_UPNP}, -)
|
130 | 126 | DEFS += -DUSE_UPNP=$(USE_UPNP)
|
131 | 127 | ifdef STATIC
|
132 | 128 | LIBS += $(DEPSDIR)/lib/libminiupnpc.a
|
133 | 129 | else
|
134 | 130 | LIBS += -lminiupnpc
|
135 | 131 | endif
|
136 |
| -endif |
137 | 132 |
|
138 | 133 | all: litedoged
|
139 | 134 |
|
| 135 | +# |
| 136 | +# LevelDB support |
| 137 | +# |
| 138 | +ifdef USE_LEVELDB |
140 | 139 | LIBS += $(CURDIR)/leveldb/libleveldb.a $(CURDIR)/leveldb/libmemenv.a
|
141 |
| -DEFS += $(addprefix -I,$(CURDIR)/leveldb/include) |
| 140 | +DEFS += $(addprefix -I,$(CURDIR)/leveldb/include) -DUSE_LEVELDB |
142 | 141 | DEFS += $(addprefix -I,$(CURDIR)/leveldb/helpers)
|
143 | 142 | OBJS += obj/txdb-leveldb.o
|
144 | 143 | leveldb/libleveldb.a:
|
145 |
| - @echo "Building LevelDB ..."; cd leveldb; make libleveldb.a libmemenv.a; cd .. |
| 144 | + @echo "Building LevelDB ..."; cd leveldb; CC=$(CC) CXX=$(CXX) make; cd .. |
146 | 145 | obj/txdb-leveldb.o: leveldb/libleveldb.a
|
147 | 146 |
|
148 | 147 | # auto-generated dependencies:
|
|
0 commit comments