2016-08-15 04:44:16 +02:00
|
|
|
AUTOMAKE_OPTIONS = foreign
|
|
|
|
|
2018-09-18 02:09:16 +02:00
|
|
|
AM_CPPFLAGS = \
|
|
|
|
-I$(top_srcdir)/include \
|
|
|
|
@ROCKSDB_CPPFLAGS@ \
|
|
|
|
@JS_CPPFLAGS@ \
|
|
|
|
@BOOST_CPPFLAGS@ \
|
|
|
|
@SSL_CPPFLAGS@ \
|
|
|
|
@CRYPTO_CPPFLAGS@ \
|
|
|
|
@SODIUM_CPPFLAGS@ \
|
|
|
|
@MAGIC_CPPFLAGS@ \
|
|
|
|
@SNAPPY_CPPFLAGS@ \
|
|
|
|
@LZ4_CPPFLAGS@ \
|
|
|
|
@Z_CPPFLAGS@ \
|
2018-11-29 21:39:33 +01:00
|
|
|
@EXTRA_CPPFLAGS@ \
|
2017-09-08 11:43:23 +02:00
|
|
|
###
|
2016-08-15 04:44:16 +02:00
|
|
|
|
2017-09-12 18:54:10 +02:00
|
|
|
AM_CXXFLAGS = \
|
2018-11-29 21:39:33 +01:00
|
|
|
@EXTRA_CXXFLAGS@ \
|
2017-09-12 18:54:10 +02:00
|
|
|
###
|
|
|
|
|
2016-08-15 04:44:16 +02:00
|
|
|
if GCC
|
2017-11-30 20:44:23 +01:00
|
|
|
AM_CXXFLAGS += \
|
|
|
|
-fpch-deps \
|
|
|
|
###
|
2017-09-12 18:54:10 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
if DEBUG
|
|
|
|
if GCC
|
2017-11-30 20:44:23 +01:00
|
|
|
AM_CXXFLAGS += \
|
|
|
|
-fmax-errors=2 \
|
|
|
|
###
|
2017-09-12 18:54:10 +02:00
|
|
|
endif
|
2016-08-15 04:44:16 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
if BUILD_PCH
|
2017-11-30 20:44:23 +01:00
|
|
|
BUILT_SOURCES = \
|
2018-06-16 00:13:18 +02:00
|
|
|
ircd.h.gch \
|
|
|
|
ircd.pic.h.gch \
|
2019-04-21 00:41:11 +02:00
|
|
|
spirit.h.gch \
|
2017-11-30 20:44:23 +01:00
|
|
|
###
|
2016-08-15 04:44:16 +02:00
|
|
|
endif
|
|
|
|
|
2019-04-21 01:37:02 +02:00
|
|
|
if GCC
|
|
|
|
if LOWMEM_COMPILE
|
|
|
|
LOWMEM_FLAGS= --param ggc-min-expand=1
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2018-06-16 00:13:18 +02:00
|
|
|
ircd.h.gch:
|
|
|
|
$(CXX) $(CXXFLAGS) $(AM_CXXFLAGS) -o ircd.h.gch $(DEFS) $(CPPFLAGS) $(AM_CPPFLAGS) ircd.h
|
2016-08-15 04:44:16 +02:00
|
|
|
|
2018-06-16 00:13:18 +02:00
|
|
|
ircd.pic.h.gch:
|
|
|
|
cp ircd.h ircd.pic.h
|
2019-01-17 20:06:40 +01:00
|
|
|
$(CXX) $(CXXFLAGS) $(AM_CXXFLAGS) -fPIC -o ircd.pic.h.gch $(DEFS) $(CPPFLAGS) $(AM_CPPFLAGS) -DPIC ircd.pic.h
|
2016-08-15 04:44:16 +02:00
|
|
|
|
2019-04-21 00:41:11 +02:00
|
|
|
spirit.h.gch:
|
2019-04-21 01:37:02 +02:00
|
|
|
$(CXX) $(CXXFLAGS) $(LOWMEM_FLAGS) $(AM_CXXFLAGS) -fPIC -o spirit.h.gch $(DEFS) $(CPPFLAGS) $(AM_CPPFLAGS) -DPIC -include ircd.pic.h spirit.h
|
2019-04-21 00:41:11 +02:00
|
|
|
|
2016-08-15 04:44:16 +02:00
|
|
|
clean-local:
|
2018-06-16 00:13:18 +02:00
|
|
|
rm -f ircd.h.gch
|
|
|
|
rm -f ircd.pic.h
|
|
|
|
rm -f ircd.pic.h.gch
|
2019-04-21 00:41:11 +02:00
|
|
|
rm -f spirit.h.gch
|