Module Name: src
Committed By: jkoshy
Date: Tue Apr 6 19:40:20 UTC 2021
Added Files:
src/external/bsd/elftoolchain/common: Makefile
src/external/bsd/elftoolchain/common/sys: Makefile
Log Message:
Prepare for <elfdefinitions.h> and <sys/elfdefinitions.h> to be installed
into ${DESTDIR}/usr/include.
To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 src/external/bsd/elftoolchain/common/Makefile
cvs rdiff -u -r0 -r1.1 src/external/bsd/elftoolchain/common/sys/Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Added files:
Index: src/external/bsd/elftoolchain/common/Makefile
diff -u /dev/null src/external/bsd/elftoolchain/common/Makefile:1.1
--- /dev/null Tue Apr 6 19:40:20 2021
+++ src/external/bsd/elftoolchain/common/Makefile Tue Apr 6 19:40:19 2021
@@ -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>
Index: src/external/bsd/elftoolchain/common/sys/Makefile
diff -u /dev/null src/external/bsd/elftoolchain/common/sys/Makefile:1.1
--- /dev/null Tue Apr 6 19:40:20 2021
+++ src/external/bsd/elftoolchain/common/sys/Makefile Tue Apr 6 19:40:19 2021
@@ -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>