damn
[platform/upstream/gstreamer.git] / gst / parse / Makefile.am
1 noinst_LTLIBRARIES = libgstparse.la
2
3 libgstparse_la_SOURCES = lex._gst_parse_yy.c grammar.tab.c
4
5 BISON = bison -d -v -p_gst_parse__yy
6
7 libgstparse_la_CFLAGS = $(LIBGST_CFLAGS)
8 libgstparse_la_LIBADD = $(LIBGST_LIBS)
9
10 noinst_HEADERS = grammar.tab.h
11
12 BUILT_SOURCES = grammar.tab.h grammar.tab.c lex._gst_parse_yy.c 
13
14 EXTRA_DIST = grammar.y parse.l types.h
15
16 grammar.tab.c grammar.tab.h: grammar.y ../gstmarshal.h
17         $(BISON) $(src_dir)/grammar.y
18  
19 ## this is so make install without a previous make can work, because
20 ## this dir needs gstmarshal.h generated
21 ../gstmarshal.h:
22         cd .. && make gstmarshal.h
23
24 lex._gst_parse_yy.c: parse.l
25         flex -P_gst_parse_yy $^