Subject: Re: CVS commit: basesrc
To: Simon J. Gerraty <sjg@quick.com.au>
From: Todd Whitesel <toddpw@best.com>
List: tech-userlevel
Date: 03/29/2001 23:17:24
> I'd look at doing something like this:
> 
> .ifdef CROSS_COMPILE
> HOST_TOOL=host-${PROG}
> 
> host-${PROG}:	${OBJS:S,.o,.lo,}
> 	${HOST_LINK.c} -o ${.TARGET} ${.ALLSRC}
> .endif
> HOST_TOOL?=${PROG}

I like this direction, however don't stop at "host-${PROG}".

Use "${MACHINE}-${PROG}" or even "${MACHINE_ARCH}-${PROG}" if that works...

Note the GNU "way" would be:
	HOST_TOOL=${MACHINE_ARCH}-unknown-netbsd${UNAME_RELEASE}-${PROG}

Todd Whitesel
toddpw @ best.com