merging from release branch
[platform/upstream/gstreamer.git] / gst / parse / Makefile.am
1
2 noinst_LTLIBRARIES = libgstparse.la
3
4
5 CLEANFILES = grammar.tab.h grammar.output
6 EXTRA_DIST = grammar.y parse.l types.h
7
8 # uncomment these lines to dist the generated sources
9 #BUILT_SOURCES = grammar.tab.h grammar.tab.c lex._gst_parse_yy.c 
10 #libgstparse_la_SOURCES = lex._gst_parse_yy.c grammar.tab.c
11
12 # uncomment these lines to _NOT_ dist the generated sources
13 nodist_libgstparse_la_SOURCES = lex._gst_parse_yy.c grammar.tab.c
14 CLEANFILES += grammar.tab.c lex._gst_parse_yy.c 
15
16 libgstparse_la_CFLAGS = $(GST_CFLAGS) $(DISABLE_FLEX_WARNING)
17 libgstparse_la_LIBADD = $(LIBGST_LIBS)
18
19 noinst_HEADERS = grammar.tab.h
20
21 grammar.tab.c grammar.tab.h: grammar.y 
22         $(BISON_PATH) -d -v -p_gst_parse__yy $(srcdir)/grammar.y -o grammar.tab.c
23  
24 lex._gst_parse_yy.c: parse.l grammar.tab.h
25         $(FLEX_PATH) -P_gst_parse_yy $^