Makefile revision 1.4
11.4Schristos#	$NetBSD: Makefile,v 1.4 2024/03/31 03:20:38 christos Exp $
21.1Sjkoshy
31.1Sjkoshy.include <bsd.hostinit.mk>
41.1Sjkoshy
51.1SjkoshySRCDIR=	${.CURDIR}/../../../../external/bsd/elftoolchain/dist/common/sys
61.1Sjkoshy
71.1Sjkoshy.PATH:	${SRCDIR}
81.1Sjkoshy
91.1SjkoshyINCS=		elfdefinitions.h
101.1SjkoshyHOST_INCSDIR=	${TOOLDIR}/include/sys
111.1Sjkoshy
121.4Schristos# Too early for ${TOOL_M4}
131.4Schristos#elfdefinitions.h:	elfdefinitions.m4 elfconstants.m4
141.4Schristos#	${_MKTARGET_CREATE}
151.4Schristos#	${TOOL_M4} -I${SRCDIR} -D SRCDIR=${SRCDIR} ${M4FLAGS} \
161.4Schristos#		elfdefinitions.m4 > ${.TARGET}
171.1Sjkoshy
181.1Sjkoshy.PHONY:	all clean clobber depend
191.1Sjkoshy
201.1Sjkoshyinstall: .PHONY ${HOST_INCSDIR} .WAIT includes
211.1Sjkoshy
221.1Sjkoshy${HOST_INCSDIR}:
231.1Sjkoshy	${_MKTARGET_INSTALL}
241.1Sjkoshy	${HOST_INSTALL_DIR} ${HOST_INCSDIR}
251.1Sjkoshy
261.1Sjkoshy.for _f in ${INCS}
271.1SjkoshyHOST_INCINSTFILES+= ${HOST_INCSDIR}/${_f}
281.1Sjkoshy${HOST_INCSDIR}/${_f}: ${_f}
291.1Sjkoshy	${_MKTARGET_INSTALL}
301.2Schristos	${HOST_INSTALL_FILE} -m ${NONBINMODE} ${.ALLSRC} ${.TARGET}
311.1Sjkoshy.endfor
321.1Sjkoshy
331.1Sjkoshyincludes: .PHONY ${HOST_INCSDIR} .WAIT ${HOST_INCINSTFILES}
341.1Sjkoshy
351.1Sjkoshyall dependall depend:	${INCS}
361.1Sjkoshy
371.1Sjkoshyclean clobber:
381.4Schristos#	rm -f ${INCS}
391.1Sjkoshy
401.1Sjkoshycleandepend:
411.1Sjkoshy	rm -f ${.OBJDIR}/.depend
421.1Sjkoshy
431.1Sjkoshy.include <bsd.obj.mk>
44