From ff65d618e4a5bc50b2d7c20c8239a6d72c119d65 Mon Sep 17 00:00:00 2001 From: Felipe Zimmerle Date: Thu, 19 Jan 2017 15:20:00 -0300 Subject: [PATCH] Adds missing Makefile.am file --- src/parser/Makefile.am | 45 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 src/parser/Makefile.am diff --git a/src/parser/Makefile.am b/src/parser/Makefile.am new file mode 100644 index 00000000..74dbb8b1 --- /dev/null +++ b/src/parser/Makefile.am @@ -0,0 +1,45 @@ + +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++11 \ + -I../.. \ + -I../../headers \ + -I../../others \ + -std=c++11 \ + -I.. \ + -g \ + -fPIC \ + -O3 \ + $(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)/return *new (yyas_ ()) 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 =