2000-05-28 13:40:48 +00:00
|
|
|
#
|
|
|
|
# makefile for CC65 Atari runtime library
|
|
|
|
#
|
2000-10-16 23:22:07 +00:00
|
|
|
# NUMDRVS - number of supported drives (max. 16)
|
2002-07-24 21:42:27 +00:00
|
|
|
# UCASE_FILENAME - all filenames get uppercased
|
2000-05-28 13:40:48 +00:00
|
|
|
|
2001-12-27 20:39:10 +00:00
|
|
|
ATARIDEFS = -DNUMDRVS=4 -DUCASE_FILENAME=1
|
2000-05-28 13:40:48 +00:00
|
|
|
|
|
|
|
.SUFFIXES: .o .s .c
|
|
|
|
|
2002-12-21 09:10:15 +00:00
|
|
|
#--------------------------------------------------------------------------
|
|
|
|
# Rules
|
|
|
|
|
2000-05-28 13:40:48 +00:00
|
|
|
%.o: %.c
|
|
|
|
@$(CC) $(CFLAGS) $(ATARIDEFS) $<
|
|
|
|
@$(AS) -o $@ $(AFLAGS) $(*).s
|
|
|
|
|
|
|
|
%.o: %.s
|
|
|
|
@$(AS) -g -o $@ $(AFLAGS) $(ATARIDEFS) $<
|
|
|
|
|
2002-12-21 09:10:15 +00:00
|
|
|
%.emd: %.o ../runtime/zeropage.o
|
|
|
|
@$(LD) -t module -o $@ $^
|
|
|
|
|
|
|
|
%.joy: %.o ../runtime/zeropage.o
|
|
|
|
@$(LD) -t module -o $@ $^
|
|
|
|
|
|
|
|
%.tgi: %.o ../runtime/zeropage.o
|
|
|
|
@$(LD) -t module -o $@ $^
|
|
|
|
|
|
|
|
#--------------------------------------------------------------------------
|
|
|
|
# Object files
|
|
|
|
|
2001-10-25 11:50:45 +00:00
|
|
|
OBJS = _scrsize.o \
|
|
|
|
break.o \
|
|
|
|
cclear.o \
|
|
|
|
cgetc.o \
|
|
|
|
chline.o \
|
|
|
|
clock.o \
|
|
|
|
close.o \
|
|
|
|
clrscr.o \
|
|
|
|
color.o \
|
|
|
|
cputc.o \
|
2001-12-10 00:12:03 +00:00
|
|
|
crt0.o \
|
2001-10-25 11:50:45 +00:00
|
|
|
ctype.o \
|
|
|
|
cvline.o \
|
|
|
|
dio_cts.o \
|
|
|
|
dio_stc.o \
|
|
|
|
diopncls.o \
|
|
|
|
dioread.o \
|
|
|
|
diowrite.o \
|
|
|
|
diowritev.o \
|
|
|
|
fdtable.o \
|
|
|
|
getargs.o \
|
|
|
|
getfd.o \
|
|
|
|
gotox.o \
|
|
|
|
gotoy.o \
|
|
|
|
gotoxy.o \
|
|
|
|
graphics.o \
|
|
|
|
graphuse.o \
|
2002-12-21 09:32:14 +00:00
|
|
|
joy_stddrv.o \
|
2001-10-25 11:50:45 +00:00
|
|
|
kbhit.o \
|
|
|
|
lseek.o \
|
|
|
|
mouse.o \
|
|
|
|
mul40.o \
|
|
|
|
open.o \
|
2002-07-24 21:42:27 +00:00
|
|
|
oserrlist.o \
|
2001-10-25 11:50:45 +00:00
|
|
|
oserror.o \
|
|
|
|
ostype.o \
|
2002-11-06 22:21:15 +00:00
|
|
|
randomize.o \
|
2001-10-25 11:50:45 +00:00
|
|
|
read.o \
|
|
|
|
readjoy.o \
|
2001-12-10 00:12:03 +00:00
|
|
|
remove.o \
|
2001-10-25 11:50:45 +00:00
|
|
|
revers.o \
|
2001-12-10 00:12:03 +00:00
|
|
|
rs232.o \
|
2001-10-25 11:50:45 +00:00
|
|
|
rwcommon.o \
|
|
|
|
savevec.o \
|
|
|
|
scroll.o \
|
|
|
|
setcolor.o \
|
|
|
|
siocall.o \
|
2002-11-12 22:49:38 +00:00
|
|
|
systime.o \
|
2001-10-25 11:50:45 +00:00
|
|
|
tvtype.o \
|
2001-12-27 20:39:10 +00:00
|
|
|
ucase_fn.o \
|
2003-01-02 21:45:23 +00:00
|
|
|
wherex.o \
|
|
|
|
wherey.o \
|
2001-10-25 11:50:45 +00:00
|
|
|
write.o
|
2000-05-28 13:40:48 +00:00
|
|
|
|
|
|
|
|
2002-12-21 09:10:15 +00:00
|
|
|
#--------------------------------------------------------------------------
|
|
|
|
# Drivers
|
|
|
|
|
|
|
|
EMDS =
|
|
|
|
|
|
|
|
JOYS = atari-stdjoy.joy
|
|
|
|
|
|
|
|
TGIS =
|
|
|
|
|
|
|
|
#--------------------------------------------------------------------------
|
|
|
|
# Targets
|
|
|
|
|
|
|
|
all: $(OBJS) $(EMDS) $(JOYS) $(TGIS)
|
|
|
|
|
|
|
|
../runtime/zeropage.o:
|
|
|
|
$(MAKE) -C $(dir $@) $(notdir $@)
|
2000-05-28 13:40:48 +00:00
|
|
|
|
|
|
|
clean:
|
2002-12-21 09:10:15 +00:00
|
|
|
@rm -f $(OBJS) $(EMDS:.emd=.o) $(JOYS:.joy=.o) $(TGIS:.tgi=.o)
|
2000-05-28 13:40:48 +00:00
|
|
|
|