X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=plugins%2Fctf%2Fcommon%2Fmetadata%2FMakefile.am;h=fa5b6f8ef6e757ff4eddc2bdd4f9346061572299;hb=68b66a256a54d32992dfefeaad11eea88b7df234;hp=5ca0873a53b65b1414341ab08046c1ce9ce948dc;hpb=1e649dff604c8d842b652f9ead15267fce1f6a66;p=babeltrace.git diff --git a/plugins/ctf/common/metadata/Makefile.am b/plugins/ctf/common/metadata/Makefile.am index 5ca0873a..fa5b6f8e 100644 --- a/plugins/ctf/common/metadata/Makefile.am +++ b/plugins/ctf/common/metadata/Makefile.am @@ -1,17 +1,17 @@ -AM_CPPFLAGS = $(CPPFLAGS) -I$(top_srcdir)/include -I$(srcdir) -AM_CFLAGS = $(PACKAGE_CFLAGS) -BUILT_SOURCES = parser.h parser.c lexer.c +AM_CPPFLAGS += -I$(builddir) -I$(srcdir) AM_YFLAGS = -t -d -v noinst_LTLIBRARIES = libctf-parser.la libctf-ast.la +BUILT_SOURCES = parser.h + libctf_parser_la_SOURCES = lexer.l parser.y objstack.c -# ctf-scanner-symbols.h is included to prefix generated yy_* symbols +# scanner-symbols.h is included to prefix generated yy_* symbols # with bt_. -libctf_parser_la_CPPFLAGS = $(AM_CPPFLAGS) -I$(srcdir) \ +libctf_parser_la_CPPFLAGS = $(AM_CPPFLAGS) \ -include $(srcdir)/scanner-symbols.h +libctf_parser_la_CFLAGS = $(AM_CFLAGS) -Wno-unused-function -libctf_ast_la_CPPFLAGS = $(AM_CPPFLAGS) -I$(builddir) libctf_ast_la_SOURCES = \ visitor-generate-ir.c \ visitor-semantic-validator.c \ @@ -22,20 +22,59 @@ libctf_ast_la_SOURCES = \ scanner.h \ scanner-symbols.h \ decoder.c \ - decoder.h + decoder.h \ + logging.c \ + logging.h \ + ctf-meta.h \ + ctf-meta-visitors.h \ + ctf-meta-validate.c \ + ctf-meta-update-meanings.c \ + ctf-meta-update-in-ir.c \ + ctf-meta-update-default-clock-classes.c \ + ctf-meta-update-text-array-sequence.c \ + ctf-meta-update-value-storing-indexes.c \ + ctf-meta-update-stream-class-config.c \ + ctf-meta-warn-meaningless-header-fields.c \ + ctf-meta-translate.c \ + ctf-meta-resolve.c -libctf_ast_la_LIBADD = $(top_builddir)/lib/libbabeltrace.la +libctf_ast_la_LIBADD = $(UUID_LIBS) -if BABELTRACE_BUILD_WITH_LIBUUID -libctf_ast_la_LIBADD += -luuid +if BABELTRACE_BUILD_WITH_MINGW +libctf_ast_la_LIBADD += -lrpcrt4 -lintl -liconv -lole32 $(POPT_LIBS) endif -if BABELTRACE_BUILD_WITH_LIBC_UUID -libctf_ast_la_LIBADD += -lc -endif +# start with empty files to clean +CLEANFILES = -if BABELTRACE_BUILD_WITH_MINGW -libctf_ast_la_LIBADD += -lrpcrt4 -lintl -liconv -lole32 -lpopt -endif +if HAVE_BISON +# we have bison: we can clean the generated parser files +CLEANFILES += parser.c parser.h parser.output +else # HAVE_BISON +# create target used to stop the build if we want to build the parser, +# but we don't have the necessary tool to do so +ERR_MSG = "Error: Cannot build target because bison is missing." +ERR_MSG += "Make sure bison is installed and run the configure script again." + +parser.c parser.h: parser.y + @echo $(ERR_MSG) + @false + +all-local: parser.c parser.h +endif # HAVE_BISON + +if HAVE_FLEX +# we have flex: we can clean the generated lexer files +CLEANFILES += lexer.c +else # HAVE_FLEX +# create target used to stop the build if we want to build the lexer, +# but we don't have the necessary tool to do so +ERR_MSG = "Error: Cannot build target because flex is missing." +ERR_MSG += "Make sure flex is installed and run the configure script again." + +filter-lexer.c: lexer.l + @echo $(ERR_MSG) + @false -CLEANFILES = $(BUILT_SOURCES) parser.output +all-local: lexer.c +endif # HAVE_FLEX