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 %.joy: %.o ../runtime/zeropage.o
21 @$(LD) -t module -o $@ $^
23 %.tgi: %.o ../runtime/zeropage.o
24 @$(LD) -t module -o $@ $^
26 #--------------------------------------------------------------------------
45 #--------------------------------------------------------------------------
50 JOYS = vic20-stdjoy.joy
54 #--------------------------------------------------------------------------
59 all: $(OBJS) $(EMDS) $(JOYS) $(TGIS)
61 ../runtime/zeropage.o:
62 $(MAKE) -C $(dir $@) $(notdir $@)
65 @rm -f $(OBJS) $(EMDS:.emd=.o) $(JOYS:.joy=.o) $(TGIS:.tgi=.o)
68 @rm -f $(EMDS) $(JOYS) $(TGIS)