mpeg2: fix PAR calculation from commit 132922d.
[vaapi:gstreamer-vaapi.git] / gst-libs / gst / codecparsers / Makefile.am
1 noinst_LTLIBRARIES =                            \
2         libgstvaapi-codecparsers.la             \
3         $(NULL)
4
5 local_codecparsers_srcdir = \
6         $(top_srcdir)/ext/codecparsers/gst-libs/gst/codecparsers
7
8 libgstvaapi_codecparsers_cflags =               \
9         -DGST_USE_UNSTABLE_API                  \
10         -I$(top_srcdir)/gst-libs                \
11         $(GST_BASE_CFLAGS)                      \
12         $(GST_CFLAGS)                           \
13         $(NULL)
14
15 libgstvaapi_codecparsers_libs =                 \
16         $(GST_BASE_LIBS)                        \
17         $(GST_LIBS)                             \
18         $(NULL)
19
20 gen_source_c = parserutils.c
21 gen_source_h = parserutils.h
22
23 # Always build VC-1 parser for now
24 gen_source_c += gstvc1parser.c
25 gen_source_h += gstvc1parser.h
26
27 if USE_LOCAL_CODEC_PARSERS_JPEG
28 gen_source_c += gstjpegparser.c
29 gen_source_h += gstjpegparser.h
30 endif
31
32 if USE_LOCAL_CODEC_PARSERS_MPEG2
33 gen_source_c += gstmpegvideoparser.c
34 gen_source_h += gstmpegvideoparser.h
35 endif
36
37 if USE_LOCAL_CODEC_PARSERS_H264
38 gen_source_c += gsth264parser.c
39 gen_source_h += gsth264parser.h
40 endif
41
42 GENFILES = \
43         $(gen_source_c)                         \
44         $(gen_source_h)                         \
45         $(NULL)
46
47 nodist_EXTRA_libgstvaapi_codecparsers_la_SOURCES = dummy.c
48
49 nodist_libgstvaapi_codecparsers_la_SOURCES =    \
50         $(gen_source_c)                         \
51         $(NULL)
52
53 libgstvaapi_codecparsers_la_CFLAGS =            \
54         $(libgstvaapi_codecparsers_cflags)      \
55         $(NULL)
56
57 libgstvaapi_codecparsers_la_LIBADD =            \
58         $(libgstvaapi_codecparsers_libs)        \
59         $(NULL)
60
61 libgstvaapi_codecparsers_la_LDFLAGS =           \
62         $(GST_ALL_LDFLAGS)                      \
63         $(NULL)
64
65 all-local: .timestamp.symlinks
66
67 .timestamp.symlinks: $(GENFILES)
68         touch $@
69
70 $(gen_source_c): %.c: $(local_codecparsers_srcdir)/%.c %.h
71         $(LN_S) -f $< $@
72 $(gen_source_h): %.h: $(local_codecparsers_srcdir)/%.h
73         $(LN_S) -f $< $@
74
75 DISTCLEANFILES = $(GENFILES) .timestamp.symlinks
76
77 # Extra clean files so that maintainer-clean removes *everything*
78 MAINTAINERCLEANFILES = Makefile.in