# List of all targets
ALLTARGETS = apple2 \
apple2enh \
- atari \
- atmos \
+ atari \
+ atmos \
c16 \
- c128 \
- c64 \
- cbm510 \
- cbm610 \
- geos \
+ c128 \
+ c64 \
+ cbm510 \
+ cbm610 \
+ geos \
lynx \
nes \
- pet \
- plus4 \
+ pet \
+ plus4 \
supervision \
vic20
apple2lib:
for i in apple2 common runtime conio dbg em joystick mouse serial tgi zlib; do \
- $(MAKE) SYS=apple2 -C $$i || exit 1; \
- $(AR) a apple2.lib $$i/*.o;\
+ $(MAKE) SYS=apple2 -C $$i || exit 1; \
+ $(AR) a apple2.lib $$i/*.o || exit 1; \
done
cp apple2/apple2-auxmem.emd a2.auxmem.emd
cp apple2/apple2-stdjoy.joy a2.stdjoy.joy
fi \
#-----------------------------------------------------------------------------
-# Apple //e
+# enhanced Apple //e
apple2enhlib:
for i in apple2enh common runtime conio dbg em joystick mouse serial tgi zlib; do \
$(MAKE) SYS=apple2enh -C $$i || exit 1; \
- $(AR) a apple2enh.lib $$i/*.o;\
+ $(AR) a apple2enh.lib $$i/*.o || exit 1; \
done
cp apple2enh/apple2-auxmem.emd a2e.auxmem.emd
cp apple2enh/apple2-stdjoy.joy a2e.stdjoy.joy
cp apple2enh/apple2-ssc.ser a2e.ssc.ser
cp apple2enh/apple2-280-192-8.tgi a2e.hi.tgi
cp apple2enh/apple2-40-48-16.tgi a2e.lo.tgi
+ if [ -d apple2enh/extra ]; then \
+ for i in apple2enh/extra/*.o; do \
+ cp $$i apple2enh-`basename $$i`; \
+ done \
+ fi \
#-----------------------------------------------------------------------------
# Atari
atarilib:
for i in atari common runtime conio dbg em joystick tgi zlib; do \
- $(MAKE) SYS=atari -C $$i || exit 1; \
- $(AR) a atari.lib $$i/*.o;\
+ $(MAKE) SYS=atari -C $$i || exit 1; \
+ $(AR) a atari.lib $$i/*.o || exit 1; \
done
cp atari/atari-stdjoy.joy ataristd.joy
cp atari/atari-multijoy.joy atarimj8.joy
+ cp atari/atari-10.tgi atari10.tgi
+ cp atari/atari-10p2.tgi atr10p2.tgi
+ cp atari/atari-11.tgi atari11.tgi
+ cp atari/atari-14.tgi atari14.tgi
+ cp atari/atari-15.tgi atari15.tgi
+ cp atari/atari-15p2.tgi atr15p2.tgi
+ cp atari/atari-3.tgi atari3.tgi
+ cp atari/atari-4.tgi atari4.tgi
+ cp atari/atari-5.tgi atari5.tgi
+ cp atari/atari-6.tgi atari6.tgi
+ cp atari/atari-7.tgi atari7.tgi
+ cp atari/atari-8.tgi atari8.tgi
+ cp atari/atari-8p2.tgi atr8p2.tgi
+ cp atari/atari-9.tgi atari9.tgi
+ cp atari/atari-9p2.tgi atr9p2.tgi
+
#-----------------------------------------------------------------------------
# Oric Atmos
atmoslib:
for i in atmos common conio runtime em joystick tgi zlib; do \
- $(MAKE) SYS=atmos -C $$i || exit 1; \
- $(AR) a atmos.lib $$i/*.o;\
+ $(MAKE) SYS=atmos -C $$i || exit 1; \
+ $(AR) a atmos.lib $$i/*.o || exit 1; \
done
+ cp atmos/*.joy .
cp atmos/*.tgi .
#-----------------------------------------------------------------------------
c16lib:
for i in c16 cbm common runtime conio dbg em joystick tgi zlib; do \
- $(MAKE) SYS=c16 -C $$i || exit 1; \
- $(AR) a c16.lib $$i/*.o;\
+ $(MAKE) SYS=c16 -C $$i || exit 1; \
+ $(AR) a c16.lib $$i/*.o || exit 1; \
done
cp c16/*.joy .
cp c16/*.emd .
c64lib:
for i in c64 cbm common runtime conio dbg em joystick mouse serial tgi zlib; do \
$(MAKE) SYS=c64 -C $$i || exit 1; \
- $(AR) a c64.lib $$i/*.o;\
+ $(AR) a c64.lib $$i/*.o || exit 1; \
done
cp c64/*.emd .
cp c64/*.joy .
c128lib:
for i in c128 cbm common runtime conio dbg em joystick mouse serial tgi zlib; do \
$(MAKE) SYS=c128 -C $$i || exit 1; \
- $(AR) a c128.lib $$i/*.o;\
+ $(AR) a c128.lib $$i/*.o || exit 1; \
done
cp c128/*.emd .
cp c128/*.joy .
cbm510lib:
for i in cbm510 cbm common runtime conio dbg em joystick serial tgi zlib; do \
$(MAKE) SYS=cbm510 -C $$i || exit 1; \
- $(AR) a cbm510.lib $$i/*.o;\
+ $(AR) a cbm510.lib $$i/*.o || exit 1; \
done
cp cbm510/*.emd .
cp cbm510/cbm510-stdjoy.joy cbm510-std.joy
cbm610lib:
for i in cbm610 cbm common runtime conio dbg em joystick serial tgi zlib; do \
$(MAKE) SYS=cbm610 -C $$i || exit 1; \
- $(AR) a cbm610.lib $$i/*.o;\
+ $(AR) a cbm610.lib $$i/*.o || exit 1; \
done
cp cbm610/*.emd .
cp cbm610/cbm610-stdser.ser cbm610-std.ser
CC=../$(CC) \
AS=../$(AS) \
AR=../$(AR) \
- LD=../$(LD) \
- AFLAGS="-t geos -I../../../asminc" \
+ LD=../$(LD) \
+ AFLAGS="-t geos --forget-inc-paths -I../../../asminc" \
CFLAGS="-Osir -g -T -t geos --forget-inc-paths -I. -I../../../include" \
$(MAKE) -C geos || exit 1
for i in em joystick tgi conio common runtime zlib; do \
AS=$(AS) \
LD=$(LD) \
AR=$(AR) \
- AFLAGS="-t geos -I../../asminc" \
+ AFLAGS="-t geos --forget-inc-paths -I../../asminc" \
CFLAGS="-Osir -g -T -t geos --forget-inc-paths -I. -I../../include" \
$(MAKE) SYS=geos -C $$i || exit 1; \
for objfile in $$i/*.o; do \
if [ -f geos/$$objfile ]; then \
- $(AR) a geos.lib geos/$$objfile; \
+ $(AR) a geos.lib geos/$$objfile || exit 1; \
else \
- $(AR) a geos.lib $$objfile; \
+ $(AR) a geos.lib $$objfile || exit 1; \
fi; \
done \
done
lynxlib:
for i in lynx common conio runtime em joystick serial tgi zlib; do \
$(MAKE) SYS=lynx -C $$i || exit 1; \
- $(AR) a lynx.lib $$i/*.o;\
+ $(AR) a lynx.lib $$i/*.o || exit 1; \
done
cp lynx/*.joy .
cp lynx/*.tgi .
neslib:
for i in nes common runtime conio em joystick tgi zlib; do \
$(MAKE) SYS=nes -C $$i || exit 1; \
- $(AR) a nes.lib $$i/*.o;\
+ $(AR) a nes.lib $$i/*.o || exit 1; \
done
cp nes/*.joy .
petlib:
for i in pet cbm common runtime conio dbg em joystick tgi zlib; do \
$(MAKE) SYS=pet -C $$i || exit 1; \
- $(AR) a pet.lib $$i/*.o;\
+ $(AR) a pet.lib $$i/*.o || exit 1; \
done
cp pet/*.joy .
plus4lib:
for i in plus4 cbm common runtime conio dbg em joystick serial tgi zlib; do \
$(MAKE) SYS=plus4 -C $$i || exit 1; \
- $(AR) a plus4.lib $$i/*.o;\
+ $(AR) a plus4.lib $$i/*.o || exit 1; \
done
cp plus4/*.joy .
cp plus4/*.ser .
supervisionlib:
for i in supervision common runtime; do \
$(MAKE) SYS=supervision -C $$i || exit 1; \
- $(AR) a supervision.lib $$i/*.o;\
+ $(AR) a supervision.lib $$i/*.o || exit 1; \
done
#-----------------------------------------------------------------------------
vic20lib:
for i in vic20 cbm common runtime conio dbg em joystick tgi zlib; do \
$(MAKE) SYS=vic20 -C $$i || exit 1; \
- $(AR) a vic20.lib $$i/*.o;\
+ $(AR) a vic20.lib $$i/*.o || exit 1; \
done
cp vic20/*.joy .
.PHONY: clean
clean:
@for i in cbm common conio dbg em joystick mouse runtime serial tgi zlib $(ALLTARGETS); do\
- $(MAKE) -C $$i clean; \
+ $(MAKE) -C $$i clean; \
done
.PHONY: zap
$(MAKE) -C $$i zap; \
done
@$(RM) *.o *.emd *.joy *.lib *.tgi *.ser *.mou
-
-
-