Re: [cc65] automatic generation of makefile dependencies

From: Greg King <greg.king41verizon.net>
Date: 2011-04-27 08:25:27
From: "thefox xofeht"; on Sun, Apr 24, 2011; at 11:09 AM -0400
>
> On Sun, Apr 24, 2011 at 4:28 PM, Oliver Schmidt wrote:
> > http://wiki.cc65.org/doku.php?id=cc65:project_setup
>
> Thanks Oliver & silverdr, that is exactly what I needed!
>
> 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.

----------------------------------------------------------------------
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 27 08:45:08 2011

This archive was generated by hypermail 2.1.8 : 2011-04-27 08:45:10 CEST