2002-08-07 05:18:13 +00:00
|
|
|
#
|
|
|
|
# makefile for CC65 runtime library
|
|
|
|
#
|
|
|
|
|
|
|
|
.SUFFIXES: .o .s .c
|
|
|
|
|
2002-12-20 23:23:06 +00:00
|
|
|
#--------------------------------------------------------------------------
|
|
|
|
# Rules
|
|
|
|
|
2002-08-07 05:18:13 +00:00
|
|
|
%.o: %.c
|
|
|
|
@$(CC) $(CFLAGS) $<
|
|
|
|
@$(AS) -o $@ $(AFLAGS) $(*).s
|
|
|
|
|
|
|
|
%.o: %.s
|
|
|
|
@$(AS) -g -o $@ $(AFLAGS) $<
|
|
|
|
|
2002-12-20 23:23:06 +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
|
|
|
|
|
2002-08-07 05:18:13 +00:00
|
|
|
OBJS = _scrsize.o \
|
|
|
|
break.o \
|
|
|
|
crt0.o \
|
|
|
|
cgetc.o \
|
|
|
|
clrscr.o \
|
|
|
|
color.o \
|
|
|
|
conio.o \
|
|
|
|
cputc.o \
|
2002-12-21 09:32:14 +00:00
|
|
|
joy_stddrv.o \
|
2002-08-07 05:18:13 +00:00
|
|
|
kbhit.o \
|
2002-11-19 23:02:47 +00:00
|
|
|
kernal.o \
|
2002-12-09 10:45:16 +00:00
|
|
|
kplot.o \
|
2002-11-05 10:48:20 +00:00
|
|
|
randomize.o \
|
2002-12-20 23:23:06 +00:00
|
|
|
revers.o
|
|
|
|
|
|
|
|
#--------------------------------------------------------------------------
|
|
|
|
# Drivers
|
|
|
|
|
|
|
|
EMDS =
|
|
|
|
|
|
|
|
JOYS = vic20-stdjoy.joy
|
|
|
|
|
|
|
|
TGIS =
|
|
|
|
|
|
|
|
#--------------------------------------------------------------------------
|
|
|
|
# Targets
|
|
|
|
|
|
|
|
all: $(OBJS) $(EMDS) $(JOYS) $(TGIS)
|
2002-08-07 05:18:13 +00:00
|
|
|
|
2002-12-20 23:23:06 +00:00
|
|
|
../runtime/zeropage.o:
|
|
|
|
$(MAKE) -C $(dir $@) $(notdir $@)
|
2002-08-07 05:18:13 +00:00
|
|
|
|
|
|
|
clean:
|
2002-12-20 23:23:06 +00:00
|
|
|
@rm -f $(OBJS) $(EMDS:.emd=.o) $(JOYS:.joy=.o) $(TGIS:.tgi=.o)
|
2002-08-07 05:18:13 +00:00
|
|
|
|