From 4f070d593cfc60b18c6ccb85af785b00ffb51db4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kristian=20H=C3=B8gsberg?= Date: Fri, 20 Nov 2009 19:42:59 -0500 Subject: Install kernel headers in ${includedir}/drm --- Makefile.am | 2 +- configure.ac | 2 ++ include/Makefile.am | 1 + include/drm/Makefile.am | 37 +++++++++++++++++++++++++++++++++++++ 4 files changed, 41 insertions(+), 1 deletion(-) create mode 100644 include/Makefile.am create mode 100644 include/drm/Makefile.am diff --git a/Makefile.am b/Makefile.am index 65d8f2ea..de8bfe09 100644 --- a/Makefile.am +++ b/Makefile.am @@ -35,7 +35,7 @@ if HAVE_RADEON RADEON_SUBDIR = radeon endif -SUBDIRS = . $(INTEL_SUBDIR) $(NOUVEAU_SUBDIR) $(RADEON_SUBDIR) tests +SUBDIRS = . $(INTEL_SUBDIR) $(NOUVEAU_SUBDIR) $(RADEON_SUBDIR) tests include libdrm_la_LTLIBRARIES = libdrm.la libdrm_ladir = $(libdir) diff --git a/configure.ac b/configure.ac index 857fc097..fd6a642e 100644 --- a/configure.ac +++ b/configure.ac @@ -206,4 +206,6 @@ AC_OUTPUT([ tests/Makefile tests/modeprint/Makefile tests/modetest/Makefile + include/Makefile + include/drm/Makefile libdrm.pc]) diff --git a/include/Makefile.am b/include/Makefile.am new file mode 100644 index 00000000..55ea5066 --- /dev/null +++ b/include/Makefile.am @@ -0,0 +1 @@ +SUBDIRS = drm diff --git a/include/drm/Makefile.am b/include/drm/Makefile.am new file mode 100644 index 00000000..1c09a5fa --- /dev/null +++ b/include/drm/Makefile.am @@ -0,0 +1,37 @@ +# 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. + +# XXX airlied says, nothing besides *_drm.h and drm*.h should be necessary. +# however, r300 and via need their reg headers installed in order to build. +# better solutions are welcome. + +klibdrmincludedir = ${includedir}/drm +klibdrminclude_HEADERS = \ + drm.h \ + drm_mode.h \ + drm_sarea.h \ + i915_drm.h \ + mga_drm.h \ + nouveau_drm.h \ + r128_drm.h \ + radeon_drm.h \ + savage_drm.h \ + sis_drm.h \ + via_drm.h -- cgit v1.2.3