1
0
mirror of https://github.com/cc65/cc65.git synced 2024-12-25 17:29:50 +00:00

New apple2enh target library

git-svn-id: svn://svn.cc65.org/cc65/trunk@2927 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz 2004-03-13 23:25:35 +00:00
parent 1b588fd831
commit c7eaae5d07

View File

@ -14,6 +14,7 @@ LD = ../../src/ld65/ld65
# List of all targets # List of all targets
ALLTARGETS = apple2 \ ALLTARGETS = apple2 \
apple2enh \
atari \ atari \
atmos \ atmos \
c16 \ c16 \
@ -55,6 +56,41 @@ apple2lib:
cp apple2/apple2-40-40-16.tgi a2.lo.tgi cp apple2/apple2-40-40-16.tgi a2.lo.tgi
cp apple2/apple2-stdjoy.joy a2.stdjoy.joy cp apple2/apple2-stdjoy.joy a2.stdjoy.joy
#-----------------------------------------------------------------------------
# Apple //e
apple2enhlib:
for i in apple2 apple2enh common runtime conio dbg em joystick tgi zlib; do \
AS=$(AS) \
CC=$(CC) \
LD=$(LD) \
AFLAGS="-t apple2enh -I../../asminc" \
CFLAGS="-Osir -g -T -t apple2enh --forget-inc-paths -I. -I../../include" \
$(MAKE) -C $$i || exit 1; \
done
for i in common runtime conio dbg em joystick tgi zlib; do \
$(AR) a apple2enh.lib $$i/*.o;\
done
for objfile in apple2/*.o; do \
basefile=`basename $$objfile .o`; \
if [ -f ../apple2enh/$$basefile ]; then \
$(AR) a apple2enh.lib ../apple2enh/$$basefile; \
else \
$(AR) a apple2enh.lib $$objfile; \
fi \
done
for objfile in apple2enh/*.o; do \
basefile=`basename $$objfile .o`; \
if [ \! -f ../apple2/$$basefile ]; then \
$(AR) a apple2enh.lib $$objfile; \
fi \
done
mv apple2/crt0.o apple2enh.o
cp apple2/apple2-lc.emd a2e.lc.emd
cp apple2/apple2-280-192-6.tgi a2e.hi.tgi
cp apple2/apple2-40-40-16.tgi a2e.lo.tgi
cp apple2/apple2-stdjoy.joy a2e.stdjoy.joy
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
# Atari # Atari