I took the suggestions and wrote some code using that macro, discovering that it is not recursive. The first instance of CONDITIONALPROC is replaced by the contents of the define and that ends the replacement. The macro creates three lines of code and the final contains a procedure name prefixed with CONDITIONALPROC. The purpose of that is so that a custom scripting language can easily recognize the function name and parse it out. We do telemetry work and that custom script language is used to translate between various file formats.
I found it complicated because I still have not figured out how to get the Makefile to keep the preprocessor output somewhere. And that is complicated by multiple include files from multiple directories.
Maybe this question will help me.
The makefile and the code that it builds is located here:
Code:
/users/home/bkelly/repo/MCS/src/MCC/TAM/main
The last line in the Makefile is:
Code:
include $(ROOT_DIR)/make.rules
file make.rules is located here:
Code:
/users/home/bkelly.repo/MCS/make.rules
So to enable a local build I think I need to set something like an environment variable, name it ROOT_DIR and its value should be something like:
Code:
/users/home/bkelly/repo/MCS
So I did
and saw that then I tried this command line entry
Code:
setenv ROOT_DIR /users/home/bkelly/repo/MCS
the reply was:
Code:
bash: setenv: command not found.
What am I not recognizing?