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 13:40:01 +00:00
|
|
|
clock.o \
|
|
|
|
color.o \
|
|
|
|
crt0.o \
|
|
|
|
ppu.o \
|
|
|
|
ppubuf.o \
|
|
|
|
waitvblank.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
|
|
|
|
|