2000-05-28 13:40:48 +00:00
|
|
|
#
|
|
|
|
# makefile for CC65 runtime library
|
|
|
|
#
|
|
|
|
|
|
|
|
.SUFFIXES: .o .s .c
|
|
|
|
|
2002-12-21 08:53:39 +00:00
|
|
|
#--------------------------------------------------------------------------
|
|
|
|
# Rules
|
|
|
|
|
2000-05-28 13:40:48 +00:00
|
|
|
%.o: %.c
|
|
|
|
@$(CC) $(CFLAGS) $<
|
|
|
|
@$(AS) -o $@ $(AFLAGS) $(*).s
|
|
|
|
|
|
|
|
%.o: %.s
|
|
|
|
@$(AS) -g -o $@ $(AFLAGS) $<
|
|
|
|
|
2002-12-21 08:53:39 +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
|
|
|
|
|
2000-11-23 19:05:32 +00:00
|
|
|
OBJS = _scrsize.o \
|
|
|
|
break.o \
|
|
|
|
cgetc.o \
|
2002-12-21 08:53:39 +00:00
|
|
|
clrscr.o \
|
|
|
|
color.o \
|
|
|
|
conio.o \
|
|
|
|
cputc.o \
|
|
|
|
crt0.o \
|
2002-12-03 22:19:21 +00:00
|
|
|
get_tv.o \
|
2002-11-22 22:16:20 +00:00
|
|
|
kacptr.o \
|
|
|
|
kbasin.o \
|
2002-12-21 08:53:39 +00:00
|
|
|
kbhit.o \
|
2002-11-22 22:16:20 +00:00
|
|
|
kbsout.o \
|
|
|
|
kchkin.o \
|
|
|
|
kciout.o \
|
|
|
|
kckout.o \
|
|
|
|
kclall.o \
|
|
|
|
kclose.o \
|
|
|
|
kclrch.o \
|
|
|
|
kiobase.o \
|
|
|
|
klisten.o \
|
|
|
|
kload.o \
|
|
|
|
kopen.o \
|
2002-11-22 22:24:24 +00:00
|
|
|
kplot.o \
|
2002-11-22 22:16:20 +00:00
|
|
|
krdtim.o \
|
|
|
|
kreadst.o \
|
|
|
|
ksave.o \
|
|
|
|
ksetlfs.o \
|
|
|
|
ksetnam.o \
|
2002-11-22 22:24:24 +00:00
|
|
|
ksettim.o \
|
2002-11-22 22:16:20 +00:00
|
|
|
ktalk.o \
|
|
|
|
kunlsn.o \
|
|
|
|
kuntlk.o \
|
2002-11-05 10:48:20 +00:00
|
|
|
randomize.o \
|
2002-12-19 20:29:27 +00:00
|
|
|
revers.o \
|
2002-10-03 18:19:25 +00:00
|
|
|
tgi_mode_table.o
|
2000-11-23 19:05:32 +00:00
|
|
|
|
2002-12-21 08:53:39 +00:00
|
|
|
#--------------------------------------------------------------------------
|
|
|
|
# Drivers
|
|
|
|
|
|
|
|
EMDS =
|
|
|
|
|
|
|
|
JOYS = plus4-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 08:53:39 +00:00
|
|
|
@rm -f $(OBJS) $(EMDS:.emd=.o) $(JOYS:.joy=.o) $(TGIS:.tgi=.o)
|
2000-05-28 13:40:48 +00:00
|
|
|
|