Hello everybody!
I need help with makefiles. I read almost every guide I found ( I liked very much the GNU Make documentation ) but I need some hints by an experienced programmer.
Can I write a makefile such that I can use a command line like these examples:
Code:
make platform1 debug
make platform2 release
make debug platform3 serialNum
and so on: I would like to be able to specify different options on the command line instead #defining them in my main.h definitions file. Is this possible with make? Or should I do this in another way?
I tried two days, but I can't reach this result. Also I find much behaviors which are not descripted in docs ( some vars loose their value from a 'goal' to another, for example ).
I'm using Cygwin to run GCC.
Thank you very much for your help.