Quote:
Originally Posted by xoham
Hello,
I'd like to be able to set variables to certain values depending on what the initial build target is:
> make abc
... set variables appropriate for building abc
> make cde
... set variables appropriate for building cde
The reason I want to do this is to share common functions in the makefile.
Any help is appreciated, thanks.
|
Not a problem...alot of programs out there have install/configure scripts. Have you looked at any of them?
I'd set up a "configure" script, and have it take a command line variable, and spit out the Makefile accordingly. Post what you've written so far, and where you're getting stuck, and we can help.