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 #--------------------------------------------------------------------------
55 #--------------------------------------------------------------------------
60 JOYS = apple2-stdjoy.joy
64 TGIS = apple2-40-40-16.tgi apple2-280-192-6.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)
80 @$(RM) $(EMDS) $(JOYS) $(SERS) $(TGIS)