2000-05-28 13:40:48 +00:00
|
|
|
#
|
|
|
|
# makefile for CC65 runtime library
|
|
|
|
#
|
|
|
|
|
|
|
|
.SUFFIXES: .o .s .c
|
|
|
|
|
2002-12-02 06:15:03 +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-11-29 14:41:21 +00:00
|
|
|
%.emd: %.o ../runtime/zeropage.o
|
|
|
|
@$(LD) -t module -o $@ $^
|
|
|
|
|
2002-12-20 21:41:40 +00:00
|
|
|
%.joy: %.o ../runtime/zeropage.o
|
|
|
|
@$(LD) -t module -o $@ $^
|
|
|
|
|
2003-08-15 21:17:36 +00:00
|
|
|
%.ser: %.o ../runtime/zeropage.o
|
|
|
|
@$(LD) -t module -o $@ $^
|
|
|
|
|
2002-08-11 12:39:10 +00:00
|
|
|
%.tgi: %.o ../runtime/zeropage.o
|
|
|
|
@$(LD) -t module -o $@ $^
|
2002-07-07 11:12:16 +00:00
|
|
|
|
2002-12-02 06:15:03 +00:00
|
|
|
#--------------------------------------------------------------------------
|
|
|
|
# Object files
|
|
|
|
|
2002-07-07 11:12:16 +00:00
|
|
|
OBJS = _scrsize.o \
|
|
|
|
break.o \
|
|
|
|
crt0.o \
|
|
|
|
cgetc.o \
|
|
|
|
clrscr.o \
|
|
|
|
color.o \
|
|
|
|
conio.o \
|
|
|
|
cputc.o \
|
2003-08-12 17:42:03 +00:00
|
|
|
get_ostype.o \
|
2002-12-03 22:19:21 +00:00
|
|
|
get_tv.o \
|
2002-12-21 09:32:14 +00:00
|
|
|
joy_stddrv.o \
|
2002-07-07 11:12:16 +00:00
|
|
|
kbhit.o \
|
2002-11-19 23:02:47 +00:00
|
|
|
kernal.o \
|
2003-03-10 21:21:46 +00:00
|
|
|
mainargs.o \
|
2002-07-07 11:12:16 +00:00
|
|
|
mouse.o \
|
2002-11-05 10:48:20 +00:00
|
|
|
randomize.o \
|
2002-12-19 20:29:27 +00:00
|
|
|
revers.o \
|
2003-08-12 17:24:02 +00:00
|
|
|
sysuname.o \
|
2002-11-16 23:45:15 +00:00
|
|
|
tgi_mode_table.o
|
2000-11-23 19:05:32 +00:00
|
|
|
|
2002-12-02 06:15:03 +00:00
|
|
|
#--------------------------------------------------------------------------
|
|
|
|
# Drivers
|
|
|
|
|
2002-12-23 00:13:53 +00:00
|
|
|
EMDS = c64-georam.emd c64-ram.emd c64-ramcart.emd c64-reu.emd c64-vdc.emd
|
2002-12-20 21:41:40 +00:00
|
|
|
|
2004-02-02 12:23:45 +00:00
|
|
|
JOYS = c64-hitjoy.joy c64-numpad.joy c64-ptvjoy.joy c64-stdjoy.joy
|
2002-07-07 11:12:16 +00:00
|
|
|
|
2003-08-15 21:17:36 +00:00
|
|
|
SERS = c64-swlink.ser
|
|
|
|
|
2002-12-20 21:41:40 +00:00
|
|
|
TGIS = c64-320-200-2.tgi
|
2002-07-07 11:12:16 +00:00
|
|
|
|
2002-08-11 12:39:10 +00:00
|
|
|
#--------------------------------------------------------------------------
|
|
|
|
# Targets
|
|
|
|
|
2003-02-06 15:35:30 +00:00
|
|
|
.PHONY: all clean zap
|
|
|
|
|
2003-08-15 21:17:36 +00:00
|
|
|
all: $(OBJS) $(EMDS) $(JOYS) $(SERS) $(TGIS)
|
2000-05-28 13:40:48 +00:00
|
|
|
|
2002-08-11 12:39:10 +00:00
|
|
|
../runtime/zeropage.o:
|
|
|
|
$(MAKE) -C $(dir $@) $(notdir $@)
|
|
|
|
|
2000-05-28 13:40:48 +00:00
|
|
|
clean:
|
2003-08-20 11:59:27 +00:00
|
|
|
@$(RM) $(OBJS) $(EMDS:.emd=.o) $(JOYS:.joy=.o) $(SERS:.ser=.o) $(TGIS:.tgi=.o)
|
2002-11-16 23:45:15 +00:00
|
|
|
|
2003-02-06 15:35:30 +00:00
|
|
|
zap: clean
|
2003-08-20 11:59:27 +00:00
|
|
|
@$(RM) $(EMDS) $(JOYS) $(SERS) $(TGIS)
|
2003-02-06 15:35:30 +00:00
|
|
|
|