NetBSD-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: [cross]compiling world and mk.conf
Martin Husemann <martin%duskware.de@localhost> writes:
> Alternatively you can use conditionals in mk.conf, like:
>
> .if ${MACHINE} == "sparc"
> CFLAGS+= -mcpu=v8 -mtune=supersparc
> .endif
>
> or
>
> .if ${MACHINE_ARCH} != shark
> MKKDEBUG=yes
> .endif
I would strongly recommend the .if method and having one file. I would
expect things you want are mostly the same and only slightly different.
Note also that you can .include from mk.conf and you can do that from
within an .if.
Home |
Main Index |
Thread Index |
Old Index