2 # makefile for CC65 runtime library
7 #--------------------------------------------------------------------------
12 @$(AS) -o $@ $(AFLAGS) $(*).s
15 @$(AS) -g -o $@ $(AFLAGS) $<
17 %.emd: %.o ../runtime/zeropage.o
18 @$(LD) -t module -o $@ $^
20 %.joy: %.o ../runtime/zeropage.o
21 @$(LD) -t module -o $@ $^
23 %.ser: %.o ../runtime/zeropage.o
24 @$(LD) -t module -o $@ $^
26 %.tgi: %.o ../runtime/zeropage.o
27 @$(LD) -t module -o $@ $^
29 #--------------------------------------------------------------------------
55 #--------------------------------------------------------------------------
58 EMDS = c128-georam.emd c128-ram.emd c128-ramcart.emd c128-reu.emd c128-vdc.emd
60 JOYS = c128-ptvjoy.joy c128-stdjoy.joy
62 SERS = c128-swlink.ser
64 TGIS = c128-640-200-2.tgi c128-640-480-2.tgi
66 #--------------------------------------------------------------------------
71 all: $(OBJS) $(EMDS) $(JOYS) $(SERS) $(TGIS)
73 ../runtime/zeropage.o:
74 $(MAKE) -C $(dir $@) $(notdir $@)
77 @$(RM) $(OBJS) $(EMDS:.emd=.o) $(JOYS:.joy=.o) $(SERS:.ser=.o) $(TGIS:.tgi=.o)
81 @$(RM) $(EMDS) $(JOYS) $(SERS) $(TGIS)