1# $NetBSD: Makefile,v 1.1 2022/04/13 17:52:56 jkoshy Exp $ 2 3.include <bsd.hostinit.mk> 4 5SRCDIR= ${.CURDIR}/../../../../external/bsd/elftoolchain/dist/common/sys 6 7.PATH: ${SRCDIR} 8 9INCS= elfdefinitions.h 10HOST_INCSDIR= ${TOOLDIR}/include/sys 11 12elfdefinitions.h: elfdefinitions.m4 elfconstants.m4 13 ${TOOL_M4} -I${SRCDIR} -D SRCDIR=${SRCDIR} ${M4FLAGS} \ 14 elfdefinitions.m4 > ${.TARGET} 15 16.PHONY: all clean clobber depend 17 18install: .PHONY ${HOST_INCSDIR} .WAIT includes 19 20${HOST_INCSDIR}: 21 ${_MKTARGET_INSTALL} 22 ${HOST_INSTALL_DIR} ${HOST_INCSDIR} 23 24.for _f in ${INCS} 25HOST_INCINSTFILES+= ${HOST_INCSDIR}/${_f} 26${HOST_INCSDIR}/${_f}: ${_f} 27 ${_MKTARGET_INSTALL} 28 ${HOST_INSTALL_FILE} ${.ALLSRC} ${.TARGET} 29.endfor 30 31includes: .PHONY ${HOST_INCSDIR} .WAIT ${HOST_INCINSTFILES} 32 33all dependall depend: ${INCS} 34 35clean clobber: 36 rm -f ${INCS} 37 38cleandepend: 39 rm -f ${.OBJDIR}/.depend 40 41.include <bsd.obj.mk> 42