2 # makefile for CC65 Atari runtime library
4 # NUMDRVS - number of supported drives (max. 16)
5 # 4 bytes for each device are statically allocated
6 # UCASE_FILENAME - all filenames get uppercased
7 # DEFAULT_DEVICE - if the string passed to the uppercase function doesn't
8 # include a device (":" at position 2 or 3), provide "D:"
10 # needs UCASE_FILENAME to be defined, otherwise no effect
12 ATARIDEFS = -DNUMDRVS=4 -DUCASE_FILENAME=1 -DDEFAULT_DEVICE=1
16 #--------------------------------------------------------------------------
20 @$(CC) $(CFLAGS) $(ATARIDEFS) $<
21 @$(AS) -o $@ $(AFLAGS) $(*).s
24 @$(AS) -g -o $@ $(AFLAGS) $(ATARIDEFS) $<
26 %.emd: %.o ../runtime/zeropage.o
27 @$(LD) -t module -o $@ $^
29 %.joy: %.o ../runtime/zeropage.o
30 @$(LD) -t module -o $@ $^
32 %.tgi: %.o ../runtime/zeropage.o
33 @$(LD) -t module -o $@ $^
35 #--------------------------------------------------------------------------
95 #--------------------------------------------------------------------------
100 JOYS = atari-stdjoy.joy
104 #--------------------------------------------------------------------------
107 all: $(OBJS) $(EMDS) $(JOYS) $(TGIS)
109 ../runtime/zeropage.o:
110 $(MAKE) -C $(dir $@) $(notdir $@)
113 @$(RM) $(OBJS) $(EMDS:.emd=.o) $(JOYS:.joy=.o) $(TGIS:.tgi=.o)
116 @$(RM) $(EMDS) $(JOYS) $(TGIS)