2 # makefile for CC65 runtime library
8 #--------------------------------------------------------------------------
13 @$(AS) -o $@ $(AFLAGS) $(*).s
16 @$(AS) -g -o $@ $(AFLAGS) $<
18 %.emd: %.o ../runtime/zeropage.o
19 @$(LD) -t module -o $@ $^
21 %.joy: %.o ../runtime/zeropage.o
22 @$(LD) -t module -o $@ $^
24 %.ser: %.o ../runtime/zeropage.o
25 @$(LD) -t module -o $@ $^
27 %.tgi: %.o ../runtime/zeropage.o
28 @$(LD) -t module -o $@ $^
30 #--------------------------------------------------------------------------
54 #--------------------------------------------------------------------------
57 EMDS = c64-georam.emd c64-ram.emd c64-ramcart.emd c64-reu.emd c64-vdc.emd
63 TGIS = c64-320-200-2.tgi
65 #--------------------------------------------------------------------------
70 all: $(OBJS) $(EMDS) $(JOYS) $(SERS) $(TGIS)
72 ../runtime/zeropage.o:
73 $(MAKE) -C $(dir $@) $(notdir $@)
76 @rm -f $(OBJS) $(EMDS:.emd=.o) $(JOYS:.joy=.o) $(SERS:.ser=.o) $(TGIS:.tgi=.o)
79 @rm -f $(EMDS) $(JOYS) $(SERS) $(TGIS)