Re: [cc65] Please critique this makefile

From: <silverdr1wfmh.org.pl>
Date: 2010-04-21 23:49:33
On 2010-04-21, at 22:12, Oliver Schmidt wrote:

>>
>> AFAIR that was the path I have taken but then things still didn't  
>> work as
>> expected (dependencies). Since you replied, I think I shall have to  
>> get back
>> to it. Maybe we can work something out!
>
> Most of that approach is already implemented in the sample Makefile I
> created for the cc65 docs. The sed command "s!.s:!.o:!" replaces the
> .s file with .o file in the dependency file. So GNU make never knows
> about the .s intermediate files...

That's why I asked you for help on that :-) I see you managed to get  
further with the auto-dependencies, and while I don't recall now where  
exactly I hit the wall during my previous attempts, seeing this  
example gave me the impulse to drag the old problem back to the surface.

>> [...]
>> Yes, both types of sources the CC65 (as package) supports. But by
>> "universal" I also mean that I can have the same Makefile for  
>> virtually all
>> simple (or even not so simple but not requiring some non-cc65  
>> tools) CC65
>> projects, as long as I keep the project (directory) structure  
>> consistent.
>>
>> Something like:
>>
>> project/
>>        |
>>        + objects/
>>        |
>>        + resources/
>>        |
>>        - sources/
>>
>> I think this could set a standard starting point for CC65 projects.
>
> I see. This "just do what I mean with everything present" approach
> isn't exactly popular AFAIK but seems in fact appealing for the type
> of projects we're talking about here.

Exactly my thought. I was even thinking about a small tool a'la SAS/C  
for setting up the standard project directory.

>
> Just one more question: What do you refer to with "resources"?
>

This is where I usually keep non-textual assets/data files, sometimes  
special includes, etc. Usually those should be processed e.g. as  
RODATA. I didn't mean the GEOS resource files here as those are  
textual "sources", which reminds me that taking this type of source  
files automatically into account would also be nice.

Cordially,
-- 
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 Wed Apr 21 23:49:41 2010

This archive was generated by hypermail 2.1.8 : 2010-04-21 23:49:44 CEST