Subject: Re: Problems with system makefiles and optimization flags
To: None <tech-toolchain@netbsd.org>
From: ITOH Yasufumi <itohy@netbsd.org>
List: tech-toolchain
Date: 11/07/2002 14:13:37
In article <20021106193103.D8342@dhcp7.wlan.shagadelic.org>
thorpej@wasabisystems.com writes:

> What I'd like to do is add a .CPU_FLAGS variable that <sys.mk> and
> the kernel Makefiles can use to add these flags to CFLAGS and AFLAGS.
> The . prefix is to keep it out of the namespace that random 3rd party
> Makefiles might use.  I would also like to remove the DBG variable
> from <sys.mk>.
> 
> Comments?

How about

.CFLAGS.${MACHINE_ARCH}	?= ...
.CFLAGS.${MACHINE}	?= ${.CFLAGS.${MACHINE_ARCH}}
.CFLAGS.HOST		?= ${.CFLAGS.${_HOST_ARCH}}
CFLAGS			+= ${.CFLAGS.${MACHINE}}
HOST_CFLAGS		+= ${.CFLAGS.HOST}

and so on, to make per-port setting easier?
-- 
ITOH Yasufumi