summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@bitplanet.net>2009-11-20 19:42:59 -0500
committerKristian Høgsberg <krh@bitplanet.net>2009-11-20 19:46:34 -0500
commit4f070d593cfc60b18c6ccb85af785b00ffb51db4 (patch)
tree8e6b8c00203f5fe088c5f2acec18259aa7c14414
parent3a87b1f497cc201a6c37fcd779019560ab7746ae (diff)
Install kernel headers in ${includedir}/drm
-rw-r--r--Makefile.am2
-rw-r--r--configure.ac2
-rw-r--r--include/Makefile.am1
-rw-r--r--include/drm/Makefile.am37
4 files changed, 41 insertions, 1 deletions
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