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 #--------------------------------------------------------------------------
45 #--------------------------------------------------------------------------
48 TGIS = c64-320-200-2.tgi
50 EMDS = c64-georam.emd c64-ram.emd c64-reu.emd
52 #--------------------------------------------------------------------------
55 all: $(OBJS) $(EMDS) $(TGIS)
57 ../runtime/zeropage.o:
58 $(MAKE) -C $(dir $@) $(notdir $@)
61 @rm -f $(OBJS) $(EMDS:.emd=.o) $(TGIS:.tgi=.o)