Preserve user $CFLAGS
[glsdk/omapdrmtest.git] / util / Makefile.am
index 864ee25257c6e13763af183060b7239604e38128..eb1341180d95fd5d24d6774178dc42a3ee294e82 100644 (file)
@@ -19,13 +19,19 @@ noinst_LTLIBRARIES = libutil.la
 
 libutil_la_SOURCES = \
        display-kms.c \
-       display-x11.c \
-       v4l2.c \
        util.c
 
 if ENABLE_X11
-libutil_la_SOURCES += x11.c
+libutil_la_SOURCES += display-x11.c
 endif
 
-libutil_la_LIBADD = @DRM_LIBS@ @X11_LIBS@
-libutil_la_CFLAGS = @DRM_CFLAGS@ @X11_CFLAGS@ @WARN_CFLAGS@
+if ENABLE_V4L2_DMABUF
+libutil_la_SOURCES += v4l2.c
+endif
+
+if ENABLE_DCE
+libutil_la_SOURCES += demux.c
+endif
+
+libutil_la_LIBADD = @DRM_LIBS@ @X11_LIBS@ @DCE_LIBS@
+libutil_la_CFLAGS = @LIN_CFLAGS@ @DRM_CFLAGS@ @X11_CFLAGS@ @DCE_CFLAGS@ @WARN_CFLAGS@