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 #--------------------------------------------------------------------------
64 #--------------------------------------------------------------------------
69 JOYS = apple2-stdjoy.joy
73 TGIS = apple2-40-40-16.tgi apple2-280-192-6.tgi
75 #--------------------------------------------------------------------------
80 all: $(OBJS) $(EMDS) $(JOYS) $(SERS) $(TGIS)
82 ../runtime/zeropage.o:
83 $(MAKE) -C $(dir $@) $(notdir $@)
86 @$(RM) $(OBJS) $(EMDS:.emd=.o) $(JOYS:.joy=.o) $(SERS:.ser=.o) $(TGIS:.tgi=.o)
89 @$(RM) $(EMDS) $(JOYS) $(SERS) $(TGIS)