-### FIXME use HAVE_ stuff to decide on dirs
-if USE_OSS
-OSS_SUBDS=oss
+if USE_GST_V4L
+V4L_DIR=v4l
else
-OSS_SUBDS=
+V4L_DIR=
endif
-if USE_V4L
-V4L_SUBDS=v4l
+if USE_X
+XIMAGE_DIR=ximage
else
-V4L_SUBDS=
+XIMAGE_DIR=
endif
-if USE_VCD
-VCD_SUBDS=vcd
+if USE_XVIDEO
+XVIMAGE_DIR=xvimage
else
-VCD_SUBDS=
+XVIMAGE_DIR=
endif
-if USE_VGA
-VGA_SUBDS=vga
-else
-VGA_SUBDS=
-endif
-
-SUBDIRS=$(OSS_SUBDS) qcam $(V4L_SUBDS) $(VCD_SUBDS) $(VGA_SUBDS) xvideo
+SUBDIRS = \
+ $(XIMAGE_DIR) \
+ $(XVIMAGE_DIR) \
+ $(V4L_DIR)
-DIST_SUBDIRS=oss qcam v4l vcd vga xvideo
+DIST_SUBDIRS = \
+ v4l \
+ ximage \
+ xvimage
+include $(top_srcdir)/common/parallel-subdirs.mak