-if USE_GCONF
-GCONF_DIR = gconf
-else
-GCONF_DIR =
-endif
-
-if USE_X
-X_DIR = xwindowlistener xoverlay
-X_INTERFACE_LIBS = xoverlay/libgstxoverlay.la
-else
-X_DIR =
-X_INTERFACE_LIBS =
-endif
-
+# The interfaces directory has to be built before the others,
+# otherwise some generated header files will be missing for the
+# plugins in the other directories.
SUBDIRS = \
- audio \
- colorbalance \
- floatcast \
- $(GCONF_DIR) \
- idct \
- media-info \
- mixer \
- navigation \
- play \
- propertyprobe \
- resample \
- riff \
+ interfaces \
tag \
- tuner \
+ fft \
+ rtp \
+ sdp \
+ rtsp \
video \
- $(X_DIR)
-
-DIST_SUBDIRS = \
audio \
- colorbalance \
- floatcast \
- gconf \
- idct \
- media-info \
- mixer \
- navigation \
- play \
- propertyprobe \
- resample \
+ pbutils \
riff \
- tag \
- tuner \
- video \
- xoverlay \
- xwindowlistener
+ app
+
+noinst_HEADERS = gettext.h gst-i18n-plugin.h glib-compat-private.h
+
+# dependencies:
+audio: interfaces tag
+
+riff: tag audio
+
+rtsp: sdp
+pbutils: video audio
-lib_LTLIBRARIES = libgstinterfaces-@GST_MAJORMINOR@.la
+INDEPENDENT_SUBDIRS = \
+ interfaces tag audio fft rtp sdp video app
-libgstinterfaces_@GST_MAJORMINOR@_la_SOURCES =
+.PHONY: independent-subdirs $(INDEPENDENT_SUBDIRS)
-libgstinterfaces_@GST_MAJORMINOR@_la_LIBADD = \
- colorbalance/libgstcolorbalance.la \
- mixer/libgstmixer.la \
- navigation/libgstnavigation.la \
- propertyprobe/libgstpropertyprobe.la \
- tuner/libgsttuner.la \
- $(X_INTERFACE_LIBS) \
- $(GST_LIBS)
+independent-subdirs: $(INDEPENDENT_SUBDIRS)
-libgstinterfaces_@GST_MAJORMINOR@_la_LDFLAGS = @GST_PLUGINS_LT_LDFLAGS@ -version-info @GST_PLUGINS_LIBVERSION@
+$(INDEPENDENT_SUBDIRS):
+ $(MAKE) -C $@
-noinst_HEADERS = gettext.h gst-i18n-plugin.h
+all-recursive: independent-subdirs