[cc65] errors when compiling cc65 with new target

From: Andy Dannelley <andyda1mac.com>
Date: 2005-05-13 18:32:01
I have bee trying to compile cc65 with a new target, the AIM 65.

I have successfully compiled the standard version of 2.10.1 with no  
problems so I thought I would add the AIM 65 as a target.


Here's that I've done, each time I compile I look at everything and try  
to find what I may have left out, and I found some, but now I can't  
find anymore, below is a list of what I've done, I hope you can maybe  
see what I've left out, any help is much appreciated.

Thanks,

AndyD

 From a previous posting in response to a question on the topic,
Uz said "Absolutely necessary are the linker configuration  
(platform.cfg) and the
startup code (crt0.s, assembled to platform.o). Provided that you have  
these
two files, you can write programs that run on the platform. You may use  
any of
the existing platforms as example, I'm usually suggesting the c16."

So I tried to do that.

It seems to compile OK until I get to the library portion of the  
compile, and here are he errors I get when compiling --

cd libsrc ; make
for tgt in apple2 aim65 atari atmos c16 c128 c64 cbm510 cbm610 geos nes  
pet plus4 supervision vic20; do		\
     make clean "$tgt"lib || exit 1;	\
done

(correct outpoput for apple2 was here)

for i in aim65 common runtime conio dbg zlib; do \
     AS=../../src/ca65/ca65 \
     CC=../../src/cc65/cc65 \
     LD=../../src/ld65/ld65 \
     AFLAGS="-t aim65 -I../../asminc" \
     CFLAGS="-Osir -g -T -t aim65 --forget-inc-paths -I.  
-I../../include" \
     make -C $i || exit 1; \
     ../src/ar65/ar65 a aim65.lib $i/*.o;\
done
ca65: Invalid target name: `aim65'
make[2]: *** [break.o] Error 1
make[1]: *** [aim65lib] Error 1
make: *** [all] Error 1
### execution of cd failed, exit code 2
Failed: compiling cc65-2.10.1a-0 failed



Here's what I have included or modified in the source:

include:  aim65.h escentially a dummy file with no defines yet

libsrc:  aim65 directory (folder) contining: aim65.inc, break.s,  
cclear.s, cgetc.s, clrscr.s, cputc.s
crt0.s, cvline.s, getargs.s, kbhit.s, randomize.s, sysuname.s and the  
modified makefile to reflect the
actual files used and modifications to include, .include   	"aim65.inc"  
where necessary.

The makefile for libsrc has the following for aim65:

#----------------------------------------------------------------------- 
------
# AIM 65

aim65lib:
	for i in aim65 common runtime conio dbg zlib; do \
	    AS=$(AS) \
	    CC=$(CC) \
	    LD=$(LD) \
	    AFLAGS="-t aim65 -I../../asminc" \
	    CFLAGS="-Osir -g -T -t aim65 --forget-inc-paths -I.  
-I../../include" \
	    $(MAKE) -C $$i || exit 1; \
	    $(AR) a aim65.lib $$i/*.o;\
	done
	mv aim65/crt0.o aim65.o
	
	
in the /src/ld65 i have included and aim65.inc
	
In 	/src/ld65/cfg I have the aim65.cfg
	
In	/src/ld65 modifications to makefile.

----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Fri May 13 18:32:17 2005

This archive was generated by hypermail 2.1.8 : 2005-05-13 18:32:21 CEST