2003-04-14 21:28:51 +00:00
|
|
|
#
|
|
|
|
# makefile for CC65 runtime library
|
|
|
|
#
|
|
|
|
|
|
|
|
.SUFFIXES: .o .s .c
|
|
|
|
|
|
|
|
#--------------------------------------------------------------------------
|
|
|
|
# Rules
|
|
|
|
|
|
|
|
%.o: %.c
|
|
|
|
@$(CC) $(CFLAGS) $<
|
|
|
|
@$(AS) -o $@ $(AFLAGS) $(*).s
|
|
|
|
|
|
|
|
%.o: %.s
|
|
|
|
@$(AS) -g -o $@ $(AFLAGS) $<
|
|
|
|
|
|
|
|
#--------------------------------------------------------------------------
|
|
|
|
# Object files
|
|
|
|
|
|
|
|
C_OBJS =
|
|
|
|
|
|
|
|
S_OBJS = _scrsize.o \
|
2003-05-02 14:59:05 +00:00
|
|
|
cclear.o \
|
|
|
|
chline.o \
|
2003-05-02 13:40:01 +00:00
|
|
|
clock.o \
|
2003-05-02 14:59:05 +00:00
|
|
|
clrscr.o \
|
2003-05-02 13:40:01 +00:00
|
|
|
color.o \
|
2003-05-02 14:24:22 +00:00
|
|
|
cputc.o \
|
2003-05-02 13:40:01 +00:00
|
|
|
crt0.o \
|
2003-05-02 14:59:05 +00:00
|
|
|
cvline.o \
|
|
|
|
getenv.o \
|
|
|
|
gotox.o \
|
|
|
|
gotoxy.o \
|
|
|
|
gotoy.o \
|
|
|
|
mainargs.o \
|
2003-05-02 13:40:01 +00:00
|
|
|
ppu.o \
|
|
|
|
ppubuf.o \
|
2003-05-02 14:59:05 +00:00
|
|
|
randomize.o \
|
|
|
|
revers.o \
|
2003-05-02 14:24:22 +00:00
|
|
|
setcursor.o \
|
2003-05-02 14:59:05 +00:00
|
|
|
waitvblank.o \
|
|
|
|
wherex.o \
|
|
|
|
wherey.o
|
2003-04-14 21:28:51 +00:00
|
|
|
|
|
|
|
#--------------------------------------------------------------------------
|
|
|
|
# Targets
|
|
|
|
|
|
|
|
.PHONY: all clean zap
|
|
|
|
|
|
|
|
all: $(C_OBJS) $(S_OBJS)
|
|
|
|
|
|
|
|
clean:
|
|
|
|
@rm -f $(C_OBJS:.c=.s) $(C_OBJS) $(S_OBJS)
|
|
|
|
|
|
|
|
zap: clean
|
|
|
|
|