forked from stellar/stellar-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
common.mk
38 lines (32 loc) · 1.44 KB
/
common.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Hand-written file with variables common to all makefiles
AM_CPPFLAGS = -isystem "$(top_srcdir)" -I"$(top_srcdir)/src" -I"$(top_builddir)/src"
AM_CPPFLAGS += $(libsodium_CFLAGS) $(xdrpp_CFLAGS) $(libmedida_CFLAGS) \
$(soci_CFLAGS) $(sqlite3_CFLAGS) $(libasio_CFLAGS) $(libunwind_CFLAGS)
AM_CPPFLAGS += -isystem "$(top_srcdir)/lib" \
-isystem "$(top_srcdir)/lib/autocheck/include" \
-isystem "$(top_srcdir)/lib/cereal/include" \
-isystem "$(top_srcdir)/lib/util" \
-isystem "$(top_srcdir)/lib/fmt/include" \
-isystem "$(top_srcdir)/lib/soci/src/core" \
-isystem "$(top_srcdir)/lib/tracy" \
-isystem "$(top_srcdir)/lib/spdlog/include"
if USE_POSTGRES
AM_CPPFLAGS += -DUSE_POSTGRES=1 $(libpq_CFLAGS)
endif # USE_POSTGRES
# USE_TRACY and tracy_CFLAGS here represent the case of enabling
# tracy at configure-time; but even when it is disabled we want
# its includes in the CPPFLAGS above, so its (disabled) headers
# and zone-definition macros are included in our code (and
# compiled to no-ops).
if USE_TRACY
AM_CPPFLAGS += -DUSE_TRACY $(tracy_CFLAGS)
endif # USE_TRACY
if BUILD_TESTS
AM_CPPFLAGS += -DBUILD_TESTS=1
endif # BUILD_TESTS
if USE_SPDLOG
AM_CPPFLAGS += -DUSE_SPDLOG
endif # USE_SPDLOG
if ENABLE_NEXT_PROTOCOL_VERSION_UNSAFE_FOR_PRODUCTION
AM_CPPFLAGS += -DENABLE_NEXT_PROTOCOL_VERSION_UNSAFE_FOR_PRODUCTION
endif # ENABLE_NEXT_PROTOCOL_VERSION_UNSAFE_FOR_PRODUCTION