From c7eaae5d07be51851901d8e38fb906d227db66c5 Mon Sep 17 00:00:00 2001 From: cuz Date: Sat, 13 Mar 2004 23:25:35 +0000 Subject: [PATCH] New apple2enh target library git-svn-id: svn://svn.cc65.org/cc65/trunk@2927 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- libsrc/Makefile | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/libsrc/Makefile b/libsrc/Makefile index dfd659e88..86c44b206 100644 --- a/libsrc/Makefile +++ b/libsrc/Makefile @@ -14,6 +14,7 @@ LD = ../../src/ld65/ld65 # List of all targets ALLTARGETS = apple2 \ + apple2enh \ atari \ atmos \ c16 \ @@ -55,6 +56,41 @@ apple2lib: cp apple2/apple2-40-40-16.tgi a2.lo.tgi 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