1
0
mirror of https://github.com/cc65/cc65.git synced 2024-11-04 17:04:58 +00:00
cc65/libsrc/atari/Makefile
cuz a3109620ab Changed rm -f to $(RM)
git-svn-id: svn://svn.cc65.org/cc65/trunk@2385 b7a2c559-68d2-44c3-8de9-860c34a00d81
2003-08-20 11:59:27 +00:00

113 lines
2.5 KiB
Makefile

#
# makefile for CC65 Atari runtime library
#
# NUMDRVS - number of supported drives (max. 16)
# UCASE_FILENAME - all filenames get uppercased
ATARIDEFS = -DNUMDRVS=4 -DUCASE_FILENAME=1
.SUFFIXES: .o .s .c
#--------------------------------------------------------------------------
# Rules
%.o: %.c
@$(CC) $(CFLAGS) $(ATARIDEFS) $<
@$(AS) -o $@ $(AFLAGS) $(*).s
%.o: %.s
@$(AS) -g -o $@ $(AFLAGS) $(ATARIDEFS) $<
%.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
OBJS = _scrsize.o \
break.o \
cclear.o \
cgetc.o \
chline.o \
clock.o \
close.o \
clrscr.o \
color.o \
cputc.o \
crt0.o \
ctype.o \
cvline.o \
dio_cts.o \
dio_stc.o \
diopncls.o \
dioread.o \
diowrite.o \
diowritev.o \
dosdetect.o \
fdtable.o \
getargs.o \
getdefdev.o \
getfd.o \
gotox.o \
gotoy.o \
gotoxy.o \
graphics.o \
graphuse.o \
joy_stddrv.o \
kbhit.o \
lseek.o \
mouse.o \
mul40.o \
open.o \
oserrlist.o \
oserror.o \
ostype.o \
randomize.o \
read.o \
revers.o \
rs232.o \
rwcommon.o \
savevec.o \
scroll.o \
setcolor.o \
siocall.o \
sysremove.o \
systime.o \
tvtype.o \
sysuname.o \
ucase_fn.o \
wherex.o \
wherey.o \
write.o
#--------------------------------------------------------------------------
# Drivers
EMDS =
JOYS = atari-stdjoy.joy
TGIS =
#--------------------------------------------------------------------------
# Targets
all: $(OBJS) $(EMDS) $(JOYS) $(TGIS)
../runtime/zeropage.o:
$(MAKE) -C $(dir $@) $(notdir $@)
clean:
@$(RM) $(OBJS) $(EMDS:.emd=.o) $(JOYS:.joy=.o) $(TGIS:.tgi=.o)
zap: clean
@$(RM) $(EMDS) $(JOYS) $(TGIS)