Home | History | Annotate | Line # | Download | only in sys
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 
      5 SRCDIR=	${.CURDIR}/../../../../external/bsd/elftoolchain/dist/common/sys
      6 
      7 .PATH:	${SRCDIR}
      8 
      9 INCS=		elfdefinitions.h
     10 HOST_INCSDIR=	${TOOLDIR}/include/sys
     11 
     12 elfdefinitions.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 
     19 install: .PHONY ${HOST_INCSDIR} .WAIT includes
     20 
     21 ${HOST_INCSDIR}:
     22 	${_MKTARGET_INSTALL}
     23 	${HOST_INSTALL_DIR} ${HOST_INCSDIR}
     24 
     25 .for _f in ${INCS}
     26 HOST_INCINSTFILES+= ${HOST_INCSDIR}/${_f}
     27 ${HOST_INCSDIR}/${_f}: ${_f}
     28 	${_MKTARGET_INSTALL}
     29 	${HOST_INSTALL_FILE} -m ${NONBINMODE} ${.ALLSRC} ${.TARGET}
     30 .endfor
     31 
     32 includes: .PHONY ${HOST_INCSDIR} .WAIT ${HOST_INCINSTFILES}
     33 
     34 all dependall depend:	${INCS}
     35 
     36 clean clobber:
     37 	rm -f ${INCS}
     38 
     39 cleandepend:
     40 	rm -f ${.OBJDIR}/.depend
     41 
     42 .include <bsd.obj.mk>
     43