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
|
|
|
|
2002-11-12 22:49:38 +00:00
|
|
|
S_OBJS = crt0.o \
|
|
|
|
systime.o
|
|
|
|
|
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:
|
2002-11-12 22:49:38 +00:00
|
|
|
@rm -f $(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
|
|
|
|
|