Re: [cc65] automatic generation of makefile dependencies

From: <silverdr1wfmh.org.pl>
Date: 2011-04-28 20:50:05
On 2011-04-27, at 08:25, Greg King wrote:

>> However, I tried adapting the Makefile to my NES project;
>> and, noticed a couple of things:
>>
>> 1) I need to link an external library in; but, wasn't able to do that
>> by modifying LDFLAGS (foo.lib needs to come after all the object  
>> files
>> when linking). I fixed that by moving the $(LDFLAGS) to the end of
>> this line:
>>
>> $(PROGRAM): $(OBJECTS)
>> $(CC) -t $(TARGETS) -o $@ $^ $(LDFLAGS)
>
> "THE Makefile" should be given a LDLIBS variable for that purpose.

Yeah - that's what came to my mind as well. Also just-in-case some  
other options do/will require fixed/specific position on the command  
line..

-- 
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 Thu Apr 28 20:50:13 2011

This archive was generated by hypermail 2.1.8 : 2011-04-28 20:50:16 CEST