mirror of
https://github.com/cc65/cc65.git
synced 2024-12-28 22:30:12 +00:00
29 lines
395 B
Makefile
29 lines
395 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 = crt0.o conio.o kbhit.o clrscr.o cgetc.o readjoy.o\
|
||
|
color.o cputc.o break.o
|
||
|
|
||
|
all: $(C_OBJS) $(S_OBJS)
|
||
|
|
||
|
clean:
|
||
|
@rm -f $(C_OBJS:.c=.s)
|
||
|
@rm -f $(C_OBJS)
|
||
|
@rm -f $(S_OBJS)
|
||
|
@rm -f crt0.o
|
||
|
|