Re: [cc65] Please critique this makefile

From: Oliver Schmidt <ol.sc1web.de>
Date: 2010-04-26 17:04:09
Hi,

> I see But what if it is actually present in the system environment and valid? (e.g. because CC65 is installed in a non-default location)? I think it is OK not to force users who have it already present in the system, to reenter it here.

I see. In general that can be archieved be using ?= . But I'm unsure
if it makes too much sense here...

> Yeah - thanks for the core job on that!

Thanks :-)

> Now only the asm dependencies... :-)

Let's see if and what Uz comes up with...

> I was thinking about "rm $(PROGRAM)* but I still didn't like it. I would be rather looking for a way to determine what is generated by various targets and remove only those,

Not really feasable with at least somewhat reasonable effort (aka size
of Makefile) from my perspective...

> but when thinking more, I believe it could even delete every possible files, even if they are not generated in the current setup / with current options.

Likely the best compromise...

>> LDFLAGS = -m $@.map

> Yup, I know.

Then you are certainly far beyond the average Makefile author ;-)

Regards,
Oliver
----------------------------------------------------------------------
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 Apr 26 17:04:16 2010

This archive was generated by hypermail 2.1.8 : 2010-04-26 17:04:18 CEST