I'm working on a project involving identical code on multiple, networked processors. I could use some sort of version info to keep track of how up to date the code is in each processor.
What I'd like is is a variable generated by the compiler that can be inserted in the code (as a constant) then read and displayed by the processor. Said variable would be incremented every time there is a successful compile.
I'm not interested in a full RCS.
I'm developing on a Mac using CrossPack-AVR, gcc 4.3.3 and make, from the command line.