2 lib_LTLIBRARIES = libgstreamer.la
3 noinst_LTLIBRARIES = libcothreads.la
6 GSTARCH_SRCS = gstcpuid_i386.s
11 #GST_INSTRUMENT_FLAGS = -finstrument-functions -DGST_ENABLE_FUNC_INSTRUMENTATION
13 if GST_DISABLE_LOADSAVE
16 GST_LOADSAVE_SRC = gstxml.c
19 if GST_DISABLE_TYPEFIND
22 GST_TYPEFIND_SRC = gsttypefind.c
28 GST_PARSE_SRC = gstparse.c
31 if GST_DISABLE_AUTOPLUG
35 GST_AUTOPLUG_SRC = gstautoplug.c
36 GST_AUTOPLUG_DIRS = autoplug
42 GST_TRACE_SRC = gsttrace.c
45 EXTRA_libgstreamer_la_SOURCES = gstcpuid_i386.s gstmarshal.list gstxml.c gsttypefind.c gstparse.c gstautoplug.c gsttrace.c
47 # cheap trick to build . first...
48 SUBDIRS = . types elements $(GST_AUTOPLUG_DIRS) schedulers
49 DIST_SUBDIRS = types elements autoplug schedulers
51 libcothreads_la_SOURCES = cothreads.c
52 libgstreamer_la_SOURCES = \
87 BUILT_SOURCES = gstmarshal.h gstmarshal.c
89 # Generate both marshal files together. Makes dependency work easier.
90 gstmarshal.h: gstmarshal.list
91 glib-genmarshal --header --prefix=gst_marshal $(srcdir)/gstmarshal.list > gstmarshal.h
93 gstmarshal.c: gstmarshal.list
94 echo "#include \"glib-object.h\"" >gstmarshal.c
95 echo "#include \"gstlog.h\"" >> gstmarshal.c
96 echo "#include \"gstmarshal.h\"" >> gstmarshal.c
97 glib-genmarshal --body --prefix=gst_marshal $(srcdir)/gstmarshal.list >> gstmarshal.c
99 ##### end built sources #####
101 # Don't want the generated marshal files in the dist
103 rm -f $(distdir)/gstmarshal.c $(distdir)/gstmarshal.h
104 # Clean generated files
106 rm -f $(top_builddir)/gst/gstmarshal.c $(top_builddir)/gst/gstmarshal.h
108 libgstreamerincludedir = $(includedir)/gst
109 libgstreamerinclude_HEADERS = \
152 libgstreamer_la_CFLAGS = -D_GNU_SOURCE -DGST_CONFIG_DIR=\""$(GST_CONFIG_DIR)"\" \
155 -DG_LOG_DOMAIN=g_log_domain_gstreamer \
156 -DGST_CONFIG_DIR=\""$(GST_CONFIG_DIR)"\"
158 # the compiler shoots cothreads.c in the head at -O6
159 libcothreads_la_CFLAGS = $(libgstreamer_la_CFLAGS) -O2
161 libgstreamer_la_LIBADD = $(LIBGST_LIBS)
162 libgstreamer_la_LDFLAGS = @GST_LT_LDFLAGS@ -version-info @GST_LIBVERSION@