xref: /netbsd-src/tools/elftoolchain/common/Makefile (revision cc85530f4132a9c09c804f28822f0c6b5d364895)
1*cc85530fSchristos# $NetBSD: Makefile,v 1.3 2024/03/26 16:52:03 christos Exp $
29577c37aSjkoshy
39577c37aSjkoshy.include <bsd.hostinit.mk>
49577c37aSjkoshy
59577c37aSjkoshySRCDIR=	${.CURDIR}/../../../external/bsd/elftoolchain/dist/common
69577c37aSjkoshy
79577c37aSjkoshy.PATH:	${SRCDIR}
89577c37aSjkoshy
99577c37aSjkoshySUBDIR=		sys
109577c37aSjkoshy
119577c37aSjkoshyINCS=		elfdefinitions.h
129577c37aSjkoshyHOST_INCSDIR=	${TOOLDIR}/include
139577c37aSjkoshy
149577c37aSjkoshyHOST_INCINSTFILES=
159577c37aSjkoshy.for _f in ${INCS}
169577c37aSjkoshyHOST_INCINSTFILES+= ${HOST_INCSDIR}/${_f}
179577c37aSjkoshy${HOST_INCSDIR}/${_f}: ${_f}
189577c37aSjkoshy	${_MKTARGET_INSTALL}
19*cc85530fSchristos	${HOST_INSTALL_FILE} -m ${NONBINMODE} ${.ALLSRC} ${.TARGET}
209577c37aSjkoshy.endfor
219577c37aSjkoshy
229577c37aSjkoshy.PHONY:	all clean depend obj
239577c37aSjkoshy
249577c37aSjkoshyinstall: .PHONY includes
259577c37aSjkoshy
26b5818589Sjkoshyincludes: .PHONY ${HOST_INCSDIR} .WAIT ${HOST_INCINSTFILES}
279577c37aSjkoshy
289577c37aSjkoshyall depend clean clobber:
299577c37aSjkoshy
309577c37aSjkoshycleandepend:
319577c37aSjkoshy	rm -f ${.OBJDIR}/.depend
329577c37aSjkoshy
339577c37aSjkoshy.include <bsd.subdir.mk>
34