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 # LINEBUF - support line buffered reads from E: (the number specifies
7 # the length of the buffer)
8 # UCASE_FILENAME - all filenames get uppercased
9 # DEFAULT_DEVICE - if the string passed to the uppercase function doesn't
10 # include a device (":" at position 2 or 3), provide "D:"
12 # needs UCASE_FILENAME to be defined, otherwise no effect
14 ATARIDEFS = -DNUMDRVS=4 -DUCASE_FILENAME=1 -DDEFAULT_DEVICE=1 -DLINEBUF=80
18 #--------------------------------------------------------------------------
22 @$(CC) $(CFLAGS) $(ATARIDEFS) $<
23 @$(AS) -o $@ $(AFLAGS) $(*).s
26 @$(AS) -g -o $@ $(AFLAGS) $(ATARIDEFS) $<
28 %.emd: %.o ../runtime/zeropage.o
29 @$(LD) -t module -o $@ $^
31 %.joy: %.o ../runtime/zeropage.o
32 @$(LD) -t module -o $@ $^
34 %.tgi: %.o ../runtime/zeropage.o
35 @$(LD) -t module -o $@ $^
37 #--------------------------------------------------------------------------
97 #--------------------------------------------------------------------------
102 JOYS = atari-stdjoy.joy
106 #--------------------------------------------------------------------------
109 all: $(OBJS) $(EMDS) $(JOYS) $(TGIS)
111 ../runtime/zeropage.o:
112 $(MAKE) -C $(dir $@) $(notdir $@)
115 @$(RM) $(OBJS) $(EMDS:.emd=.o) $(JOYS:.joy=.o) $(TGIS:.tgi=.o)
118 @$(RM) $(EMDS) $(JOYS) $(TGIS)