2000-05-28 13:40:48 +00:00
|
|
|
#
|
|
|
|
# makefile for CC65 runtime library
|
|
|
|
#
|
|
|
|
|
|
|
|
.SUFFIXES: .o .s .c
|
|
|
|
|
|
|
|
%.o: %.c
|
|
|
|
@$(CC) $(CFLAGS) $<
|
|
|
|
@$(AS) -o $@ $(AFLAGS) $(*).s
|
|
|
|
|
|
|
|
%.o: %.s
|
|
|
|
@$(AS) -g -o $@ $(AFLAGS) $<
|
|
|
|
|
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
|
|
|
|
|
|
|
OBJS = _scrsize.o \
|
|
|
|
break.o \
|
|
|
|
crt0.o \
|
|
|
|
cgetc.o \
|
|
|
|
clrscr.o \
|
|
|
|
color.o \
|
|
|
|
conio.o \
|
|
|
|
cputc.o \
|
|
|
|
kbhit.o \
|
|
|
|
mouse.o \
|
2002-11-05 10:48:20 +00:00
|
|
|
randomize.o \
|
2002-07-07 11:12:16 +00:00
|
|
|
readjoy.o \
|
|
|
|
rs232.o \
|
|
|
|
tgi_mode_table.o \
|
2000-11-23 19:05:32 +00:00
|
|
|
write.o
|
|
|
|
|
2002-07-07 11:12:16 +00:00
|
|
|
TGIS = c64-320-200-2.tgi
|
|
|
|
|
|
|
|
|
2002-08-11 12:39:10 +00:00
|
|
|
#--------------------------------------------------------------------------
|
|
|
|
# Targets
|
|
|
|
|
2002-07-07 11:12:16 +00:00
|
|
|
all: $(OBJS) $(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:
|
2002-07-07 11:12:16 +00:00
|
|
|
@rm -f $(OBJS) $(TGIS:.tgi=.o)
|
2002-11-05 10:48:20 +00:00
|
|
|
|