2002-06-03 20:23:15 +00:00
|
|
|
#
|
|
|
|
# makefile for CC65 runtime library
|
|
|
|
#
|
|
|
|
|
|
|
|
.SUFFIXES: .o .s .c
|
|
|
|
|
2003-02-06 15:35:30 +00:00
|
|
|
#--------------------------------------------------------------------------
|
|
|
|
# Rules
|
|
|
|
|
2002-06-03 20:23:15 +00:00
|
|
|
%.o: %.c
|
|
|
|
@$(CC) $(CFLAGS) $<
|
|
|
|
@$(AS) -o $@ $(AFLAGS) $(*).s
|
|
|
|
|
|
|
|
%.o: %.s
|
|
|
|
@$(AS) -g -o $@ $(AFLAGS) $<
|
|
|
|
|
2003-02-06 15:35:30 +00:00
|
|
|
#--------------------------------------------------------------------------
|
|
|
|
# Object files
|
|
|
|
|
2002-11-12 22:49:38 +00:00
|
|
|
C_OBJS =
|
2002-06-03 20:23:15 +00:00
|
|
|
|
2003-04-13 22:12:09 +00:00
|
|
|
S_OBJS = _scrsize.o \
|
|
|
|
cclear.o \
|
|
|
|
cgetc.o \
|
|
|
|
chline.o \
|
|
|
|
clock.o \
|
|
|
|
clrscr.o \
|
|
|
|
color.o \
|
|
|
|
cputc.o \
|
|
|
|
crt0.o \
|
|
|
|
ctype.o \
|
|
|
|
cvline.o \
|
2003-05-02 14:38:27 +00:00
|
|
|
getenv.o \
|
2003-04-13 22:12:09 +00:00
|
|
|
gotox.o \
|
|
|
|
gotoxy.o \
|
|
|
|
gotoy.o \
|
|
|
|
kbhit.o \
|
2003-03-10 21:21:46 +00:00
|
|
|
mainargs.o \
|
2003-04-13 22:12:09 +00:00
|
|
|
revers.o \
|
|
|
|
systime.o \
|
2003-08-12 17:24:02 +00:00
|
|
|
sysuname.o \
|
2003-04-13 22:12:09 +00:00
|
|
|
wherex.o \
|
|
|
|
wherey.o \
|
2003-05-02 14:38:27 +00:00
|
|
|
write.o
|
2002-11-12 22:49:38 +00:00
|
|
|
|
2003-02-06 15:35:30 +00:00
|
|
|
#--------------------------------------------------------------------------
|
|
|
|
# Targets
|
|
|
|
|
|
|
|
.PHONY: all clean zap
|
|
|
|
|
2002-11-12 22:49:38 +00:00
|
|
|
all: $(C_OBJS) $(S_OBJS)
|
2002-06-03 20:23:15 +00:00
|
|
|
|
|
|
|
clean:
|
2003-08-20 11:59:27 +00:00
|
|
|
@$(RM) $(C_OBJS:.c=.s) $(C_OBJS) $(S_OBJS)
|
2002-06-03 20:23:15 +00:00
|
|
|
|
2003-02-06 15:35:30 +00:00
|
|
|
zap: clean
|
|
|
|
|