Hi all, I'm after some help with Makefiles. I have very little experience with these things...
I am looking for a way to make a -D option depend on the command-line- specified target. Eg: 'make foo' calls 'cc -Dfoo [files]' 'make bar' calls 'cc -Dbar [files]' Note that for each target, all the source files (except one) are the same. I could separate the code into separate directories and symlink the common files but thats a bit messy. The reason I'm doing it this way is that I don't want to require an edit of the Makefile (or any source files) to build two slightly different versions of the same code. Is this easy/possible to do? Cheers, - Dave http://www.digistar.com/~dmann/ (out of date)
