Environment Variables to Control the Make Process
There are four ways to set the variables that control the Make process:
- Use environmental variables, and call Make with the -e option:
$ export MP_CC=/opt/microchip/xc16/v1.21/bin/xc16-gcc
$ make -e - Set the variables in the command line when calling Make. For example:
$ make MP_CC=/opt/microchip/xc16/v1.21/bin/xc16-gcc - Create a nbproject/Makefile-local-$conf.mk for the machine in use. Include the values of the environmental variables in it.
- Let prjMakefilesGenerator create a custom nbproject/Makefile-local-$conf.mk file for the machine.
Variables that are not overridden will take the values of the macros in the Makefile. The Makefile contains a section that has all of the default values for these macros. So, override whatever you need and the rest will be taken care of by the default values in the Makefile.
When a path is to be supplied in Windows®, it must be entered like this:
"C:/Program\ Files/Microchip/xc16/bin/xc16-gcc.exe"
Use "/" for directory separators, and escape space characters with "\". Finally, quote the whole thing when you run it from the command line.