Re: [cc65] --create-dep for ca65?

From: <silverdr1wfmh.org.pl>
Date: 2010-05-04 00:38:34
On 2010-05-03, at 22:57, Oliver Schmidt wrote:

> Hi,
> 
> After all these years with cc65 I'm obviously still learning how to use cl65...
> 
> My current proposal for the Universal Makefile looks like this for .c files:
> 
> $(CC) -t $(CC65_TARGET) -c --create-dep $(@:.o=.d) --include-dir
> $(SOURCEDIR) $(CFLAGS) -o $@ $<
> 
> ...and like this for .s files:
> 
> $(CC) -t $(CC65_TARGET) -c --create-dep $(@:.o=.d) --asm-include-dir
> $(SOURCEDIR) $(ASFLAGS) -o $@ $<

That's fine but... it seem to solve only the .INCLUDE issue. The .INCBIN still suffers:

$ cl65 -t c64 -c --create-dep obj/flash.d --asm-include-dir src  -o obj/flash.o src/flash.s

src/flash.s(6): Error: Cannot open include file `../resources/random.bin': No such file or directory
make: *** [obj/flash.o] Error 1

Now I looked into the docs this time and setting the line to something like:

$(CC) -t $(CC65_TARGET) -c --create-dep $(@:.o=.d) --asm-include-dir $(SOURCEDIR) --asm-args --bin-include-dir,$(SOURCEDIR) $(ASFLAGS) -o $@ $<

seem to solve the problem, while of obviously doesn't look too good...

-- 
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 Tue May 4 00:38:40 2010

This archive was generated by hypermail 2.1.8 : 2010-05-04 00:38:43 CEST