]> git.sur5r.net Git - cc65/commitdiff
New apple2enh target library
authorcuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Sat, 13 Mar 2004 23:25:35 +0000 (23:25 +0000)
committercuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Sat, 13 Mar 2004 23:25:35 +0000 (23:25 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@2927 b7a2c559-68d2-44c3-8de9-860c34a00d81

libsrc/Makefile

index dfd659e886c98ad58ec3919328db968cd9dd9972..86c44b206ce20fa14beb9b5511ebe520cc49d93d 100644 (file)
@@ -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