]> git.sur5r.net Git - cc65/blob - libsrc/runtime/Makefile
c8a76beabf5b424462b9d52f6893d096fbfff95b
[cc65] / libsrc / runtime / Makefile
1 #
2 # makefile for CC65 runtime library
3 #
4
5 .SUFFIXES: .o .s .c
6
7 #--------------------------------------------------------------------------
8 # Programs and flags
9
10 SYS     = none
11
12 AS      = ../../src/ca65/ca65
13 CC      = ../../src/cc65/cc65
14 LD      = ../../src/ld65/ld65
15
16 AFLAGS  = -t $(SYS) -I../../asminc
17 CFLAGS  = -Osir -g -T -t $(SYS) --forget-inc-paths -I . -I ../../include
18
19 #--------------------------------------------------------------------------
20 # Rules
21
22 .c.s:
23         @$(CC) $(CFLAGS) $<
24
25 .s.o:
26         @$(AS) -g -o $@ $(AFLAGS) $<
27
28 #--------------------------------------------------------------------------
29 # Object files
30
31 OBJS =  add.o           \
32         addeqsp.o       \
33         addysp.o        \
34         along.o         \
35         and.o           \
36         aslax1.o        \
37         aslax2.o        \
38         aslax3.o        \
39         aslax4.o        \
40         asleax1.o       \
41         asleax2.o       \
42         asleax3.o       \
43         asleax4.o       \
44         asr.o           \
45         asrax1.o        \
46         asrax2.o        \
47         asrax3.o        \
48         asrax4.o        \
49         asreax1.o       \
50         asreax2.o       \
51         asreax3.o       \
52         asreax4.o       \
53         axlong.o        \
54         bneg.o          \
55         bpushbsp.o      \
56         call.o          \
57         callirq.o       \
58         callmain.o      \
59         compl.o         \
60         condes.o        \
61         decax1.o        \
62         decax2.o        \
63         decax3.o        \
64         decax4.o        \
65         decax5.o        \
66         decax6.o        \
67         decax7.o        \
68         decax8.o        \
69         decaxy.o        \
70         decsp1.o        \
71         decsp2.o        \
72         decsp3.o        \
73         decsp4.o        \
74         decsp5.o        \
75         decsp6.o        \
76         decsp7.o        \
77         decsp8.o        \
78         div.o           \
79         enter.o         \
80         eq.o            \
81         ge.o            \
82         gt.o            \
83         icmp.o          \
84         imul16x16r32.o  \
85         incax1.o        \
86         incax2.o        \
87         incax3.o        \
88         incax5.o        \
89         incax6.o        \
90         incax7.o        \
91         incax8.o        \
92         incaxy.o        \
93         incsp1.o        \
94         incsp2.o        \
95         incsp3.o        \
96         incsp4.o        \
97         incsp5.o        \
98         incsp6.o        \
99         incsp7.o        \
100         incsp8.o        \
101         jmpvec.o        \
102         ladd.o          \
103         laddeq.o        \
104         laddeqsp.o      \
105         land.o          \
106         lasr.o          \
107         lbneg.o         \
108         lcmp.o          \
109         lcompl.o        \
110         ldai.o          \
111         ldau0sp.o       \
112         ldaui.o         \
113         ldauisp.o       \
114         ldaxi.o         \
115         ldaxsp.o        \
116         ldeaxi.o        \
117         ldeaxysp.o      \
118         ldec.o          \
119         ldiv.o          \
120         le.o            \
121         leaaxsp.o       \
122         leave.o         \
123         leq.o           \
124         lge.o           \
125         lgt.o           \
126         linc.o          \
127         lle.o           \
128         llt.o           \
129         lmod.o          \
130         lmul.o          \
131         lne.o           \
132         lneg.o          \
133         lor.o           \
134         lpop.o          \
135         lpush.o         \
136         lrsub.o         \
137         lsave.o         \
138         lshelp.o        \
139         lshl.o          \
140         lshr.o          \
141         lsub.o          \
142         lsubeq.o        \
143         lsubeqsp.o      \
144         lt.o            \
145         ltest.o         \
146         ludiv.o         \
147         luge.o          \
148         lugt.o          \
149         lule.o          \
150         lult.o          \
151         lumod.o         \
152         lxor.o          \
153         makebool.o      \
154         mod.o           \
155         mul.o           \
156         mul8.o          \
157         mul8x8r16.o     \
158         mulax3.o        \
159         mulax5.o        \
160         mulax6.o        \
161         mulax7.o        \
162         mulax9.o        \
163         mulax10.o       \
164         ne.o            \
165         neg.o           \
166         or.o            \
167         popa.o          \
168         popsreg.o       \
169         push1.o         \
170         push2.o         \
171         push3.o         \
172         push4.o         \
173         push5.o         \
174         push6.o         \
175         push7.o         \
176         pusha.o         \
177         pushaff.o       \
178         pushax.o        \
179         pushb.o         \
180         pushbsp.o       \
181         pushc0.o        \
182         pushc1.o        \
183         pushc2.o        \
184         pushlysp.o      \
185         pushw.o         \
186         pushwsp.o       \
187         regswap.o       \
188         regswap1.o      \
189         regswap2.o      \
190         return0.o       \
191         return1.o       \
192         rsub.o          \
193         shelp.o         \
194         shl.o           \
195         shr.o           \
196         shrax1.o        \
197         shrax2.o        \
198         shrax3.o        \
199         shrax4.o        \
200         shreax1.o       \
201         shreax2.o       \
202         shreax3.o       \
203         shreax4.o       \
204         staspidx.o      \
205         staxsp.o        \
206         staxspi.o       \
207         steaxsp.o       \
208         steaxspi.o      \
209         stkchk.o        \
210         sub.o           \
211         subeqsp.o       \
212         subysp.o        \
213         swap.o          \
214         tosint.o        \
215         toslong.o       \
216         udiv.o          \
217         uge.o           \
218         ugt.o           \
219         ule.o           \
220         ult.o           \
221         udiv32by16r16.o \
222         umod.o          \
223         umul16x16r32.o  \
224         xor.o           \
225         zeropage.o
226
227 #--------------------------------------------------------------------------
228 # Targets
229
230 .PHONY: all clean zap
231
232 all:    $(OBJS)
233
234 clean:
235         @$(RM) *~ $(COBJS:.o=.s) $(OBJS)
236
237 zap:    clean
238