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 %.tgi: %.o ../runtime/zeropage.o
24 @$(LD) -t module -o $@ $^
26 #--------------------------------------------------------------------------
57 #--------------------------------------------------------------------------
62 JOYS = apple2-stdjoy.joy
66 TGIS = apple2-40-40-16.tgi apple2-280-192-6.tgi
68 #--------------------------------------------------------------------------
73 all: $(OBJS) $(EMDS) $(JOYS) $(SERS) $(TGIS)
75 ../runtime/zeropage.o:
76 $(MAKE) -C $(dir $@) $(notdir $@)
79 @$(RM) $(OBJS) $(EMDS:.emd=.o) $(JOYS:.joy=.o) $(SERS:.ser=.o) $(TGIS:.tgi=.o)
82 @$(RM) $(EMDS) $(JOYS) $(SERS) $(TGIS)