How can I auto-generate a build number at compile time? I want to use this number to report firmware version via uart or display.
Also, how can I have my build automatically name the output file with the build number, or any other macro?
So far I'm using __DATE__ and __TIME__. However, I hate this because the date is not ISO standard! I also don't know how to get this into the file name automagically.