2 # makefile for CC65 runtime library
9 @$(AS) -o $@ $(AFLAGS) $(*).s
12 @$(AS) -g -o $@ $(AFLAGS) $<
14 %.emd: %.o ../runtime/zeropage.o
15 @$(LD) -t module -o $@ $^
17 %.tgi: %.o ../runtime/zeropage.o
18 @$(LD) -t module -o $@ $^
36 TGIS = c64-320-200-2.tgi
40 #--------------------------------------------------------------------------
43 all: $(OBJS) $(EMDS) $(TGIS)
45 ../runtime/zeropage.o:
46 $(MAKE) -C $(dir $@) $(notdir $@)
50 @rm -f $(OBJS) $(EMDS:.emd=.o) $(TGIS:.tgi=.o)