remove dparams from core
[platform/upstream/gstreamer.git] / gst / Makefile.am
1 # cheap trick to build . first...
2
3 lib_LTLIBRARIES = libgst.la
4
5 if HAVE_CPU_I386
6 GSTARCH_SRCS = gstcpuid_i386.s
7 else
8 GSTARCH_SRCS = 
9 endif
10
11 if USE_GLIB2
12 GST_OBJECT_MODEL_SRC = gstmarshal.c
13 GST_OBJECT_MODEL_HDR = gstmarshal.h
14 else
15 GST_OBJECT_MODEL_SRC = gobject2gtk.c
16 GST_OBJECT_MODEL_HDR = gobject2gtk.h
17 endif
18
19 if GST_DISABLE_LOADSAVE
20 GST_LOADSAVE_SRC = 
21 else
22 GST_LOADSAVE_SRC = gstxml.c
23 endif
24
25 if GST_DISABLE_TYPEFIND
26 GST_TYPEFIND_SRC = 
27 else
28 GST_TYPEFIND_SRC = gsttypefind.c
29 endif
30
31 if GST_DISABLE_PARSE
32 GST_PARSE_SRC = 
33 else
34 GST_PARSE_SRC = gstparse.c
35 endif
36
37 if GST_DISABLE_AUTOPLUG
38 GST_AUTOPLUG_SRC = 
39 GST_AUTOPLUG_DIRS =
40 else
41 GST_AUTOPLUG_SRC = gstautoplug.c
42 GST_AUTOPLUG_DIRS = autoplug
43 endif
44
45 if GST_DISABLE_TRACE
46 GST_TRACE_SRC = 
47 else
48 GST_TRACE_SRC = gsttrace.c
49 endif
50
51 EXTRA_libgst_la_SOURCES = gstcpuid_i386.s gstmarshal.list gobject2gtk.c gobject2gtk.h gstxml.c gsttypefind.c gstparse.c gstautoplug.c gsttrace.c
52
53 SUBDIRS = . types elements $(GST_AUTOPLUG_DIRS)
54 DIST_SUBDIRS = types elements autoplug
55
56 libgst_la_SOURCES =             \
57         cothreads.c             \
58         gst.c                   \
59         $(GST_OBJECT_MODEL_SRC) \
60         gstobject.c             \
61         $(GST_AUTOPLUG_SRC)     \
62         gstbin.c                \
63         gstbuffer.c             \
64         gstbufferpool.c         \
65         gstcaps.c               \
66         gstclock.c              \
67         gstcpu.c                \
68         gstelement.c            \
69         gstelementfactory.c     \
70         gstextratypes.c         \
71         gstinfo.c               \
72         gstpad.c                \
73         gstpipeline.c           \
74         gstplugin.c             \
75         gstpluginfeature.c      \
76         gstprops.c              \
77         gstqueue.c              \
78         gstscheduler.c          \
79         gstthread.c             \
80         $(GST_TRACE_SRC)        \
81         gsttype.c               \
82         $(GST_TYPEFIND_SRC)     \
83         gstutils.c              \
84         gsttimecache.c          \
85         $(GST_PARSE_SRC)        \
86         $(GSTARCH_SRCS)         \
87         $(GST_LOADSAVE_SRC)
88
89
90 ##### Oh this sucks so badly.  This isn't funny. #####
91
92 # the compiler shoots cothreads.c in the head at -O6
93 # FIXME: these manual rules break the dependency generation, so we have a
94 # nasty hack here.  
95 #LTCOMPILE2=$(LTCOMPILE) -O2
96 #COMPILE2=$(COMPILE) -O2
97
98 # FIXME this only lists the x86 arch file, we really should merge them all
99 cothreads.lo: $(srcdir)/cothreads.c $(srcdir)/cothreads.h $(srcdir)/gst_private.h \
100   $(top_builddir)/config.h $(srcdir)/gstinfo.c $(srcdir)/gstarch.h
101         $(LIBTOOL) --mode=compile $(COMPILE) -O2 -c $<
102 cothreads.o: $(srcdir)/cothreads.c $(srcdir)/cothreads.h $(srcdir)/gst_private.h \
103   $(top_builddir)/config.h $(srcdir)/gstinfo.c $(srcdir)/gstarch.h
104         $(COMPILE) -O2 -c $<
105
106 # NOTDEPEND.cothreads.lo: cothreads.c
107 # NOTDEPEND     $(LTCOMPILE2) -c $<
108 # NOTDEPEND.cothreads.o: cothreads.c
109 # NOTDEPEND     $(COMPILE2) -c $<
110
111 #cothreads.lo: cothreads.c
112 #       @echo '$(LTCOMPILE2) -c $<'; \
113 #       $(LTCOMPILE2) -Wp,-MD,.deps/$(*F).pp -c $<
114 #       @-sed -e 's/^\([^:]*\)\.o[      ]*:/\1.lo \1.o :/' \
115 #         < .deps/$(*F).pp > .deps/$(*F).P; \
116 #       tr ' ' '\012' < .deps/$(*F).pp \
117 #         | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
118 #           >> .deps/$(*F).P; \
119 #       rm -f .deps/$(*F).pp
120 #cothreads.o: cothreads.c
121 #       @echo '$(COMPILE2) -c $<'; \
122 #       $(COMPILE2) -Wp,-MD,.deps/$(*F).pp -c $<
123 #       @-sed -e 's/^\([^:]*\)\.o[      ]*:/\1.lo \1.o :/' \
124 #         < .deps/$(*F).pp > .deps/$(*F).P; \
125 #       tr ' ' '\012' < .deps/$(*F).pp \
126 #         | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
127 #           >> .deps/$(*F).P; \
128 #       rm -f .deps/$(*F).pp
129
130 ##### end immense suckage #####
131
132 ##### Other built sources #####
133
134 # Generate both marshal files together.  Makes dependency work easier.
135 gstmarshal.h: gstmarshal.list
136         glib-genmarshal --header --prefix=gst_marshal gstmarshal.list > gstmarshal.h
137
138 gstmarshal.c: gstmarshal.list
139         echo "#include \"glib-object.h\"" >gstmarshal.c
140         echo "#include \"gstlog.h\"" >> gstmarshal.c
141         echo "#include \"gstmarshal.h\"" >> gstmarshal.c
142         glib-genmarshal --body --prefix=gst_marshal gstmarshal.list >> gstmarshal.c
143
144 ##### end built sources #####
145
146 # Don't want the generated marshal files in the dist
147 dist-hook:
148         rm -f $(distdir)/gstmarshal.c $(distdir)/gstmarshal.h
149 # Clean generated files
150 distclean-local:
151         rm -f $(builddir)/gstmarshal.c $(builddir)/gstmarshal.h
152
153 libgstincludedir = $(includedir)/gst
154 libgstinclude_HEADERS =         \
155         cothreads.h             \
156         gst.h                   \
157         $(GST_OBJECT_MODEL_HDR) \
158         gstobject.h             \
159         gsttypes.h              \
160         gstautoplug.h           \
161         gstbin.h                \
162         gstbuffer.h             \
163         gstbufferpool.h         \
164         gstcaps.h               \
165         gstclock.h              \
166         gstcpu.h                \
167         gstelement.h            \
168         gstevent.h              \
169         gstextratypes.h         \
170         gstinfo.h               \
171         gstlog.h                \
172         gstpad.h                \
173         gstpipeline.h           \
174         gstplugin.h             \
175         gstpluginfeature.h      \
176         gstprops.h              \
177         gstqueue.h              \
178         gstscheduler.h          \
179         gstthread.h             \
180         gsttrace.h              \
181         gsttype.h               \
182         gsttypefind.h           \
183         gstutils.h              \
184         gsttimecache.h          \
185         gstparse.h              \
186         gstversion.h            \
187         gstxml.h
188
189 noinst_HEADERS =        \
190         gst_private.h   \
191         gstarch.h       \
192         gstpropsprivate.h
193
194 CFLAGS = \
195         $(LIBGST_CFLAGS) \
196         -D_GNU_SOURCE \
197         -DG_LOG_DOMAIN=g_log_domain_gstreamer \
198         -DGST_CONFIG_DIR=\""$(GST_CONFIG_DIR)"\" \
199         \
200         -W -Wpointer-arith -Wbad-function-cast \
201         -Wcast-align -Wsign-compare \
202         -Wmissing-prototypes -Wmissing-declarations \
203         -Wnested-externs \
204         -Winline -Wno-unused
205
206 LIBS = $(LIBGST_LIBS)
207 LDFLAGS = ""
208 libgst_la_LDFLAGS = -version-info $(GST_LIBVERSION)
209
210 EXTRA_DIST = ROADMAP