2 # makefile for CC65 runtime library (C16)
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 #--------------------------------------------------------------------------
44 #--------------------------------------------------------------------------
53 #--------------------------------------------------------------------------
56 all: $(OBJS) $(EMDS) $(JOYS) $(TGIS)
58 ../runtime/zeropage.o:
59 $(MAKE) -C $(dir $@) $(notdir $@)
62 @rm -f $(OBJS) $(EMDS:.emd=.o) $(JOYS:.joy=.o) $(TGIS:.tgi=.o)