12793517fc538e681f93f455ad84d6c3281a0ebf
2 lib_LTLIBRARIES = libgst.la
3 noinst_LTLIBRARIES = libcothreads.la
5 if HAVE_CPU_I386
6 GSTARCH_SRCS = gstcpuid_i386.s
7 else
8 GSTARCH_SRCS =
9 endif
11 #GST_INSTRUMENT_FLAGS = -finstrument-functions -DGST_ENABLE_FUNC_INSTRUMENTATION
13 if GST_DISABLE_LOADSAVE
14 GST_LOADSAVE_SRC =
15 else
16 GST_LOADSAVE_SRC = gstxml.c
17 endif
19 if GST_DISABLE_TYPEFIND
20 GST_TYPEFIND_SRC =
21 else
22 GST_TYPEFIND_SRC = gsttypefind.c
23 endif
25 if GST_DISABLE_PARSE
26 GST_PARSE_SRC =
27 else
28 GST_PARSE_SRC = gstparse.c
29 endif
31 if GST_DISABLE_AUTOPLUG
32 GST_AUTOPLUG_SRC =
33 GST_AUTOPLUG_DIRS =
34 else
35 GST_AUTOPLUG_SRC = gstautoplug.c
36 GST_AUTOPLUG_DIRS = autoplug
37 endif
39 if GST_DISABLE_TRACE
40 GST_TRACE_SRC =
41 else
42 GST_TRACE_SRC = gsttrace.c
43 endif
45 EXTRA_libgst_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 libgst_la_SOURCES = \
53 gst.c \
54 gstmarshal.c \
55 gstobject.c \
56 $(GST_AUTOPLUG_SRC) \
57 gstbin.c \
58 gstbuffer.c \
59 gstbufferpool.c \
60 gstcaps.c \
61 gstclock.c \
62 gstcpu.c \
63 gstelement.c \
64 gstelementfactory.c \
65 gstevent.c \
66 gstextratypes.c \
67 gstinfo.c \
68 gstpad.c \
69 gstpipeline.c \
70 gstplugin.c \
71 gstpluginfeature.c \
72 gstprops.c \
73 gstqueue.c \
74 gstscheduler.c \
75 gstsystemclock.c \
76 gstthread.c \
77 $(GST_TRACE_SRC) \
78 gsttype.c \
79 $(GST_TYPEFIND_SRC) \
80 gstutils.c \
81 gsttimecache.c \
82 $(GST_PARSE_SRC) \
83 $(GSTARCH_SRCS) \
84 $(GST_LOADSAVE_SRC)
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
102 dist-hook:
103 rm -f $(distdir)/gstmarshal.c $(distdir)/gstmarshal.h
104 # Clean generated files
105 distclean-local:
106 rm -f $(top_builddir)/gst/gstmarshal.c $(top_builddir)/gst/gstmarshal.h
108 libgstincludedir = $(includedir)/gst
109 libgstinclude_HEADERS = \
110 cothreads.h \
111 gst.h \
112 gstconfig.h \
113 gstmarshal.h \
114 gstobject.h \
115 gsttypes.h \
116 gstautoplug.h \
117 gstbin.h \
118 gstbuffer.h \
119 gstbufferpool.h \
120 gstcaps.h \
121 gstclock.h \
122 gstcpu.h \
123 gstdata.h \
124 gstelement.h \
125 gstevent.h \
126 gstextratypes.h \
127 gstinfo.h \
128 gstlog.h \
129 gstpad.h \
130 gstpipeline.h \
131 gstplugin.h \
132 gstpluginfeature.h \
133 gstprops.h \
134 gstqueue.h \
135 gstscheduler.h \
136 gstsystemclock.h \
137 gstthread.h \
138 gsttrace.h \
139 gsttype.h \
140 gsttypefind.h \
141 gstutils.h \
142 gsttimecache.h \
143 gstparse.h \
144 gstversion.h \
145 gstxml.h
147 noinst_HEADERS = \
148 gst_private.h \
149 gstarch.h \
150 gstpropsprivate.h
152 libgst_la_CFLAGS = -D_GNU_SOURCE -DGST_CONFIG_DIR=\""$(GST_CONFIG_DIR)"\" \
153 $(LIBGST_CFLAGS) \
154 -D_GNU_SOURCE \
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 = $(libgst_la_CFLAGS) -O2
161 libgst_la_LIBADD = $(LIBGST_LIBS) libcothreads.la
162 libgst_la_LDFLAGS = -version-info $(GST_LIBVERSION) -release $(GST_VERSION)
164 EXTRA_DIST = ROADMAP