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 %.joy: %.o ../runtime/zeropage.o
22 @$(LD) -t module -o $@ $^
24 %.mou: %.o ../runtime/zeropage.o
25 @$(LD) -t module -o $@ $^
27 %.ser: %.o ../runtime/zeropage.o
28 @$(LD) -t module -o $@ $^
30 %.tgi: %.o ../runtime/zeropage.o
31 @$(LD) -t module -o $@ $^
33 #--------------------------------------------------------------------------
56 #--------------------------------------------------------------------------
59 EMDS = c64-georam.emd c64-ram.emd c64-ramcart.emd c64-reu.emd c64-vdc.emd
61 JOYS = c64-hitjoy.joy c64-numpad.joy c64-ptvjoy.joy c64-stdjoy.joy
67 TGIS = c64-320-200-2.tgi
69 #--------------------------------------------------------------------------
74 all: $(OBJS) $(EMDS) $(JOYS) $(MOUS) $(SERS) $(TGIS)
76 ../runtime/zeropage.o:
77 $(MAKE) -C $(dir $@) $(notdir $@)
80 @$(RM) $(OBJS) $(EMDS:.emd=.o) $(JOYS:.joy=.o) $(MOUS:.mou=.o) $(SERS:.ser=.o) $(TGIS:.tgi=.o)
83 @$(RM) $(EMDS) $(JOYS) $(MOUS) $(SERS) $(TGIS)