The Makefile explicitly sets CC, CFLAGS and other variables to values that are specific to one toolchain. Instead, it would be better if the user just did source /opt/swi/myToolchain/environment-setup-armv7a-neon-poky-linux-gnueabi to set the variables. There may still be some that need to be set, but this should cover most of them.
The Makefile explicitly sets
CC
,CFLAGS
and other variables to values that are specific to one toolchain. Instead, it would be better if the user just didsource /opt/swi/myToolchain/environment-setup-armv7a-neon-poky-linux-gnueabi
to set the variables. There may still be some that need to be set, but this should cover most of them.