2002-11-29 14:46:56 +00:00
|
|
|
#
|
|
|
|
# Makefile for the extended memory library
|
|
|
|
#
|
|
|
|
|
|
|
|
.SUFFIXES: .o .s .c
|
|
|
|
|
2004-10-26 19:28:26 +00:00
|
|
|
#--------------------------------------------------------------------------
|
|
|
|
# Programs and flags
|
|
|
|
|
|
|
|
SYS = none
|
|
|
|
|
|
|
|
AS = ../../src/ca65/ca65
|
|
|
|
CC = ../../src/cc65/cc65
|
|
|
|
LD = ../../src/ld65/ld65
|
|
|
|
|
2009-12-18 11:58:50 +00:00
|
|
|
AFLAGS = -t $(SYS) --forget-inc-paths -I../../asminc
|
2004-10-26 19:28:26 +00:00
|
|
|
CFLAGS = -Osir -g -T -t $(SYS) --forget-inc-paths -I . -I ../../include
|
|
|
|
|
2003-02-06 15:35:30 +00:00
|
|
|
#--------------------------------------------------------------------------
|
|
|
|
# Rules
|
|
|
|
|
2002-11-29 14:46:56 +00:00
|
|
|
%.o: %.c
|
|
|
|
@$(CC) $(CFLAGS) $<
|
|
|
|
@$(AS) -g -o $@ $(AFLAGS) $(*).s
|
|
|
|
|
|
|
|
%.o: %.s
|
|
|
|
@$(AS) -g -o $@ $(AFLAGS) $<
|
|
|
|
|
2003-02-06 15:35:30 +00:00
|
|
|
#--------------------------------------------------------------------------
|
|
|
|
# Object files
|
|
|
|
|
2012-07-22 11:36:09 +00:00
|
|
|
C_OBJS =
|
2002-11-29 14:46:56 +00:00
|
|
|
|
|
|
|
S_OBJS = em-kernel.o \
|
2002-12-01 18:06:57 +00:00
|
|
|
em_commit.o \
|
2002-11-29 14:46:56 +00:00
|
|
|
em_copyto.o \
|
|
|
|
em_copyfrom.o \
|
2012-07-22 11:36:09 +00:00
|
|
|
em_load.o \
|
2002-11-29 14:46:56 +00:00
|
|
|
em_map.o \
|
|
|
|
em_pagecount.o \
|
|
|
|
em_unload.o \
|
2003-02-06 15:35:30 +00:00
|
|
|
em_use.o
|
|
|
|
|
|
|
|
|
|
|
|
#--------------------------------------------------------------------------
|
|
|
|
# Targets
|
2002-11-29 14:46:56 +00:00
|
|
|
|
2003-02-06 15:35:30 +00:00
|
|
|
.PHONY: all clean zap
|
2002-11-29 14:46:56 +00:00
|
|
|
|
|
|
|
all: $(C_OBJS) $(S_OBJS)
|
|
|
|
|
|
|
|
clean:
|
2004-10-26 19:28:26 +00:00
|
|
|
@$(RM) *~ $(C_OBJS:.o=.s) $(C_OBJS) $(S_OBJS)
|
2002-11-29 14:46:56 +00:00
|
|
|
|
2003-02-06 15:35:30 +00:00
|
|
|
zap: clean
|
2002-11-29 14:46:56 +00:00
|
|
|
|