You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
875 B
Makefile
49 lines
875 B
Makefile
#
|
|
# makefile for CC65 runtime library
|
|
#
|
|
|
|
.SUFFIXES: .o .s .c
|
|
|
|
#--------------------------------------------------------------------------
|
|
# Programs and flags
|
|
|
|
SYS = none
|
|
|
|
AS = ../../bin/ca65
|
|
CC = ../../bin/cc65
|
|
LD = ../../bin/ld65
|
|
|
|
AFLAGS = -t $(SYS) --forget-inc-paths -I../asminc --cpu $(CPU)
|
|
CFLAGS = -Osir -g -T -t $(SYS) --forget-inc-paths -I . -I ../../include --cpu $(CPU)
|
|
|
|
#--------------------------------------------------------------------------
|
|
# Rules
|
|
|
|
.c.s:
|
|
@$(CC) $(CFLAGS) $<
|
|
|
|
.s.o:
|
|
@$(AS) -g -o $@ $(AFLAGS) $<
|
|
|
|
#--------------------------------------------------------------------------
|
|
# Object files
|
|
|
|
OBJS = crt0.o \
|
|
redbus.o \
|
|
ctype.o
|
|
|
|
#COBJS = console.o
|
|
|
|
#--------------------------------------------------------------------------
|
|
# Targets
|
|
|
|
.PHONY: all clean zap
|
|
|
|
all: $(OBJS) $(COBJS)
|
|
|
|
clean:
|
|
@$(RM) *~ $(COBJS:.o=.s) $(OBJS)
|
|
|
|
zap: clean
|
|
|