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 %.tgi: %.o ../runtime/zeropage.o
21 @$(LD) -t module -o $@ $^
23 #--------------------------------------------------------------------------
46 #--------------------------------------------------------------------------
53 #--------------------------------------------------------------------------
58 all: $(OBJS) $(EMDS) $(TGIS)
60 ../runtime/zeropage.o:
61 $(MAKE) -C $(dir $@) $(notdir $@)
64 @rm -f $(OBJS) $(EMDS:.emd=.o) $(TGIS:.tgi=.o)
67 @rm -f $(EMDS) $(TGIS)