Just wondering how I can get the time the program was compiled into my code dynamically, I'm guessing it'll be through my makefile somehow but my Google-fu has failed today. Any help would be great!
(GCC + make *only*)
I dont know whether i understood your question correctly.
Still this is what I think,
1. Write a source file or makefile to generate a header file at the time of compilation
2. Include the current time as a macro to that header file
3. In your source code, include that header file and print the macro.