Hello Grass Developers,
I would like to be able to run gmake5 for different architectures from one
source directory. GRASS is almost set up for this, except for the
src/include/config.h file. The config.h file is for the last configured
architecture. Can config.h be placed in an architecture-specific directory?
One way to make multiple config.h files would be:
Put config.h under $(SRC)/include/include.$(ARCH) instead of
$(SRC)/include
In head.$(ARCH): add "CONFIG_INCDIR=include/include.ARCH" (where
ARCH is filled in, as with GISBASE)
In make.mid: add "-I$(SRC)/$(CONFIG_INCDIR)" to CFLAGS
Does anyone have a better method?