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