Use INCLUDEDIR rather than hard coded /usr/include
Differential Revision: D2748 Reviewed by: brooks imp
This commit is contained in:
parent
86f5f2ed31
commit
728d82cdd2
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=284268
@ -32,14 +32,14 @@ CLEANFILES+= linux32_syscalls.c
|
|||||||
|
|
||||||
ioctl.c: mkioctls
|
ioctl.c: mkioctls
|
||||||
env MACHINE=${MACHINE} CPP="${CPP}" \
|
env MACHINE=${MACHINE} CPP="${CPP}" \
|
||||||
sh ${.CURDIR}/mkioctls print ${DESTDIR}/usr/include > ${.TARGET}
|
sh ${.CURDIR}/mkioctls print ${DESTDIR}${INCLUDEDIR} > ${.TARGET}
|
||||||
|
|
||||||
kdump_subr.h: mksubr
|
kdump_subr.h: mksubr
|
||||||
sh ${.CURDIR}/mksubr ${DESTDIR}/usr/include | \
|
sh ${.CURDIR}/mksubr ${DESTDIR}${INCLUDEDIR} | \
|
||||||
sed -n 's/^\([a-z].*)\)$$/void \1;/p' >${.TARGET}
|
sed -n 's/^\([a-z].*)\)$$/void \1;/p' >${.TARGET}
|
||||||
|
|
||||||
kdump_subr.c: mksubr kdump_subr.h
|
kdump_subr.c: mksubr kdump_subr.h
|
||||||
sh ${.CURDIR}/mksubr ${DESTDIR}/usr/include >${.TARGET}
|
sh ${.CURDIR}/mksubr ${DESTDIR}${INCLUDEDIR} >${.TARGET}
|
||||||
.if (${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "i386")
|
.if (${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "i386")
|
||||||
sh ${.CURDIR}/../../sys/kern/makesyscalls.sh \
|
sh ${.CURDIR}/../../sys/kern/makesyscalls.sh \
|
||||||
${.CURDIR}/../../sys/${MACHINE_ARCH}/linux/syscalls.master ${.CURDIR}/linux_syscalls.conf
|
${.CURDIR}/../../sys/${MACHINE_ARCH}/linux/syscalls.master ${.CURDIR}/linux_syscalls.conf
|
||||||
|
@ -24,7 +24,7 @@ syscalls.h: syscalls.master
|
|||||||
|
|
||||||
ioctl.c: ${.CURDIR}/../kdump/mkioctls
|
ioctl.c: ${.CURDIR}/../kdump/mkioctls
|
||||||
env MACHINE=${MACHINE} CPP="${CPP}" \
|
env MACHINE=${MACHINE} CPP="${CPP}" \
|
||||||
/bin/sh ${.CURDIR}/../kdump/mkioctls return ${DESTDIR}/usr/include > ${.TARGET}
|
/bin/sh ${.CURDIR}/../kdump/mkioctls return ${DESTDIR}${INCLUDEDIR} > ${.TARGET}
|
||||||
|
|
||||||
.if ${MACHINE_CPUARCH} == "i386"
|
.if ${MACHINE_CPUARCH} == "i386"
|
||||||
SRCS+= i386-linux.c linux_syscalls.h
|
SRCS+= i386-linux.c linux_syscalls.h
|
||||||
|
Loading…
Reference in New Issue
Block a user