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 #--------------------------------------------------------------------------
34 #--------------------------------------------------------------------------
45 #--------------------------------------------------------------------------
50 all: $(OBJS) $(EMDS) $(JOYS) $(SERS) $(TGIS)
52 ../runtime/zeropage.o:
53 $(MAKE) -C $(dir $@) $(notdir $@)
56 @$(RM) $(OBJS) $(EMDS:.emd=.o) $(JOYS:.joy=.o) $(SERS:.ser=.o) $(TGIS:.tgi=.o)
59 @$(RM) $(EMDS) $(JOYS) $(SERS) $(TGIS)