2000-05-28 13:40:48 +00:00
|
|
|
#
|
|
|
|
# makefile for CC65 runtime 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
|
|
|
|
|
|
|
|
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
|
|
|
.c.s:
|
|
|
|
@$(CC) $(CFLAGS) $<
|
|
|
|
|
|
|
|
.s.o:
|
|
|
|
@$(AS) -g -o $@ $(AFLAGS) $<
|
|
|
|
|
2003-02-06 15:35:30 +00:00
|
|
|
#--------------------------------------------------------------------------
|
|
|
|
# Object files
|
|
|
|
|
2000-10-25 07:06:55 +00:00
|
|
|
OBJS = add.o \
|
|
|
|
addeqsp.o \
|
2000-10-25 19:53:22 +00:00
|
|
|
addysp.o \
|
2002-11-23 11:19:51 +00:00
|
|
|
along.o \
|
2000-10-25 07:06:55 +00:00
|
|
|
and.o \
|
|
|
|
aslax1.o \
|
|
|
|
aslax2.o \
|
|
|
|
aslax3.o \
|
2001-07-25 21:36:01 +00:00
|
|
|
aslax4.o \
|
2000-10-25 07:06:55 +00:00
|
|
|
asleax1.o \
|
|
|
|
asleax2.o \
|
|
|
|
asleax3.o \
|
2001-07-25 21:36:01 +00:00
|
|
|
asleax4.o \
|
2004-07-05 22:24:06 +00:00
|
|
|
asr.o \
|
2000-10-25 07:06:55 +00:00
|
|
|
asrax1.o \
|
|
|
|
asrax2.o \
|
|
|
|
asrax3.o \
|
2001-07-25 21:36:01 +00:00
|
|
|
asrax4.o \
|
2000-10-25 07:06:55 +00:00
|
|
|
asreax1.o \
|
|
|
|
asreax2.o \
|
|
|
|
asreax3.o \
|
2001-07-25 21:36:01 +00:00
|
|
|
asreax4.o \
|
2000-10-25 07:06:55 +00:00
|
|
|
axlong.o \
|
|
|
|
bneg.o \
|
|
|
|
bpushbsp.o \
|
|
|
|
call.o \
|
2004-04-04 14:15:45 +00:00
|
|
|
callirq.o \
|
2003-03-07 11:53:17 +00:00
|
|
|
callmain.o \
|
2000-10-25 07:06:55 +00:00
|
|
|
compl.o \
|
2000-11-20 22:17:14 +00:00
|
|
|
condes.o \
|
2000-10-31 18:42:47 +00:00
|
|
|
decax1.o \
|
|
|
|
decax2.o \
|
2001-03-26 20:47:12 +00:00
|
|
|
decax3.o \
|
|
|
|
decax4.o \
|
|
|
|
decax5.o \
|
|
|
|
decax6.o \
|
|
|
|
decax7.o \
|
|
|
|
decax8.o \
|
2000-10-31 18:42:47 +00:00
|
|
|
decaxy.o \
|
2000-10-25 19:53:22 +00:00
|
|
|
decsp1.o \
|
|
|
|
decsp2.o \
|
|
|
|
decsp3.o \
|
|
|
|
decsp4.o \
|
|
|
|
decsp5.o \
|
|
|
|
decsp6.o \
|
|
|
|
decsp7.o \
|
|
|
|
decsp8.o \
|
2000-10-25 07:06:55 +00:00
|
|
|
div.o \
|
|
|
|
enter.o \
|
|
|
|
eq.o \
|
|
|
|
ge.o \
|
|
|
|
gt.o \
|
|
|
|
icmp.o \
|
2000-10-31 18:42:47 +00:00
|
|
|
incax1.o \
|
|
|
|
incax2.o \
|
|
|
|
incax3.o \
|
|
|
|
incax5.o \
|
|
|
|
incax6.o \
|
|
|
|
incax7.o \
|
|
|
|
incax8.o \
|
|
|
|
incaxy.o \
|
2000-10-25 19:53:22 +00:00
|
|
|
incsp1.o \
|
|
|
|
incsp2.o \
|
|
|
|
incsp3.o \
|
|
|
|
incsp4.o \
|
|
|
|
incsp5.o \
|
|
|
|
incsp6.o \
|
|
|
|
incsp7.o \
|
|
|
|
incsp8.o \
|
2002-12-26 15:45:48 +00:00
|
|
|
jmpvec.o \
|
2000-10-25 07:06:55 +00:00
|
|
|
ladd.o \
|
|
|
|
laddeq.o \
|
|
|
|
laddeqsp.o \
|
|
|
|
land.o \
|
2004-07-05 22:38:21 +00:00
|
|
|
lasr.o \
|
2000-10-25 07:06:55 +00:00
|
|
|
lbneg.o \
|
|
|
|
lcmp.o \
|
|
|
|
lcompl.o \
|
|
|
|
ldai.o \
|
|
|
|
ldau0sp.o \
|
|
|
|
ldaui.o \
|
|
|
|
ldauisp.o \
|
|
|
|
ldaxi.o \
|
|
|
|
ldaxsp.o \
|
|
|
|
ldeaxi.o \
|
2000-11-01 22:03:22 +00:00
|
|
|
ldeaxysp.o \
|
2000-10-25 07:06:55 +00:00
|
|
|
ldec.o \
|
|
|
|
ldiv.o \
|
|
|
|
le.o \
|
|
|
|
leasp.o \
|
|
|
|
leave.o \
|
|
|
|
leq.o \
|
|
|
|
lge.o \
|
|
|
|
lgt.o \
|
|
|
|
linc.o \
|
|
|
|
lle.o \
|
|
|
|
llt.o \
|
|
|
|
lmod.o \
|
|
|
|
lmul.o \
|
|
|
|
lne.o \
|
|
|
|
lneg.o \
|
|
|
|
lor.o \
|
|
|
|
lpop.o \
|
|
|
|
lpush.o \
|
|
|
|
lrsub.o \
|
|
|
|
lsave.o \
|
|
|
|
lshelp.o \
|
|
|
|
lshl.o \
|
|
|
|
lshr.o \
|
|
|
|
lsub.o \
|
|
|
|
lsubeq.o \
|
|
|
|
lsubeqsp.o \
|
2000-10-25 19:53:22 +00:00
|
|
|
lt.o \
|
2000-10-25 07:06:55 +00:00
|
|
|
ltest.o \
|
|
|
|
ludiv.o \
|
|
|
|
luge.o \
|
|
|
|
lugt.o \
|
|
|
|
lule.o \
|
|
|
|
lult.o \
|
|
|
|
lumod.o \
|
2001-04-04 20:27:33 +00:00
|
|
|
lxor.o \
|
2000-10-25 07:06:55 +00:00
|
|
|
makebool.o \
|
2001-04-04 20:27:33 +00:00
|
|
|
mod.o \
|
|
|
|
mul.o \
|
2001-10-04 21:34:14 +00:00
|
|
|
mulax3.o \
|
|
|
|
mulax5.o \
|
2002-03-16 20:27:50 +00:00
|
|
|
mulax6.o \
|
|
|
|
mulax7.o \
|
|
|
|
mulax9.o \
|
2001-10-04 21:34:14 +00:00
|
|
|
mulax10.o \
|
2001-04-04 20:27:33 +00:00
|
|
|
ne.o \
|
|
|
|
neg.o \
|
|
|
|
or.o \
|
2000-10-31 18:57:00 +00:00
|
|
|
pleasp.o \
|
2001-04-04 20:27:33 +00:00
|
|
|
popa.o \
|
2000-10-25 07:06:55 +00:00
|
|
|
popsreg.o \
|
2000-10-26 20:43:54 +00:00
|
|
|
push1.o \
|
|
|
|
push2.o \
|
|
|
|
push3.o \
|
|
|
|
push4.o \
|
|
|
|
push5.o \
|
|
|
|
push6.o \
|
|
|
|
push7.o \
|
|
|
|
pusha.o \
|
|
|
|
pushaff.o \
|
|
|
|
pushax.o \
|
2000-10-25 07:06:55 +00:00
|
|
|
pushb.o \
|
|
|
|
pushbsp.o \
|
2000-10-26 20:43:54 +00:00
|
|
|
pushc0.o \
|
|
|
|
pushc1.o \
|
|
|
|
pushc2.o \
|
2000-11-01 22:03:22 +00:00
|
|
|
pushlysp.o \
|
2000-10-25 07:06:55 +00:00
|
|
|
pushw.o \
|
|
|
|
pushwsp.o \
|
2002-11-25 12:38:38 +00:00
|
|
|
regswap.o \
|
|
|
|
regswap1.o \
|
|
|
|
regswap2.o \
|
2000-10-25 19:53:22 +00:00
|
|
|
return0.o \
|
|
|
|
return1.o \
|
2001-04-04 20:27:33 +00:00
|
|
|
rsub.o \
|
2000-10-25 07:06:55 +00:00
|
|
|
shelp.o \
|
2001-04-04 20:27:33 +00:00
|
|
|
shl.o \
|
|
|
|
shr.o \
|
2000-10-25 07:06:55 +00:00
|
|
|
shrax1.o \
|
|
|
|
shrax2.o \
|
|
|
|
shrax3.o \
|
2001-07-25 21:36:01 +00:00
|
|
|
shrax4.o \
|
2000-10-25 07:06:55 +00:00
|
|
|
shreax1.o \
|
|
|
|
shreax2.o \
|
|
|
|
shreax3.o \
|
2001-07-25 21:36:01 +00:00
|
|
|
shreax4.o \
|
2000-10-26 06:35:45 +00:00
|
|
|
staspidx.o \
|
2000-10-25 07:06:55 +00:00
|
|
|
staxsp.o \
|
2001-04-04 20:27:33 +00:00
|
|
|
staxspi.o \
|
2000-10-25 07:06:55 +00:00
|
|
|
steaxsp.o \
|
2001-04-02 20:24:24 +00:00
|
|
|
steaxspi.o \
|
2001-03-19 22:26:47 +00:00
|
|
|
stkchk.o \
|
2000-10-25 07:06:55 +00:00
|
|
|
sub.o \
|
|
|
|
subeqsp.o \
|
2000-10-25 19:53:22 +00:00
|
|
|
subysp.o \
|
2000-10-25 07:06:55 +00:00
|
|
|
swap.o \
|
|
|
|
test.o \
|
|
|
|
tosint.o \
|
|
|
|
toslong.o \
|
|
|
|
udiv.o \
|
|
|
|
uge.o \
|
|
|
|
ugt.o \
|
|
|
|
ule.o \
|
|
|
|
ult.o \
|
|
|
|
umod.o \
|
2002-05-26 08:29:31 +00:00
|
|
|
xor.o \
|
2002-10-05 17:59:42 +00:00
|
|
|
zeropage.o
|
2000-10-25 07:06:55 +00:00
|
|
|
|
2003-02-06 15:35:30 +00:00
|
|
|
#--------------------------------------------------------------------------
|
|
|
|
# Targets
|
|
|
|
|
|
|
|
.PHONY: all clean zap
|
|
|
|
|
2000-10-25 07:06:55 +00:00
|
|
|
all: $(OBJS)
|
2000-05-28 13:40:48 +00:00
|
|
|
|
|
|
|
clean:
|
2003-08-20 11:59:27 +00:00
|
|
|
@$(RM) *~ $(COBJS:.o=.s) $(OBJS)
|
2000-05-28 13:40:48 +00:00
|
|
|
|
2003-02-06 15:35:30 +00:00
|
|
|
zap: clean
|
2000-05-28 13:40:48 +00:00
|
|
|
|