Re: [cc65] Universal Makefile: Some advanced magic wanted?

From: <silverdr1wfmh.org.pl>
Date: 2010-05-03 21:10:03
On 2010-05-03, at 10:45, Oliver Schmidt wrote:

> Hi,
> 
> Now that the basics are carved out we could bring in some advanced GNU
> Make stuff - like an abstraction layer for toolchain cmdline options:
> 
> Call the Makefile below i.e. with
> 
> make OPTIONS=optspeed,mapfile
> 
> The two primary benefits are:
> - Users don't have to deal with more or less cryptic compiler/linker flags
> - Users can use the same "high level options" for different toolchains

Hm, this may sound interesting but I am not fully convinced. Why (less important first)?

- I personally never wanted to type more than make [install|clean|..]
- Makefile will get more complex and may possibly become less readable, which may hinder its usability as a starting point for more complex ones
- Those options will have to get hardcoded, and (in case we ever convince Uz to put it into base) will have to be maintained along with the toolset, and in (quite possible) case it gets forgotten/omitted when some changes to the options happen (unlikely but still possible) the users may get unpredictable results of the type you wrote you wanted to avoid

Having written all that - it still looks tempting. And I also like the $(REMOVES) idea a lot. Hm, if it was done in an elegant way with the last two points above in mind... thinking aloud.. like with things being easily configurable somewhere at the top and disabled by default, with clear messages... hm ;-)

-- 
SD!----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Mon May 3 21:10:11 2010

This archive was generated by hypermail 2.1.8 : 2010-05-03 21:10:13 CEST