Home | History | Annotate | Line # | Download | only in sys
Makefile revision 1.1
      1 #	$NetBSD: Makefile,v 1.1 2022/04/13 17:52:56 jkoshy 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 	${TOOL_M4} -I${SRCDIR} -D SRCDIR=${SRCDIR} ${M4FLAGS} \
     14 		elfdefinitions.m4 > ${.TARGET}
     15 
     16 .PHONY:	all clean clobber depend
     17 
     18 install: .PHONY ${HOST_INCSDIR} .WAIT includes
     19 
     20 ${HOST_INCSDIR}:
     21 	${_MKTARGET_INSTALL}
     22 	${HOST_INSTALL_DIR} ${HOST_INCSDIR}
     23 
     24 .for _f in ${INCS}
     25 HOST_INCINSTFILES+= ${HOST_INCSDIR}/${_f}
     26 ${HOST_INCSDIR}/${_f}: ${_f}
     27 	${_MKTARGET_INSTALL}
     28 	${HOST_INSTALL_FILE} ${.ALLSRC} ${.TARGET}
     29 .endfor
     30 
     31 includes: .PHONY ${HOST_INCSDIR} .WAIT ${HOST_INCINSTFILES}
     32 
     33 all dependall depend:	${INCS}
     34 
     35 clean clobber:
     36 	rm -f ${INCS}
     37 
     38 cleandepend:
     39 	rm -f ${.OBJDIR}/.depend
     40 
     41 .include <bsd.obj.mk>
     42