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 #--------------------------------------------------------------------------
51 #--------------------------------------------------------------------------
56 JOYS = apple2-stdjoy.joy
60 #--------------------------------------------------------------------------
65 all: $(OBJS) $(EMDS) $(JOYS) $(TGIS)
67 ../runtime/zeropage.o:
68 $(MAKE) -C $(dir $@) $(notdir $@)
71 @rm -f $(OBJS) $(EMDS:.emd=.o) $(JOYS:.joy=.o) $(TGIS:.tgi=.o)
74 @rm -f $(EMDS) $(JOYS) $(TGIS)