Makefile.host revision 1.3
11.3Sjmc# $NetBSD: Makefile.host,v 1.3 2001/10/22 05:30:47 jmc Exp $ 21.1Stv 31.1Stv# Preload <bsd.obj.mk> to set up obj rules (with proper ${.CURDIR}). 41.1Stv.include <bsd.obj.mk> 51.1Stv 61.1Stv# Save value of .CURDIR, and reassign it to the "real" source directory. 71.1Stv_CURDIR:= ${.CURDIR} 81.1Stv.CURDIR:= ${_CURDIR}/../../${HOST_SRCDIR} 91.1Stv 101.1Stv# Set HOSTPROG as a flag to the real program not to include <bsd.prog.mk>. 111.1StvHOSTPROG?= ${PROG} 121.1Stv 131.1Stv# Pull in the "real" Makefile. 141.1Stv.include "${.CURDIR}/Makefile" 151.3Sjmc.if exists(${.CURDIR}/../Makefile.inc) 161.3Sjmc.include "${.CURDIR}/../Makefile.inc" 171.3Sjmc.endif 181.1Stv 191.1Stv# Set up the environment for <bsd.hostprog.mk>. 201.1StvHOSTPROGNAME?= ${HOSTPROG} 211.1StvHOST_BINDIR?= ${TOOLDIR}/bin 221.1StvHOST_CPPFLAGS:= -include ${_CURDIR}/../compat/compat_netbsd.h -Wall \ 231.1Stv ${HOST_CPPFLAGS} ${CPPFLAGS} 241.1StvMKMAN= no 251.1StvSRCS?= ${PROG}.c 261.1StvSRCS+= ${HOST_SRCS} nb_progname.c 271.1StvTIMESTAMP?= ${HOST_BINDIR}/${HOSTPROGNAME} 281.1Stv.undef LINKS 291.1Stv 301.1Stv.PATH: ${.CURDIR} ${_CURDIR}/../compat 311.1Stv${TIMESTAMP}: ${.CURDIR}/Makefile 321.1Stv 331.1Stv# Include the local definitions, and then <bsd.hostprog.mk>. 341.1Stv.include "${_CURDIR}/../Makefile.inc" 351.1Stv.include <bsd.hostprog.mk> 361.1Stv 371.1Stv# Install rule. 381.2Sjmcrealinstall: install.host install.files 391.1Stvinstall.host: 401.1Stv mkdir -p ${HOST_BINDIR} 411.1Stv ${INSTALL} ${RENAME} ${PRESERVE} ${COPY} -m ${BINMODE} \ 421.1Stv ${HOSTPROG} ${HOST_BINDIR}/${HOSTPROGNAME} 431.2Sjmc 441.2Sjmc.if defined(HOSTFILES) 451.2Sjmcinstall.files: 461.2Sjmc mkdir -p ${HOST_FILESDIR} 471.2Sjmc for i in ${HOSTFILES}; \ 481.2Sjmc do \ 491.2Sjmc ${INSTALL} ${RENAME} ${PRESERVE} ${COPY} -m ${NONBINMODE} \ 501.2Sjmc ${.CURDIR}/$$i ${HOST_FILESDIR}/$$i; \ 511.2Sjmc done 521.2Sjmc.else 531.2Sjmcinstall.files: 541.2Sjmc.endif 551.2Sjmc 56