Martin Husemann <mar...@duskware.de> 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.