ModSecurity/src/parser/Makefile.am
Mirko Dziadzka 367a871f30 Bump the C++ version from C++11 to C++17
This will allow the usage of more modern features in the future.
2024-02-09 21:57:31 +01:00

46 lines
854 B
Makefile

noinst_LTLIBRARIES = libmodsec_parser.la
BUILT_SOURCES = \
seclang-parser.cc \
test.cc
libmodsec_parser_la_SOURCES = \
seclang-parser.yy \
seclang-scanner.ll \
test.cc
libmodsec_parser_la_CPPFLAGS = \
-std=c++17 \
-I../.. \
-I../../headers \
-I../../others \
-I.. \
-g \
-fPIC \
-O3 \
$(CURL_CFLAGS) \
$(GEOIP_CFLAGS) \
$(GLOBAL_CPPFLAGS) \
$(MODSEC_NO_LOGS) \
$(YAJL_CFLAGS) \
$(LMDB_CFLAGS) \
$(PCRE_CFLAGS) \
$(LIBXML2_CFLAGS)
test.cc: seclang-parser.hh
cat seclang-parser.hh | sed "s/return \*new (yyas_<T> ()) T (t)/return *new (yyas_<T> ()) T (std::move((T\&)t))/g" > seclang-parser.hh.fix && mv seclang-parser.hh.fix seclang-parser.hh
touch test.cc
CLEANFILES = test.cc \
seclang-scanner.cc \
seclang-parser.cc \
seclang-parser.hh \
location.hh \
position.hh \
stack.hh
EXTRA_DIST = $(CLEANFILES)
DISTCLAEN =