1 # libgstparse.la is an optionally built helper library linked into core
2 noinst_LTLIBRARIES = libgstparse.la
4 CLEANFILES = grammar.tab.h grammar.output
5 EXTRA_DIST = grammar.y parse.l types.h
7 # uncomment these lines to dist the generated sources
8 #BUILT_SOURCES = grammar.tab.h grammar.tab.c lex._gst_parse_yy.c
9 #libgstparse_la_SOURCES = lex._gst_parse_yy.c grammar.tab.c
11 # uncomment these lines to _NOT_ dist the generated sources
12 nodist_libgstparse_la_SOURCES = lex._gst_parse_yy.c grammar.tab.c
13 CLEANFILES += grammar.tab.c lex._gst_parse_yy.c
15 libgstparse_la_CFLAGS = $(GST_ALL_CFLAGS)
16 libgstparse_la_LIBADD = $(GST_ALL_LIBS)
18 noinst_HEADERS = grammar.tab.h
20 grammar.tab.c grammar.tab.h: grammar.y
21 $(BISON_PATH) -d -v -p_gst_parse__yy $(srcdir)/grammar.y -o grammar.tab.c
23 lex._gst_parse_yy.c: parse.l grammar.tab.h
24 $(FLEX_PATH) -P_gst_parse_yy $^