Prepare for <elfdefinitions.h> and <sys/elfdefinitions.h> to be installed

into ${DESTDIR}/usr/include.
This commit is contained in:
jkoshy 2021-04-06 19:40:19 +00:00
parent ccea5483fd
commit f2d414b94a
2 changed files with 54 additions and 0 deletions

View File

@ -0,0 +1,26 @@
# $NetBSD: Makefile,v 1.1 2021/04/06 19:40:19 jkoshy Exp $
.include <bsd.own.mk>
TOP= ${.CURDIR}/../dist
SRCDIR= ${TOP}/common
.PATH: ${SRCDIR}
SUBDIR= sys
INCS= elfdefinitions.h
INCSDIR= /usr/include
.PHONY: all clean clobber depend obj
all depend:
clean clobber:
rm -f ${CLEANFILES}
cleandepend:
rm -f ${.OBJDIR}/.depend
.include <bsd.inc.mk>
.include <bsd.subdir.mk>

View File

@ -0,0 +1,28 @@
# $NetBSD: Makefile,v 1.1 2021/04/06 19:40:19 jkoshy Exp $
.include <bsd.own.mk>
TOP= ${.CURDIR}/../../dist
SRCDIR= ${TOP}/common/sys
.PATH: ${SRCDIR}
INCS= elfdefinitions.h
INCSDIR= /usr/include/sys
elfdefinitions.h: elfdefinitions.m4 elfconstants.m4
${TOOL_M4} -I${SRCDIR} -D SRCDIR=${SRCDIR} ${M4FLAGS} \
elfdefinitions.m4 > ${.TARGET}
.PHONY: all clean clobber depend
all depend: elfdefinitions.h
clean clobber:
rm -f ${INCS}
cleandepend:
rm -f ${.OBJDIR}/.depend
.include <bsd.inc.mk>
.include <bsd.obj.mk>