2 # makefile for CC65 runtime library
8 #--------------------------------------------------------------------------
13 @$(AS) -o $@ $(AFLAGS) $(*).s
16 @$(AS) -g -o $@ $(AFLAGS) $<
18 %.emd: %.o ../runtime/zeropage.o
19 @$(LD) -t module -o $@ $^
21 %.tgi: %.o ../runtime/zeropage.o
22 @$(LD) -t module -o $@ $^
24 #--------------------------------------------------------------------------
44 #--------------------------------------------------------------------------
47 TGIS = c64-320-200-2.tgi
49 EMDS = c64-georam.emd c64-ram.emd c64-reu.emd
51 #--------------------------------------------------------------------------
54 all: $(OBJS) $(EMDS) $(TGIS)
56 ../runtime/zeropage.o:
57 $(MAKE) -C $(dir $@) $(notdir $@)
60 @rm -f $(OBJS) $(EMDS:.emd=.o) $(TGIS:.tgi=.o)