NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: [cross]compiling world and mk.conf



Am 08.11.23 um 13:20 schrieb Greg Troxel:
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.


Thanks very much to both of you! I'll give the .if a go and see, how far I get.
It's not, that I have dozens of architectures. Unfortunately.

Great help, as I am not (yet?) too much into the make syntax.

Ede


Home | Main Index | Thread Index | Old Index