Include in compile
Just wondering if anybody can point me in the right direction.
I have a program which I want to choose at compile time which
main file to use (ie main.c || analysis_main.c)
Can I use this in an ifdef# statement or is this a job for my makefile.
Any information appreciated.
Probably it would be best to use a make file for that. Something like:
"make" or "make analysis"
So that the one uses one .c file and the other uses the second.
I suppose you could do something with preprocessor stuff, but it would be fairly ugly.