Cross Reference: Makefile
xref: /src/tools/elftoolchain/common/sys/Makefile
  • Home
  • History
  • AnnotateAnnotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /src/tools/elftoolchain/common/sys/
Makefile revision 1.2
11.2Schristos#	$NetBSD: Makefile,v 1.2 2024/03/26 16:52:03 christos Exp $
21.1Sjkoshy
31.1Sjkoshy.include <bsd.hostinit.mk>
41.1Sjkoshy
51.1SjkoshySRCDIR=	${.CURDIR}/../../../../external/bsd/elftoolchain/dist/common/sys
61.1Sjkoshy
71.1Sjkoshy.PATH:	${SRCDIR}
81.1Sjkoshy
91.1SjkoshyINCS=		elfdefinitions.h
101.1SjkoshyHOST_INCSDIR=	${TOOLDIR}/include/sys
111.1Sjkoshy
121.1Sjkoshyelfdefinitions.h:	elfdefinitions.m4 elfconstants.m4
131.1Sjkoshy	${TOOL_M4} -I${SRCDIR} -D SRCDIR=${SRCDIR} ${M4FLAGS} \
141.1Sjkoshy		elfdefinitions.m4 > ${.TARGET}
151.1Sjkoshy
161.1Sjkoshy.PHONY:	all clean clobber depend
171.1Sjkoshy
181.1Sjkoshyinstall: .PHONY ${HOST_INCSDIR} .WAIT includes
191.1Sjkoshy
201.1Sjkoshy${HOST_INCSDIR}:
211.1Sjkoshy	${_MKTARGET_INSTALL}
221.1Sjkoshy	${HOST_INSTALL_DIR} ${HOST_INCSDIR}
231.1Sjkoshy
241.1Sjkoshy.for _f in ${INCS}
251.1SjkoshyHOST_INCINSTFILES+= ${HOST_INCSDIR}/${_f}
261.1Sjkoshy${HOST_INCSDIR}/${_f}: ${_f}
271.1Sjkoshy	${_MKTARGET_INSTALL}
281.2Schristos	${HOST_INSTALL_FILE} -m ${NONBINMODE} ${.ALLSRC} ${.TARGET}
291.1Sjkoshy.endfor
301.1Sjkoshy
311.1Sjkoshyincludes: .PHONY ${HOST_INCSDIR} .WAIT ${HOST_INCINSTFILES}
321.1Sjkoshy
331.1Sjkoshyall dependall depend:	${INCS}
341.1Sjkoshy
351.1Sjkoshyclean clobber:
361.1Sjkoshy	rm -f ${INCS}
371.1Sjkoshy
381.1Sjkoshycleandepend:
391.1Sjkoshy	rm -f ${.OBJDIR}/.depend
401.1Sjkoshy
411.1Sjkoshy.include <bsd.obj.mk>
42

Indexes created Mon Dec 22 00:09:26 GMT 2025