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.

46 lines
834 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
#--------------------------------------------------------------------------
# Targets
.PHONY: all clean zap
all: $(OBJS)
clean:
@$(RM) *~ $(COBJS:.o=.s) $(OBJS)
zap: clean