2005-07-10 16:42:42 -06:00
|
|
|
# Copyright 2005 Adam Jackson.
|
|
|
|
#
|
|
|
|
# Permission is hereby granted, free of charge, to any person obtaining a
|
|
|
|
# copy of this software and associated documentation files (the "Software"),
|
|
|
|
# to deal in the Software without restriction, including without limitation
|
|
|
|
# on the rights to use, copy, modify, merge, publish, distribute, sub
|
|
|
|
# license, and/or sell copies of the Software, and to permit persons to whom
|
|
|
|
# the Software is furnished to do so, subject to the following conditions:
|
|
|
|
#
|
|
|
|
# The above copyright notice and this permission notice (including the next
|
|
|
|
# paragraph) shall be included in all copies or substantial portions of the
|
|
|
|
# Software.
|
|
|
|
#
|
|
|
|
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
|
|
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
|
|
# FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL
|
|
|
|
# ADAM JACKSON BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
|
|
# IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
|
|
# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
|
|
|
2014-08-24 12:26:14 -06:00
|
|
|
include Makefile.sources
|
|
|
|
|
2011-02-09 06:28:20 -07:00
|
|
|
ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
|
2005-07-10 16:42:42 -06:00
|
|
|
|
2015-02-23 06:10:56 -07:00
|
|
|
AM_DISTCHECK_CONFIGURE_FLAGS = \
|
|
|
|
--enable-udev \
|
|
|
|
--enable-libkms \
|
|
|
|
--enable-intel \
|
|
|
|
--enable-radeon \
|
2015-08-07 09:19:49 -06:00
|
|
|
--enable-amdgpu \
|
2015-02-23 06:10:56 -07:00
|
|
|
--enable-nouveau \
|
2016-01-25 11:16:56 -07:00
|
|
|
--enable-vc4 \
|
2015-02-23 06:10:56 -07:00
|
|
|
--enable-vmwgfx \
|
|
|
|
--enable-omap-experimental-api \
|
|
|
|
--enable-exynos-experimental-api \
|
|
|
|
--enable-freedreno \
|
|
|
|
--enable-freedreno-kgsl\
|
|
|
|
--enable-tegra-experimental-api \
|
2016-09-06 10:15:53 -06:00
|
|
|
--enable-etnaviv-experimental-api \
|
2015-02-23 06:10:56 -07:00
|
|
|
--enable-install-test-programs \
|
|
|
|
--enable-cairo-tests \
|
2015-09-04 15:06:44 -06:00
|
|
|
--enable-manpages \
|
|
|
|
--enable-valgrind
|
2015-02-23 06:10:56 -07:00
|
|
|
|
2005-07-10 16:42:42 -06:00
|
|
|
pkgconfigdir = @pkgconfigdir@
|
2009-10-30 19:25:44 -06:00
|
|
|
pkgconfig_DATA = libdrm.pc
|
2005-07-10 16:42:42 -06:00
|
|
|
|
2009-11-24 09:54:10 -07:00
|
|
|
if HAVE_LIBKMS
|
|
|
|
LIBKMS_SUBDIR = libkms
|
|
|
|
endif
|
|
|
|
|
2009-11-17 09:14:54 -07:00
|
|
|
if HAVE_INTEL
|
|
|
|
INTEL_SUBDIR = intel
|
|
|
|
endif
|
|
|
|
|
|
|
|
if HAVE_NOUVEAU
|
|
|
|
NOUVEAU_SUBDIR = nouveau
|
|
|
|
endif
|
|
|
|
|
|
|
|
if HAVE_RADEON
|
|
|
|
RADEON_SUBDIR = radeon
|
|
|
|
endif
|
|
|
|
|
2015-04-20 10:04:22 -06:00
|
|
|
if HAVE_AMDGPU
|
|
|
|
AMDGPU_SUBDIR = amdgpu
|
|
|
|
endif
|
|
|
|
|
2012-03-28 13:39:43 -06:00
|
|
|
if HAVE_OMAP
|
|
|
|
OMAP_SUBDIR = omap
|
|
|
|
endif
|
|
|
|
|
2012-05-04 04:13:14 -06:00
|
|
|
if HAVE_EXYNOS
|
|
|
|
EXYNOS_SUBDIR = exynos
|
|
|
|
endif
|
|
|
|
|
2012-10-07 17:57:31 -06:00
|
|
|
if HAVE_FREEDRENO
|
|
|
|
FREEDRENO_SUBDIR = freedreno
|
|
|
|
endif
|
|
|
|
|
2012-12-01 02:30:38 -07:00
|
|
|
if HAVE_TEGRA
|
|
|
|
TEGRA_SUBDIR = tegra
|
|
|
|
endif
|
|
|
|
|
2016-01-25 11:16:56 -07:00
|
|
|
if HAVE_VC4
|
|
|
|
VC4_SUBDIR = vc4
|
|
|
|
endif
|
|
|
|
|
2016-09-06 10:15:53 -06:00
|
|
|
if HAVE_ETNAVIV
|
|
|
|
ETNAVIV_SUBDIR = etnaviv
|
|
|
|
endif
|
|
|
|
|
2015-04-06 12:02:38 -06:00
|
|
|
if BUILD_MANPAGES
|
|
|
|
if HAVE_MANPAGES_STYLESHEET
|
|
|
|
MAN_SUBDIR = man
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2014-12-01 17:10:38 -07:00
|
|
|
SUBDIRS = \
|
|
|
|
. \
|
|
|
|
$(LIBKMS_SUBDIR) \
|
|
|
|
$(INTEL_SUBDIR) \
|
|
|
|
$(NOUVEAU_SUBDIR) \
|
|
|
|
$(RADEON_SUBDIR) \
|
2015-04-20 10:04:22 -06:00
|
|
|
$(AMDGPU_SUBDIR) \
|
2014-12-01 17:10:38 -07:00
|
|
|
$(OMAP_SUBDIR) \
|
|
|
|
$(EXYNOS_SUBDIR) \
|
|
|
|
$(FREEDRENO_SUBDIR) \
|
|
|
|
$(TEGRA_SUBDIR) \
|
2016-01-25 11:16:56 -07:00
|
|
|
$(VC4_SUBDIR) \
|
2016-09-06 10:15:53 -06:00
|
|
|
$(ETNAVIV_SUBDIR) \
|
2014-12-01 17:10:38 -07:00
|
|
|
tests \
|
2015-04-06 12:02:38 -06:00
|
|
|
$(MAN_SUBDIR)
|
2009-11-17 09:14:54 -07:00
|
|
|
|
|
|
|
libdrm_la_LTLIBRARIES = libdrm.la
|
|
|
|
libdrm_ladir = $(libdir)
|
2015-08-24 11:21:51 -06:00
|
|
|
libdrm_la_LDFLAGS = -version-number 2:4:0 -no-undefined
|
|
|
|
libdrm_la_LIBADD = @CLOCK_LIB@ -lm
|
2009-11-17 09:14:54 -07:00
|
|
|
|
|
|
|
libdrm_la_CPPFLAGS = -I$(top_srcdir)/include/drm
|
2013-12-28 23:06:51 -07:00
|
|
|
AM_CFLAGS = \
|
2015-02-23 05:52:47 -07:00
|
|
|
$(WARN_CFLAGS) \
|
2015-05-30 07:25:08 -06:00
|
|
|
$(VALGRIND_CFLAGS)
|
2009-11-17 09:14:54 -07:00
|
|
|
|
2014-08-24 12:26:14 -06:00
|
|
|
libdrm_la_SOURCES = $(LIBDRM_FILES)
|
2009-11-17 09:14:54 -07:00
|
|
|
|
|
|
|
libdrmincludedir = ${includedir}
|
2014-08-24 12:26:14 -06:00
|
|
|
libdrminclude_HEADERS = $(LIBDRM_H_FILES)
|
2009-11-17 09:14:54 -07:00
|
|
|
|
2014-09-07 08:31:00 -06:00
|
|
|
klibdrmincludedir = ${includedir}/libdrm
|
|
|
|
klibdrminclude_HEADERS = $(LIBDRM_INCLUDE_H_FILES)
|
|
|
|
|
|
|
|
if HAVE_VMWGFX
|
|
|
|
klibdrminclude_HEADERS += $(LIBDRM_INCLUDE_VMWGFX_H_FILES)
|
|
|
|
endif
|
|
|
|
|
2016-11-14 10:59:28 -07:00
|
|
|
EXTRA_DIST = include/drm/README
|
2014-09-07 08:31:00 -06:00
|
|
|
|
2009-11-17 07:23:52 -07:00
|
|
|
copy-headers :
|
2014-09-07 08:54:16 -06:00
|
|
|
cp -r $(kernel_source)/include/uapi/drm/*.h $(top_srcdir)/include/drm/
|
2009-11-17 07:23:52 -07:00
|
|
|
|
|
|
|
commit-headers : copy-headers
|
2014-09-07 08:54:16 -06:00
|
|
|
git add include/drm/*.h
|
2009-11-17 07:23:52 -07:00
|
|
|
git commit -am "Copy headers from kernel $$(GIT_DIR=$(kernel_source)/.git git describe)"
|