mirror of
https://github.com/cc65/cc65.git
synced 2024-08-17 03:29:15 +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)
|