Add makefile rule to copy headers from kernel tree
parent
89cc98c0d5
commit
a99680384a
|
@ -13,6 +13,8 @@ bsd-core/*/machine
|
||||||
.deps
|
.deps
|
||||||
.libs
|
.libs
|
||||||
.tmp_versions
|
.tmp_versions
|
||||||
|
.*check*
|
||||||
|
.*install*
|
||||||
Makefile
|
Makefile
|
||||||
Makefile.in
|
Makefile.in
|
||||||
aclocal.m4
|
aclocal.m4
|
||||||
|
|
|
@ -28,3 +28,10 @@ pkgconfigdir = @pkgconfigdir@
|
||||||
pkgconfig_DATA = libdrm.pc
|
pkgconfig_DATA = libdrm.pc
|
||||||
|
|
||||||
EXTRA_DIST = libdrm.pc.in
|
EXTRA_DIST = libdrm.pc.in
|
||||||
|
|
||||||
|
copy-headers :
|
||||||
|
cp -r $(kernel_source)/usr/include/drm $(top_srcdir)/include
|
||||||
|
|
||||||
|
commit-headers : copy-headers
|
||||||
|
git add include
|
||||||
|
git commit -am "Copy headers from kernel $$(GIT_DIR=$(kernel_source)/.git git describe)"
|
||||||
|
|
|
@ -188,6 +188,11 @@ fi
|
||||||
|
|
||||||
AM_CONDITIONAL(HAVE_INTEL, [test "x$INTEL" != "xno"])
|
AM_CONDITIONAL(HAVE_INTEL, [test "x$INTEL" != "xno"])
|
||||||
|
|
||||||
|
AC_ARG_WITH([kernel-source],
|
||||||
|
[AS_HELP_STRING([--with-kernel-source],
|
||||||
|
[specify path to linux kernel source])],
|
||||||
|
[kernel_source="$with_kernel_source"])
|
||||||
|
AC_SUBST(kernel_source)
|
||||||
|
|
||||||
AC_SUBST(WARN_CFLAGS)
|
AC_SUBST(WARN_CFLAGS)
|
||||||
AC_OUTPUT([
|
AC_OUTPUT([
|
||||||
|
|
Loading…
Reference in New Issue