2005-10-15 13:58:18 +00:00
|
|
|
# libgstparse.la is an optionally built helper library linked into core
|
2002-04-07 23:32:16 +00:00
|
|
|
noinst_LTLIBRARIES = libgstparse.la
|
2002-03-31 21:09:17 +00:00
|
|
|
|
2003-10-09 13:47:35 +00:00
|
|
|
CLEANFILES = grammar.tab.h grammar.output
|
2003-04-08 23:18:30 +00:00
|
|
|
EXTRA_DIST = grammar.y parse.l types.h
|
2002-04-01 04:36:56 +00:00
|
|
|
|
2003-10-29 00:15:46 +00:00
|
|
|
# uncomment these lines to dist the generated sources
|
|
|
|
#BUILT_SOURCES = grammar.tab.h grammar.tab.c lex._gst_parse_yy.c
|
|
|
|
#libgstparse_la_SOURCES = lex._gst_parse_yy.c grammar.tab.c
|
|
|
|
|
|
|
|
# uncomment these lines to _NOT_ dist the generated sources
|
|
|
|
nodist_libgstparse_la_SOURCES = lex._gst_parse_yy.c grammar.tab.c
|
2003-10-31 03:52:11 +00:00
|
|
|
CLEANFILES += grammar.tab.c lex._gst_parse_yy.c
|
2003-08-30 02:42:55 +00:00
|
|
|
|
2005-10-15 13:58:18 +00:00
|
|
|
libgstparse_la_CFLAGS = $(GST_ALL_CFLAGS)
|
|
|
|
libgstparse_la_LIBADD = $(GST_ALL_LIBS)
|
2002-03-31 21:09:17 +00:00
|
|
|
|
|
|
|
noinst_HEADERS = grammar.tab.h
|
|
|
|
|
2004-02-03 03:31:26 +00:00
|
|
|
grammar.tab.c grammar.tab.h: grammar.y
|
2006-07-30 18:58:28 +00:00
|
|
|
$(BISON_PATH) -d -v -p_gst_parse__yy $(srcdir)/grammar.y -o grammar.tab.c && \
|
2006-05-14 23:23:56 +00:00
|
|
|
mv grammar.tab.c grammar.tab_tmp.c && \
|
|
|
|
echo '#ifdef HAVE_CONFIG_H' > grammar.tab_tmp2.c && \
|
|
|
|
echo '#include <config.h>' >> grammar.tab_tmp2.c && \
|
|
|
|
echo '#endif' >> grammar.tab_tmp2.c && \
|
|
|
|
cat grammar.tab_tmp.c >> grammar.tab_tmp2.c && \
|
|
|
|
rm grammar.tab_tmp.c && \
|
2006-05-04 15:20:14 +00:00
|
|
|
mv grammar.tab_tmp2.c grammar.tab.c
|
2002-08-13 16:30:58 +00:00
|
|
|
|
2004-02-26 17:02:49 +00:00
|
|
|
lex._gst_parse_yy.c: parse.l grammar.tab.h
|
2006-05-14 23:23:56 +00:00
|
|
|
$(FLEX_PATH) -P_gst_parse_yy $^ && \
|
|
|
|
mv lex._gst_parse_yy.c lex._gst_parse_yy_tmp.c && \
|
|
|
|
echo '#ifdef HAVE_CONFIG_H' > lex._gst_parse_yy_tmp2.c && \
|
|
|
|
echo '#include <config.h>' >> lex._gst_parse_yy_tmp2.c && \
|
|
|
|
echo '#endif' >> lex._gst_parse_yy_tmp2.c && \
|
|
|
|
cat lex._gst_parse_yy_tmp.c >> lex._gst_parse_yy_tmp2.c && \
|
|
|
|
rm lex._gst_parse_yy_tmp.c && \
|
2006-05-04 15:20:14 +00:00
|
|
|
mv lex._gst_parse_yy_tmp2.c lex._gst_parse_yy.c
|
|
|
|
|
2006-06-12 16:50:09 +00:00
|
|
|
|
|
|
|
.NOTPARALLEL:
|
|
|
|
|