I’ve been playing with makefiles for more than five years now and I’m just trying to do with Particle what I’m doing with any of the other popular boards.
I just want to use the local build in command line and set a variable MY_IDE=310
so the tools —gcc, g++ et al.— are called with -DMY_IDE=310.
For other boards, I’m using makefiles which pass variables with their value to the compiler through -DVARIABLE=VALUE.
This is part of embedXcode, a template for embedded computing on Xcode.
I’d like to leverage the makefiles provided by Particle, but there’s only one option missing. Just add another variable to the make invocation as described at this page, e.g. VARIABLE_NAME=VARIABLE VARIABLE_VALUE=VALUE.