2 # makefile for CC65 Atari runtime library
4 # NUMDRVS - number of supported drives (max. 16)
5 # UCASE_FILENAME - all filenames get uppercased
7 ATARIDEFS = -DNUMDRVS=4 -DUCASE_FILENAME=1
11 #--------------------------------------------------------------------------
15 @$(CC) $(CFLAGS) $(ATARIDEFS) $<
16 @$(AS) -o $@ $(AFLAGS) $(*).s
19 @$(AS) -g -o $@ $(AFLAGS) $(ATARIDEFS) $<
21 %.emd: %.o ../runtime/zeropage.o
22 @$(LD) -t module -o $@ $^
24 %.joy: %.o ../runtime/zeropage.o
25 @$(LD) -t module -o $@ $^
27 %.tgi: %.o ../runtime/zeropage.o
28 @$(LD) -t module -o $@ $^
30 #--------------------------------------------------------------------------
88 #--------------------------------------------------------------------------
93 JOYS = atari-stdjoy.joy
97 #--------------------------------------------------------------------------
100 all: $(OBJS) $(EMDS) $(JOYS) $(TGIS)
102 ../runtime/zeropage.o:
103 $(MAKE) -C $(dir $@) $(notdir $@)
106 @rm -f $(OBJS) $(EMDS:.emd=.o) $(JOYS:.joy=.o) $(TGIS:.tgi=.o)
109 @rm -f $(EMDS) $(JOYS) $(TGIS)