Initial revision
[ssr] / StraySrc / SapphToys / !DrawX / Makefile,fe1
1 #
2 # Makefile
3 #
4 # © 1998 Straylight/Edgeware
5 #
6
7 #----- Licensing note -------------------------------------------------------
8 #
9 # This makefile is free software; you can redistribute it and/or modify
10 # it under the terms of the GNU General Public License as published by
11 # the Free Software Foundation; either version 2, or (at your option)
12 # any later version.
13 #
14 # This makefile is distributed in the hope that it will be useful,
15 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 # GNU General Public License for more details.
18 #
19 # You should have received a copy of the GNU General Public License
20 # along with this makefile. If not, write to the Free Software Foundation,
21 # 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
22
23 #----- Compilation flags ----------------------------------------------------
24
25 # --- Uncomment to use the C4 tools ---
26
27 # OLD = o-
28
29 # --- C compilation ---
30
31 CC = $(OLD)cc -c -o $@
32 CFLAGS = -depend !Depend -throwback -ffah -Ilibs: -IC:
33 COMPILE = $(CC) $(CFLAGS)
34
35 # --- Assembling ---
36
37 AS = $(OLD)objasm -quit -to $@
38 ASFLAGS = -stamp -depend !Depend -throwback
39 ASSEMBLE = $(AS) $(ASFLAGS) -from
40
41 BAS = basasm
42
43 # --- Linking ---
44
45 LD = $(OLD)link -o $@
46 LD_APP = $(LD) -aif
47 LD_UTIL = $(LD) -bin -base 0
48 LD_MOD = $(LD) -bin -base 0
49 LD_BIN = $(LD) -bin -base 0
50 LD_DLL = $(LD) -rmf
51 LD_AOF = $(LD) -aof
52
53 # --- Making libraries ---
54
55 AR = $(OLD)libfile -o
56
57 CDLL = cdll
58
59 # --- Setting file types ---
60
61 SET_APP = SetType $@ FF8
62 SET_MOD = SetType $@ FFA
63 SET_UTIL = SetType $@ FFC
64 SET_DLL = SetType $@ FFD
65
66 # --- Other maintenance things ---
67
68 RM = ssrclean
69 INSTALL = inst
70 SETDATE = setdate
71 SQUEEZE = squeeze $@
72 DATE = %zdy %mo %ce%yr
73 MODDATE = %dy %m3 %ce%yr
74 CRIGHT = © %ce%yr Straylight
75 FIXLINK = fixlink $@
76
77 #----- Default rules --------------------------------------------------------
78
79 .SUFFIXES: .o .c .s .bs
80 .c.o:
81 $(COMPILE) $<
82 .s.o:
83 $(ASSEMBLE) $<
84 .bs.o:
85 $(BAS) $< $@
86
87 #----- Compiling things -----------------------------------------------------
88
89 all: !RunImage Modules.Sculptrix Modules.Sprinkle setSlot
90
91 !RunImage: o.drawx libs:lib.sapphdll
92 $(SETDATE) o.version version="1.03 ($(DATE))" cright="$(CRIGHT)"
93 $(LD_APP) o.drawx o.version libs:lib.sapphdll
94 $(SQUEEZE)
95 $(SET_APP)
96
97 Modules.Sculptrix: <SSR$ModDir>.Sculptrix
98 $(INSTALL) <SSR$ModDir>.Sculptrix Modules
99
100 Modules.Sprinkle: <SSR$ModDir>.Sprinkle
101 $(INSTALL) <SSR$ModDir>.Sprinkle Modules
102
103 setSlot: <SSR$BinDir>.setSlot
104 $(INSTALL) <SSR$BinDir>.setSlot @
105
106 install:
107
108 clean:
109 -$(RM) o.* !RunImage Modules.Sculptrix setSlot
110
111 #----- Dynamic dependencies -------------------------------------------------
112
113 # Dynamic dependencies:
114 o.drawx: s.drawx
115 o.drawx: libs:header
116 o.drawx: libs:swis
117 o.drawx: libs:stream
118 o.drawx: sapphire:sapphire
119 o.drawx: sapphire:akbd
120 o.drawx: sapphire:alloc
121 o.drawx: sapphire:banner
122 o.drawx: sapphire:buttons
123 o.drawx: sapphire:cmdLine
124 o.drawx: sapphire:dbox
125 o.drawx: sapphire:defHandler
126 o.drawx: sapphire:divide
127 o.drawx: sapphire:drag
128 o.drawx: sapphire:draw
129 o.drawx: sapphire:errorBox
130 o.drawx: sapphire:event
131 o.drawx: sapphire:fastMove
132 o.drawx: sapphire:flex
133 o.drawx: sapphire:heap
134 o.drawx: sapphire:help
135 o.drawx: sapphire:hour
136 o.drawx: sapphire:ibicon
137 o.drawx: sapphire:idle
138 o.drawx: sapphire:intKeys
139 o.drawx: sapphire:libOpts
140 o.drawx: sapphire:mbox
141 o.drawx: sapphire:menu
142 o.drawx: sapphire:menuDefs
143 o.drawx: sapphire:msgs
144 o.drawx: sapphire:progInfo
145 o.drawx: sapphire:ptr
146 o.drawx: sapphire:report
147 o.drawx: sapphire:res
148 o.drawx: sapphire:resources
149 o.drawx: sapphire:screen
150 o.drawx: sapphire:string
151 o.drawx: sapphire:warning
152 o.drawx: sapphire:wimp
153 o.drawx: sapphire:win
154 o.drawx: sapphire:winUtils
155 o.drawx: sapphire:choices.choices
156 o.drawx: sapphire:choices.options
157 o.drawx: sapphire:choices.prefs
158 o.drawx: sapphire:dbx.dbx
159 o.drawx: sapphire:dbx.arrow
160 o.drawx: sapphire:dbx.dbx
161 o.drawx: sapphire:dbx.numWrite
162 o.drawx: sapphire:dbx.dbx
163 o.drawx: sapphire:xfer.load
164 o.drawx: sapphire:xfer.save
165 o.drawx: sapphire:xfer.saveAs
166 o.drawx: s.drawx
167 o.drawx: libs:header
168 o.drawx: libs:swis
169 o.drawx: libs:stream
170 o.drawx: sapphire:sapphire
171 o.drawx: sapphire:akbd
172 o.drawx: sapphire:alloc
173 o.drawx: sapphire:banner
174 o.drawx: sapphire:buttons
175 o.drawx: sapphire:cmdLine
176 o.drawx: sapphire:dbox
177 o.drawx: sapphire:defHandler
178 o.drawx: sapphire:divide
179 o.drawx: sapphire:drag
180 o.drawx: sapphire:draw
181 o.drawx: sapphire:errorBox
182 o.drawx: sapphire:event
183 o.drawx: sapphire:fastMove
184 o.drawx: sapphire:flex
185 o.drawx: sapphire:heap
186 o.drawx: sapphire:help
187 o.drawx: sapphire:hour
188 o.drawx: sapphire:ibicon
189 o.drawx: sapphire:idle
190 o.drawx: sapphire:intKeys
191 o.drawx: sapphire:libOpts
192 o.drawx: sapphire:mbox
193 o.drawx: sapphire:menu
194 o.drawx: sapphire:menuDefs
195 o.drawx: sapphire:msgs
196 o.drawx: sapphire:progInfo
197 o.drawx: sapphire:ptr
198 o.drawx: sapphire:report
199 o.drawx: sapphire:res
200 o.drawx: sapphire:resources
201 o.drawx: sapphire:screen
202 o.drawx: sapphire:string
203 o.drawx: sapphire:warning
204 o.drawx: sapphire:wimp
205 o.drawx: sapphire:win
206 o.drawx: sapphire:winUtils
207 o.drawx: sapphire:choices.choices
208 o.drawx: sapphire:choices.options
209 o.drawx: sapphire:choices.prefs
210 o.drawx: sapphire:dbx.dbx
211 o.drawx: sapphire:dbx.arrow
212 o.drawx: sapphire:dbx.dbx
213 o.drawx: sapphire:dbx.numWrite
214 o.drawx: sapphire:dbx.dbx
215 o.drawx: sapphire:xfer.load
216 o.drawx: sapphire:xfer.save
217 o.drawx: sapphire:xfer.saveAs
218 o.drawx: s.drawx
219 o.drawx: libs:header
220 o.drawx: libs:swis
221 o.drawx: libs:stream
222 o.drawx: sapphire:sapphire
223 o.drawx: sapphire:akbd
224 o.drawx: sapphire:alloc
225 o.drawx: sapphire:banner
226 o.drawx: sapphire:buttons
227 o.drawx: sapphire:cmdLine
228 o.drawx: sapphire:dbox
229 o.drawx: sapphire:defHandler
230 o.drawx: sapphire:divide
231 o.drawx: sapphire:drag
232 o.drawx: sapphire:draw
233 o.drawx: sapphire:errorBox
234 o.drawx: sapphire:event
235 o.drawx: sapphire:fastMove
236 o.drawx: sapphire:flex
237 o.drawx: sapphire:heap
238 o.drawx: sapphire:help
239 o.drawx: sapphire:hour
240 o.drawx: sapphire:ibicon
241 o.drawx: sapphire:idle
242 o.drawx: sapphire:intKeys
243 o.drawx: sapphire:libOpts
244 o.drawx: sapphire:mbox
245 o.drawx: sapphire:menu
246 o.drawx: sapphire:menuDefs
247 o.drawx: sapphire:msgs
248 o.drawx: sapphire:progInfo
249 o.drawx: sapphire:ptr
250 o.drawx: sapphire:report
251 o.drawx: sapphire:res
252 o.drawx: sapphire:resources
253 o.drawx: sapphire:screen
254 o.drawx: sapphire:string
255 o.drawx: sapphire:warning
256 o.drawx: sapphire:wimp
257 o.drawx: sapphire:win
258 o.drawx: sapphire:winUtils
259 o.drawx: sapphire:choices.choices
260 o.drawx: sapphire:choices.options
261 o.drawx: sapphire:choices.prefs
262 o.drawx: sapphire:dbx.dbx
263 o.drawx: sapphire:dbx.arrow
264 o.drawx: sapphire:dbx.dbx
265 o.drawx: sapphire:dbx.numWrite
266 o.drawx: sapphire:dbx.dbx
267 o.drawx: sapphire:xfer.load
268 o.drawx: sapphire:xfer.save
269 o.drawx: sapphire:xfer.saveAs
270 o.drawx: s.drawx
271 o.drawx: libs:header
272 o.drawx: libs:swis
273 o.drawx: libs:stream
274 o.drawx: sapphire:sapphire
275 o.drawx: sapphire:akbd
276 o.drawx: sapphire:alloc
277 o.drawx: sapphire:banner
278 o.drawx: sapphire:buttons
279 o.drawx: sapphire:cmdLine
280 o.drawx: sapphire:dbox
281 o.drawx: sapphire:defHandler
282 o.drawx: sapphire:divide
283 o.drawx: sapphire:drag
284 o.drawx: sapphire:draw
285 o.drawx: sapphire:errorBox
286 o.drawx: sapphire:event
287 o.drawx: sapphire:fastMove
288 o.drawx: sapphire:flex
289 o.drawx: sapphire:heap
290 o.drawx: sapphire:help
291 o.drawx: sapphire:hour
292 o.drawx: sapphire:ibicon
293 o.drawx: sapphire:idle
294 o.drawx: sapphire:intKeys
295 o.drawx: sapphire:libOpts
296 o.drawx: sapphire:mbox
297 o.drawx: sapphire:menu
298 o.drawx: sapphire:menuDefs
299 o.drawx: sapphire:msgs
300 o.drawx: sapphire:progInfo
301 o.drawx: sapphire:ptr
302 o.drawx: sapphire:report
303 o.drawx: sapphire:res
304 o.drawx: sapphire:resources
305 o.drawx: sapphire:screen
306 o.drawx: sapphire:string
307 o.drawx: sapphire:warning
308 o.drawx: sapphire:wimp
309 o.drawx: sapphire:win
310 o.drawx: sapphire:winUtils
311 o.drawx: sapphire:choices.choices
312 o.drawx: sapphire:choices.options
313 o.drawx: sapphire:choices.prefs
314 o.drawx: sapphire:dbx.dbx
315 o.drawx: sapphire:dbx.arrow
316 o.drawx: sapphire:dbx.dbx
317 o.drawx: sapphire:dbx.numWrite
318 o.drawx: sapphire:dbx.dbx
319 o.drawx: sapphire:xfer.load
320 o.drawx: sapphire:xfer.save
321 o.drawx: sapphire:xfer.saveAs
322 o.drawx: s.drawx
323 o.drawx: libs:header
324 o.drawx: libs:swis
325 o.drawx: libs:stream
326 o.drawx: sapphire:sapphire
327 o.drawx: sapphire:akbd
328 o.drawx: sapphire:alloc
329 o.drawx: sapphire:banner
330 o.drawx: sapphire:buttons
331 o.drawx: sapphire:cmdLine
332 o.drawx: sapphire:dbox
333 o.drawx: sapphire:defHandler
334 o.drawx: sapphire:divide
335 o.drawx: sapphire:drag
336 o.drawx: sapphire:draw
337 o.drawx: sapphire:errorBox
338 o.drawx: sapphire:event
339 o.drawx: sapphire:fastMove
340 o.drawx: sapphire:flex
341 o.drawx: sapphire:heap
342 o.drawx: sapphire:help
343 o.drawx: sapphire:hour
344 o.drawx: sapphire:ibicon
345 o.drawx: sapphire:idle
346 o.drawx: sapphire:intKeys
347 o.drawx: sapphire:libOpts
348 o.drawx: sapphire:mbox
349 o.drawx: sapphire:menu
350 o.drawx: sapphire:menuDefs
351 o.drawx: sapphire:msgs
352 o.drawx: sapphire:progInfo
353 o.drawx: sapphire:ptr
354 o.drawx: sapphire:report
355 o.drawx: sapphire:res
356 o.drawx: sapphire:resources
357 o.drawx: sapphire:screen
358 o.drawx: sapphire:string
359 o.drawx: sapphire:warning
360 o.drawx: sapphire:wimp
361 o.drawx: sapphire:win
362 o.drawx: sapphire:winUtils
363 o.drawx: sapphire:choices.choices
364 o.drawx: sapphire:choices.options
365 o.drawx: sapphire:choices.prefs
366 o.drawx: sapphire:dbx.dbx
367 o.drawx: sapphire:dbx.arrow
368 o.drawx: sapphire:dbx.dbx
369 o.drawx: sapphire:dbx.numWrite
370 o.drawx: sapphire:dbx.dbx
371 o.drawx: sapphire:xfer.load
372 o.drawx: sapphire:xfer.save
373 o.drawx: sapphire:xfer.saveAs