Install kernel headers in ${includedir}/drm
authorKristian Høgsberg <krh@bitplanet.net>
Sat, 21 Nov 2009 00:42:59 +0000 (19:42 -0500)
committerKristian Høgsberg <krh@bitplanet.net>
Sat, 21 Nov 2009 00:46:34 +0000 (19:46 -0500)
Makefile.am
configure.ac
include/Makefile.am [new file with mode: 0644]
include/drm/Makefile.am [new file with mode: 0644]

index 65d8f2e..de8bfe0 100644 (file)
@@ -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)
index 857fc09..fd6a642 100644 (file)
@@ -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 (file)
index 0000000..55ea506
--- /dev/null
@@ -0,0 +1 @@
+SUBDIRS = drm
diff --git a/include/drm/Makefile.am b/include/drm/Makefile.am
new file mode 100644 (file)
index 0000000..1c09a5f
--- /dev/null
@@ -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