2000-05-28 13:40:48 +00:00
|
|
|
#
|
|
|
|
# makefile for CC65 runtime library
|
|
|
|
#
|
|
|
|
|
|
|
|
.SUFFIXES: .o .s .c
|
|
|
|
|
2002-12-02 06:14:46 +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-02 06:14:46 +00:00
|
|
|
%.emd: %.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 \
|
|
|
|
clrscr.o \
|
|
|
|
conio.o \
|
|
|
|
crt0.o \
|
|
|
|
color.o \
|
|
|
|
cputc.o \
|
2002-12-03 22:19:21 +00:00
|
|
|
get_tv.o \
|
2000-11-23 19:05:32 +00:00
|
|
|
kbhit.o \
|
2002-11-19 23:02:47 +00:00
|
|
|
kernal.o \
|
2001-09-08 15:24:54 +00:00
|
|
|
mouse.o \
|
2002-11-05 10:48:20 +00:00
|
|
|
randomize.o \
|
2001-09-13 16:01:32 +00:00
|
|
|
readjoy.o \
|
2001-10-25 15:54:40 +00:00
|
|
|
rs232.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:14:46 +00:00
|
|
|
#--------------------------------------------------------------------------
|
|
|
|
# Drivers
|
|
|
|
|
|
|
|
TGIS =
|
|
|
|
|
2002-12-04 22:29:45 +00:00
|
|
|
EMDS = c128-georam.emd c128-ram.emd c128-reu.emd
|
2002-12-02 06:14:46 +00:00
|
|
|
|
|
|
|
#--------------------------------------------------------------------------
|
|
|
|
# Targets
|
|
|
|
|
|
|
|
all: $(OBJS) $(EMDS) $(TGIS)
|
|
|
|
|
|
|
|
../runtime/zeropage.o:
|
|
|
|
$(MAKE) -C $(dir $@) $(notdir $@)
|
2000-05-28 13:40:48 +00:00
|
|
|
|
|
|
|
clean:
|
2000-11-23 19:05:32 +00:00
|
|
|
@rm -f $(OBJS)
|
2000-05-28 13:40:48 +00:00
|
|
|
|