1 #
2 # Copyright (C) 2011 Texas Instruments
3 # Author: Rob Clark <rob.clark@linaro.org>
4 #
5 # This program is free software; you can redistribute it and/or modify it
6 # under the terms of the GNU General Public License version 2 as published by
7 # the Free Software Foundation.
8 #
9 # This program is distributed in the hope that it will be useful, but WITHOUT
10 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
12 # more details.
13 #
14 # You should have received a copy of the GNU General Public License along with
15 # this program. If not, see <http://www.gnu.org/licenses/>.
16 #
18 noinst_LTLIBRARIES = libutil.la
20 libutil_la_SOURCES = \
21 display-kms.c \
22 util.c
24 if ENABLE_X11
25 libutil_la_SOURCES += display-x11.c
26 endif
28 if ENABLE_V4L2_DMABUF
29 libutil_la_SOURCES += v4l2.c
30 endif
32 if ENABLE_DCE
33 libutil_la_SOURCES += demux.c
34 endif
36 libutil_la_LIBADD = @DRM_LIBS@ @X11_LIBS@ @DCE_LIBS@
37 libutil_la_CFLAGS = @DRM_CFLAGS@ @X11_CFLAGS@ @DCE_CFLAGS@ @WARN_CFLAGS@