mirror of
https://github.com/cc65/cc65.git
synced 2025-02-26 23:30:03 +00:00
29 lines
367 B
Makefile
29 lines
367 B
Makefile
#
|
|
# makefile for CC65 runtime library
|
|
#
|
|
|
|
.SUFFIXES: .o .s .c
|
|
|
|
%.o: %.c
|
|
@echo $<
|
|
@$(CC) $(CFLAGS) $<
|
|
@$(AS) -o $@ $(AFLAGS) $(*).s
|
|
|
|
%.o: %.s
|
|
@echo $<
|
|
@$(AS) -g -o $@ $(AFLAGS) $<
|
|
|
|
C_OBJS =
|
|
|
|
S_OBJS = _cursor.o \
|
|
_scrsize.o \
|
|
cputhex.o \
|
|
cputs.o \
|
|
cursor.o \
|
|
scrsize.o
|
|
|
|
all: $(C_OBJS) $(S_OBJS)
|
|
|
|
clean:
|
|
@rm -f *~ $(C_OBJS:.o=.s) $(C_OBJS) $(S_OBJS)
|