1 lib_LTLIBRARIES = libgstreamer-@GST_MAJORMINOR@.la
2 noinst_LTLIBRARIES = libcothreads.la
5 GSTARCH_SRCS = gstcpuid_i386.s
10 #GST_INSTRUMENT_FLAGS = -finstrument-functions -DGST_ENABLE_FUNC_INSTRUMENTATION
12 if GST_DISABLE_LOADSAVE
15 GST_LOADSAVE_SRC = gstxml.c
23 GST_PARSE_SRC = gstparse.c
24 GST_PARSE_DIRS = parse
25 GST_PARSE_LIBADD = parse/libgstparse.la
31 GST_TRACE_SRC = gsttrace.c
34 if GST_DISABLE_REGISTRY
39 GST_REGISTRY_SRC = gstregistry.c
40 GST_REGISTRY_DIRS = registries
41 GST_REGISTRY_LIBADD = registries/libgstxmlregistry.la
44 if GST_DISABLE_ENUMTYPES
47 GST_ENUMTYPES_SRC = gstenumtypes.c
54 GST_INDEX_SRC = gstindex.c
55 GST_INDEX_DIRS = indexers
61 GST_PLUGIN_SRC = gstplugin.c
67 GST_URI_SRC = gsturi.c
70 SUBDIRS = $(GST_PARSE_DIRS) $(GST_REGISTRY_DIRS) . autoplug elements schedulers $(GST_INDEX_DIRS)
71 DIST_SUBDIRS = autoplug elements parse registries schedulers indexers
73 # make variables for all generated source and header files to make the
76 built_header_configure = gstconfig.h gstversion.h
77 built_header_make = gstenumtypes.h gstmarshal.h
78 built_source_make = $(GST_ENUMTYPES_SRC) gstmarshal.c
80 EXTRA_libgstreamer_@GST_MAJORMINOR@_la_SOURCES = \
81 gstcpuid_i386.s gstmarshal.list gstxml.c gstparse.c gsttrace.c
83 libgstreamer_@GST_MAJORMINOR@_la_SOURCES = \
123 $(GST_REGISTRY_SRC) \
129 # do not put files in the distribution that are generated
130 nodist_libgstreamer_@GST_MAJORMINOR@_la_SOURCES = $(built_source_make)
132 # BUILT_SOURCES are built on make all/check/install before all other targets
134 $(built_header_configure) \
135 $(built_header_make) \
137 # CLEANFILES is for files generated by make
138 CLEANFILES = $(built_header_make) $(built_source_make)
139 # DISTCLEANFILES is for files generated by configure
140 DISTCLEANFILES = $(built_header_configure)
142 libgstreamer_@GST_MAJORMINOR@_la_CFLAGS = \
146 -DG_LOG_DOMAIN=g_log_domain_gstreamer \
147 -DGST_MAJORMINOR=\""$(GST_MAJORMINOR)"\"
148 libgstreamer_@GST_MAJORMINOR@_la_LIBADD = \
149 $(LIBGST_LIBS) $(GST_PARSE_LIBADD) $(GST_REGISTRY_LIBADD) $(VALGRIND_LIBS)
150 libgstreamer_@GST_MAJORMINOR@_la_LDFLAGS = \
151 @GST_LT_LDFLAGS@ -version-info @GST_LIBVERSION@
154 libgstreamer_@GST_MAJORMINOR@includedir = $(includedir)/gstreamer-@GST_MAJORMINOR@/gst
204 libgstreamer_@GST_MAJORMINOR@include_HEADERS = $(gst_headers)
205 nodist_libgstreamer_@GST_MAJORMINOR@include_HEADERS = \
206 $(built_header_configure) $(built_header_make)
218 # the compiler shoots cothreads.c in the head at -O6
219 libcothreads_la_SOURCES = cothreads.c
220 libcothreads_la_CFLAGS = $(libgstreamer_@GST_MAJORMINOR@_la_CFLAGS)
223 gstmarshal.h: gstmarshal.list
224 glib-genmarshal --header --prefix=gst_marshal $^ > gstmarshal.h.tmp
225 mv gstmarshal.h.tmp gstmarshal.h
227 gstmarshal.c: gstmarshal.list
228 echo "#include \"glib-object.h\"" >gstmarshal.c.tmp
229 echo "#include \"gstlog.h\"" >> gstmarshal.c.tmp
230 echo "#include \"gstmarshal.h\"" >> gstmarshal.c.tmp
231 glib-genmarshal --body --prefix=gst_marshal $^ >> gstmarshal.c.tmp
232 mv gstmarshal.c.tmp gstmarshal.c
234 gstenumtypes.h: $(gst_headers)
236 --fhead "#ifndef __GST_ENUM_TYPES_H__\n#define __GST_ENUM_TYPES_H__\n\n#include <glib-object.h>\n\nG_BEGIN_DECLS\n" \
237 --fprod "/* enumerations from \"@filename@\" */\n" \
238 --vhead "GType @enum_name@_get_type (void);\n#define GST_TYPE_@ENUMSHORT@ (@enum_name@_get_type())\n" \
239 --ftail "G_END_DECLS\n\n#endif /* __GST_ENUM_TYPES_H__ */" \
242 gstenumtypes.c: $(gst_headers)
244 --fhead "#include <gst/gst.h>" \
245 --fprod "\n/* enumerations from \"@filename@\" */" \
246 --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[] = {" \
247 --vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
248 --vtail " { 0, NULL, NULL }\n };\n etype = g_@type@_register_static (\"@EnumName@\", values);\n }\n return etype;\n}\n" \