Home | History | Annotate | Line # | Download | only in common
      1 # $NetBSD: Makefile,v 1.3 2024/03/26 16:52:03 christos Exp $
      2 
      3 .include <bsd.hostinit.mk>
      4 
      5 SRCDIR=	${.CURDIR}/../../../external/bsd/elftoolchain/dist/common
      6 
      7 .PATH:	${SRCDIR}
      8 
      9 SUBDIR=		sys
     10 
     11 INCS=		elfdefinitions.h
     12 HOST_INCSDIR=	${TOOLDIR}/include
     13 
     14 HOST_INCINSTFILES=
     15 .for _f in ${INCS}
     16 HOST_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 
     24 install: .PHONY includes
     25 
     26 includes: .PHONY ${HOST_INCSDIR} .WAIT ${HOST_INCINSTFILES}
     27 
     28 all depend clean clobber:
     29 
     30 cleandepend:
     31 	rm -f ${.OBJDIR}/.depend
     32 
     33 .include <bsd.subdir.mk>
     34