2000-05-28 13:40:48 +00:00
|
|
|
#
|
|
|
|
# makefile for CC65 runtime library
|
|
|
|
#
|
|
|
|
|
|
|
|
.SUFFIXES: .o .s .c
|
|
|
|
|
2004-10-26 19:35:40 +00:00
|
|
|
#--------------------------------------------------------------------------
|
|
|
|
# Programs and flags
|
|
|
|
|
|
|
|
SYS = none
|
|
|
|
|
|
|
|
AS = ../../src/ca65/ca65
|
|
|
|
CC = ../../src/cc65/cc65
|
|
|
|
LD = ../../src/ld65/ld65
|
|
|
|
|
|
|
|
AFLAGS = -t $(SYS) -I../../asminc
|
|
|
|
CFLAGS = -Osir -g -T -t $(SYS) --forget-inc-paths -I . -I ../../include
|
|
|
|
|
2003-02-06 15:35:30 +00:00
|
|
|
#--------------------------------------------------------------------------
|
|
|
|
# Rules
|
|
|
|
|
2000-05-28 13:40:48 +00:00
|
|
|
%.o: %.c
|
|
|
|
@$(CC) $(CFLAGS) $<
|
|
|
|
@$(AS) -o $@ $(AFLAGS) $(*).s
|
|
|
|
|
|
|
|
%.o: %.s
|
|
|
|
@$(AS) -g -o $@ $(AFLAGS) $<
|
|
|
|
|
2003-02-06 15:35:30 +00:00
|
|
|
#--------------------------------------------------------------------------
|
|
|
|
# Object files
|
|
|
|
|
2003-02-02 13:18:40 +00:00
|
|
|
C_OBJS = cbm_dir.o \
|
|
|
|
cbm_load.o \
|
2002-11-15 18:21:32 +00:00
|
|
|
cbm_save.o
|
2002-06-22 10:58:24 +00:00
|
|
|
|
|
|
|
S_OBJS = c_acptr.o \
|
|
|
|
c_basin.o \
|
|
|
|
c_bsout.o \
|
|
|
|
c_chkin.o \
|
|
|
|
c_ciout.o \
|
|
|
|
c_ckout.o \
|
|
|
|
c_clall.o \
|
|
|
|
c_close.o \
|
|
|
|
c_clrch.o \
|
|
|
|
c_iobase.o \
|
|
|
|
c_listen.o \
|
|
|
|
c_load.o \
|
|
|
|
c_open.o \
|
|
|
|
c_readst.o \
|
|
|
|
c_save.o \
|
|
|
|
c_setlfs.o \
|
|
|
|
c_setnam.o \
|
|
|
|
c_talk.o \
|
|
|
|
c_unlsn.o \
|
|
|
|
c_untlk.o \
|
|
|
|
cbm_close.o \
|
|
|
|
cbm_open.o \
|
|
|
|
cbm_read.o \
|
2002-11-15 18:21:32 +00:00
|
|
|
cbm_write.o \
|
2002-06-22 10:58:24 +00:00
|
|
|
cclear.o \
|
|
|
|
chline.o \
|
|
|
|
clock.o \
|
2002-11-16 23:45:15 +00:00
|
|
|
close.o \
|
2002-06-22 10:58:24 +00:00
|
|
|
ctype.o \
|
|
|
|
cvline.o \
|
2002-11-17 22:45:55 +00:00
|
|
|
diskcmd.o \
|
2002-11-16 23:45:15 +00:00
|
|
|
filedes.o \
|
|
|
|
filename.o \
|
|
|
|
filevars.o \
|
2002-06-22 10:58:24 +00:00
|
|
|
getenv.o \
|
|
|
|
gotox.o \
|
|
|
|
gotoxy.o \
|
|
|
|
gotoy.o \
|
2002-11-16 23:45:15 +00:00
|
|
|
open.o \
|
2002-07-18 13:29:04 +00:00
|
|
|
oserrlist.o \
|
2002-06-22 10:58:24 +00:00
|
|
|
oserror.o \
|
2002-11-16 23:45:15 +00:00
|
|
|
read.o \
|
2002-11-17 22:45:55 +00:00
|
|
|
rwcommon.o \
|
2002-11-16 23:45:15 +00:00
|
|
|
scratch.o \
|
|
|
|
sysremove.o \
|
2002-11-12 22:49:38 +00:00
|
|
|
systime.o \
|
2003-01-01 21:33:49 +00:00
|
|
|
wherex.o \
|
|
|
|
wherey.o \
|
2002-11-16 23:45:15 +00:00
|
|
|
write.o
|
2000-05-28 13:40:48 +00:00
|
|
|
|
2003-02-06 15:35:30 +00:00
|
|
|
#--------------------------------------------------------------------------
|
|
|
|
# Targets
|
|
|
|
|
|
|
|
.PHONY: all clean zap
|
|
|
|
|
2000-05-28 13:40:48 +00:00
|
|
|
all: $(C_OBJS) $(S_OBJS)
|
|
|
|
|
|
|
|
clean:
|
2003-08-20 11:59:27 +00:00
|
|
|
@$(RM) *~ *.bck $(C_OBJS:.o=.s) $(C_OBJS) $(S_OBJS)
|
2000-05-28 13:40:48 +00:00
|
|
|
|
2003-02-06 15:35:30 +00:00
|
|
|
zap: clean
|
|
|
|
|