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