Makefile revision 1.3
1# $NetBSD: Makefile,v 1.3 2024/03/27 21:55:08 christos 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 ${_MKTARGET_CREATE} 14 ${TOOL_M4} -I${SRCDIR} -D SRCDIR=${SRCDIR} ${M4FLAGS} \ 15 elfdefinitions.m4 > ${.TARGET} 16 17.PHONY: all clean clobber depend 18 19install: .PHONY ${HOST_INCSDIR} .WAIT includes 20 21${HOST_INCSDIR}: 22 ${_MKTARGET_INSTALL} 23 ${HOST_INSTALL_DIR} ${HOST_INCSDIR} 24 25.for _f in ${INCS} 26HOST_INCINSTFILES+= ${HOST_INCSDIR}/${_f} 27${HOST_INCSDIR}/${_f}: ${_f} 28 ${_MKTARGET_INSTALL} 29 ${HOST_INSTALL_FILE} -m ${NONBINMODE} ${.ALLSRC} ${.TARGET} 30.endfor 31 32includes: .PHONY ${HOST_INCSDIR} .WAIT ${HOST_INCINSTFILES} 33 34all dependall depend: ${INCS} 35 36clean clobber: 37 rm -f ${INCS} 38 39cleandepend: 40 rm -f ${.OBJDIR}/.depend 41 42.include <bsd.obj.mk> 43