How do I use the C preprocessor to make a substitution with an environment variable
If I recall correctly, you can use the command line parameter -D
with gcc to #define
a value at compile time.
i.e.:
$ gcc file.c -o file -D"THE_VERSION_STRING=${THE_VERSION_STRING}"