Makefile revision 1.13
1# $NetBSD: Makefile,v 1.13 2020/06/21 17:17:01 thorpej Exp $ 2 3.include <bsd.hostinit.mk> 4 5HOSTPROGNAME= ${_TOOL_PREFIX}installboot 6HOST_SRCDIR= usr.sbin/installboot 7 8LIBPROP_INC= ${.CURDIR}/../../common/include 9HOST_CPPFLAGS+= -I${LIBPROP_INC} 10 11HOST_CPPFLAGS+= -I. -I${.CURDIR} -I${.CURDIR}/../mips-elf2ecoff 12HOST_CPPFLAGS+= -I${TOOLDIR}/include/nbinclude 13 14HOST_CPPFLAGS+= -DEVBOARDS_PLIST_BASE=\"${TOOLDIR}\" 15 16LIBPROP_OBJ!= cd ${.CURDIR}/../libprop && ${PRINTOBJDIR} 17LDADD+= -L${LIBPROP_OBJ} -lprop 18 19SHARE_SRCDIR= ${.CURDIR}/../../share 20HOST_SHAREDIR= ${TOOLDIR}/share 21 22BOARDDB_SRCDIR= ${SHARE_SRCDIR}/installboot 23BOARDDB_DSTDIR= ${HOST_SHAREDIR}/installboot 24 25BOARDDBS= evbarm evbmips 26 27.for _d in ${BOARDDBS} 28install: .PHONY install.${_d}.boards.plist 29install.${_d}.boards.plist: .PHONY ${BOARDDB_DSTDIR}/${_d}/boards.plist 30${BOARDDB_DSTDIR}/${_d}/boards.plist: ${BOARDDB_SRCDIR}/${_d}/boards.plist 31 ${_MKTARGET_INSTALL} 32 ${HOST_INSTALL_DIR} ${HOST_SHAREDIR} 33 ${HOST_INSTALL_DIR} ${BOARDDB_DSTDIR} 34 ${HOST_INSTALL_DIR} ${BOARDDB_DSTDIR}/${_d} 35 ${HOST_INSTALL_FILE} -m ${NONBINMODE} ${.ALLSRC} ${.TARGET} 36.endfor 37 38.include "${.CURDIR}/../Makefile.nbincludes" 39.include "${.CURDIR}/../Makefile.host" 40 41