mirror of
https://github.com/matrix-construct/construct
synced 2024-11-27 01:02:46 +01:00
53 lines
855 B
Makefile
53 lines
855 B
Makefile
AUTOMAKE_OPTIONS = foreign
|
|
|
|
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@ \
|
|
@EXTRA_CPPFLAGS@ \
|
|
###
|
|
|
|
AM_CXXFLAGS = \
|
|
@EXTRA_CXXFLAGS@ \
|
|
###
|
|
|
|
if GCC
|
|
AM_CXXFLAGS += \
|
|
-fpch-deps \
|
|
###
|
|
endif
|
|
|
|
if DEBUG
|
|
if GCC
|
|
AM_CXXFLAGS += \
|
|
-fmax-errors=2 \
|
|
###
|
|
endif
|
|
endif
|
|
|
|
if BUILD_PCH
|
|
BUILT_SOURCES = \
|
|
ircd.h.gch \
|
|
ircd.pic.h.gch \
|
|
###
|
|
endif
|
|
|
|
ircd.h.gch:
|
|
$(CXX) $(CXXFLAGS) $(AM_CXXFLAGS) -o ircd.h.gch $(DEFS) $(CPPFLAGS) $(AM_CPPFLAGS) ircd.h
|
|
|
|
ircd.pic.h.gch:
|
|
cp ircd.h ircd.pic.h
|
|
$(CXX) $(CXXFLAGS) $(AM_CXXFLAGS) -fPIC -o ircd.pic.h.gch $(DEFS) $(CPPFLAGS) $(AM_CPPFLAGS) -DPIC ircd.pic.h
|
|
|
|
clean-local:
|
|
rm -f ircd.h.gch
|
|
rm -f ircd.pic.h
|
|
rm -f ircd.pic.h.gch
|