fix doc build fix autogen
[platform/upstream/gstreamer.git] / gst / Makefile.am
1 lib_LTLIBRARIES = libgstreamer-@GST_MAJORMINOR@.la
2 noinst_LTLIBRARIES = libcothreads.la
3
4 if HAVE_CPU_I386
5 GSTARCH_SRCS = gstcpuid_i386.s
6 else
7 GSTARCH_SRCS = 
8 endif
9
10 #GST_INSTRUMENT_FLAGS = -finstrument-functions -DGST_ENABLE_FUNC_INSTRUMENTATION
11
12 if GST_DISABLE_LOADSAVE
13 GST_LOADSAVE_SRC = 
14 else
15 GST_LOADSAVE_SRC = gstxml.c
16 endif
17
18 if GST_DISABLE_PARSE
19 GST_PARSE_SRC = 
20 GST_PARSE_DIRS = 
21 GST_PARSE_LIBADD = 
22 else
23 GST_PARSE_SRC = gstparse.c
24 GST_PARSE_DIRS = parse
25 GST_PARSE_LIBADD = parse/libgstparse.la 
26 endif
27
28 if GST_DISABLE_TRACE
29 GST_TRACE_SRC = 
30 else
31 GST_TRACE_SRC = gsttrace.c
32 endif
33
34 if GST_DISABLE_REGISTRY
35 GST_REGISTRY_SRC = 
36 GST_REGISTRY_DIRS =
37 GST_REGISTRY_LIBADD = 
38 else
39 GST_REGISTRY_SRC = gstregistry.c
40 GST_REGISTRY_DIRS = registries
41 GST_REGISTRY_LIBADD = registries/libgstxmlregistry.la
42 endif
43
44 if GST_DISABLE_ENUMTYPES
45 GST_ENUMTYPES_SRC = 
46 else
47 GST_ENUMTYPES_SRC = gstenumtypes.c
48 endif
49
50 if GST_DISABLE_INDEX
51 GST_INDEX_SRC = 
52 GST_INDEX_DIRS =
53 else
54 GST_INDEX_SRC = gstindex.c
55 GST_INDEX_DIRS = indexers
56 endif
57
58 if GST_DISABLE_PLUGIN
59 GST_PLUGIN_SRC = 
60 else
61 GST_PLUGIN_SRC = gstplugin.c
62 endif
63
64 if GST_DISABLE_URI
65 GST_URI_SRC = 
66 else
67 GST_URI_SRC = gsturi.c
68 endif
69
70 EXTRA_libgstreamer_@GST_MAJORMINOR@_la_SOURCES = gstcpuid_i386.s gstmarshal.list gstxml.c gstparse.c gsttrace.c
71
72 SUBDIRS = $(GST_PARSE_DIRS) $(GST_REGISTRY_DIRS) . autoplug elements schedulers $(GST_INDEX_DIRS) 
73 DIST_SUBDIRS = autoplug elements parse registries schedulers indexers
74
75 libgstreamer_@GST_MAJORMINOR@_la_SOURCES =              \
76         gst.c                   \
77         gstmarshal.c            \
78         $(GST_ENUMTYPES_SRC)    \
79         gstobject.c             \
80         gstatomic.c             \
81         gstbin.c                \
82         gstbuffer.c             \
83         gstcaps.c               \
84         gstclock.c              \
85         gstcpu.c                \
86         gstdata.c               \
87         gstelement.c            \
88         gstelementfactory.c     \
89         gsterror.c              \
90         gstevent.c              \
91         gstfilter.c             \
92         gstformat.c             \
93         $(GST_INDEX_SRC)        \
94         gstinfo.c               \
95         gstinterface.c          \
96         gstmemchunk.c           \
97         gstpad.c                \
98         gstpipeline.c           \
99         gstplugin.c             \
100         gstpluginfeature.c      \
101         gstprobe.c              \
102         gstqueue.c              \
103         gstquery.c              \
104         gstscheduler.c          \
105         gststructure.c          \
106         gstsystemclock.c        \
107         gsttag.c                \
108         gsttaginterface.c       \
109         gstthread.c             \
110         gstthreaddummy.c        \
111         $(GST_TRACE_SRC)        \
112         gsttrashstack.c         \
113         gsttypefind.c           \
114         $(GST_URI_SRC)          \
115         gsturitype.c            \
116         gstutils.c              \
117         gstvalue.c              \
118         $(GST_REGISTRY_SRC)     \
119         gstregistrypool.c       \
120         $(GST_PARSE_SRC)        \
121         $(GSTARCH_SRCS)         \
122         $(GST_LOADSAVE_SRC)
123
124
125 BUILT_SOURCES = gstversion.h gstconfig.h gstmarshal.h gstmarshal.c gstenumtypes.h $(GST_ENUMTYPES_SRC) 
126 CLEANFILES = gstmarshal.h gstmarshal.c gstenumtypes.h $(GST_ENUMTYPES_SRC)
127 DISTCLEANFILES = gstversion.h gstconfig.h
128
129 libgstreamer_@GST_MAJORMINOR@_la_CFLAGS = -D_GNU_SOURCE \
130         $(GST_CFLAGS) \
131         -DG_LOG_DOMAIN=g_log_domain_gstreamer \
132         -DGST_MAJORMINOR=\""$(GST_MAJORMINOR)"\" 
133 libgstreamer_@GST_MAJORMINOR@_la_LIBADD = $(LIBGST_LIBS) $(GST_PARSE_LIBADD) $(GST_REGISTRY_LIBADD)
134 libgstreamer_@GST_MAJORMINOR@_la_LDFLAGS = @GST_LT_LDFLAGS@ -version-info @GST_LIBVERSION@ 
135
136
137 libgstreamer_@GST_MAJORMINOR@includedir = $(includedir)/gstreamer-@GST_MAJORMINOR@/gst
138
139 gst_headers =                   \
140         gst.h                   \
141         gstatomic.h             \
142         gstobject.h             \
143         gstbin.h                \
144         gstbuffer.h             \
145         gstcaps.h               \
146         gstclock.h              \
147         gstcompat.h             \
148         gstcpu.h                \
149         gstdata.h               \
150         gstelement.h            \
151         gsterror.h              \
152         gstevent.h              \
153         gstfilter.h             \
154         gstformat.h             \
155         gstindex.h              \
156         gstinfo.h               \
157         gstinterface.h          \
158         gstlog.h                \
159         gstmacros.h             \
160         gstmemchunk.h           \
161         gstpad.h                \
162         gstpipeline.h           \
163         gstplugin.h             \
164         gstpluginfeature.h      \
165         gstprobe.h              \
166         gstqueue.h              \
167         gstquery.h              \
168         gstscheduler.h          \
169         gststructure.h          \
170         gstsystemclock.h        \
171         gsttag.h                \
172         gsttaginterface.h       \
173         gstthread.h             \
174         gsttrace.h              \
175         gsttrashstack.h         \
176         gsttypefind.h           \
177         gsttypes.h              \
178         gsturi.h                \
179         gsturitype.h            \
180         gstutils.h              \
181         gstvalue.h              \
182         gstregistry.h           \
183         gstregistrypool.h       \
184         gstparse.h              \
185         gstxml.h
186
187 built_headers =                 \
188         gstconfig.h             \
189         gstversion.h            \
190         gstmarshal.h            \
191         gstenumtypes.h
192
193 libgstreamer_@GST_MAJORMINOR@include_HEADERS = $(gst_headers) $(built_headers)
194
195 noinst_HEADERS =                \
196         gettext.h               \
197         gst-i18n-lib.h          \
198         gst-i18n-app.h          \
199         gst_private.h           \
200         gstatomic_impl.h        \
201         gstdata_private.h       \
202         gstarch.h               \
203         cothreads.h             
204
205 # the compiler shoots cothreads.c in the head at -O6
206 libcothreads_la_SOURCES = cothreads.c
207 libcothreads_la_CFLAGS = $(libgstreamer_@GST_MAJORMINOR@_la_CFLAGS) 
208
209
210 gstmarshal.h: gstmarshal.list
211         glib-genmarshal --header --prefix=gst_marshal $^ > gstmarshal.h.tmp
212         mv gstmarshal.h.tmp gstmarshal.h
213
214 gstmarshal.c: gstmarshal.list
215         echo "#include \"glib-object.h\"" >gstmarshal.c.tmp
216         echo "#include \"gstlog.h\"" >> gstmarshal.c.tmp
217         echo "#include \"gstmarshal.h\"" >> gstmarshal.c.tmp
218         glib-genmarshal --body --prefix=gst_marshal $^ >> gstmarshal.c.tmp
219         mv gstmarshal.c.tmp gstmarshal.c
220
221 gstenumtypes.h: $(gst_headers)
222         glib-mkenums \
223         --fhead "#ifndef __GST_ENUM_TYPES_H__\n#define __GST_ENUM_TYPES_H__\n\n#include <glib-object.h>\n\nG_BEGIN_DECLS\n" \
224         --fprod "/* enumerations from \"@filename@\" */\n" \
225         --vhead "GType @enum_name@_get_type (void);\n#define GST_TYPE_@ENUMSHORT@ (@enum_name@_get_type())\n"         \
226         --ftail "G_END_DECLS\n\n#endif /* __GST_ENUM_TYPES_H__ */" \
227         $^ > gstenumtypes.h
228
229 gstenumtypes.c: $(gst_headers)
230         glib-mkenums \
231         --fhead "#include <gst/gst.h>" \
232         --fprod "\n/* enumerations from \"@filename@\" */" \
233         --vhead "GType\n@enum_name@_get_type (void)\n{\n  static GType etype = 0;\n  if (etype == 0) {\n    static const G@Type@Value values[] = {"     \
234         --vprod "      { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
235         --vtail "      { 0, NULL, NULL }\n    };\n    etype = g_@type@_register_static (\"@EnumName@\", values);\n  }\n  return etype;\n}\n" \
236         $^ > gstenumtypes.c
237
238 EXTRA_DIST = ROADMAP