|
|
1.1 root 1: ########
2: #
3: # libj makefile
4: #
5: ########
6: #
7: # Standard Macros
8: #
9: ########
10: AUX_CLEAN =
11: MAKE.LO = make.lo
12: MAKE.FWROOT = $(FWROOT)/make.root
13: MKGEN = mkgen
14: ROOT = $(DMD)
15: FWROOT = ../../..
16: INC = $(FWROOT)/include
17: SGSX =
18:
19: INC_LIST =\
20: -I$(INC)
21:
22: CLEAN =\
23: .C.o\
24: .c.o\
25: .s.o\
26: Jrect.o\
27: addr.o\
28: alloc.o\
29: arc.o\
30: arith.o\
31: balloc.o\
32: bitblt.o\
33: clip.o\
34: defont.o\
35: display.o\
36: gcalloc.o\
37: jlineto.o\
38: jstring.o\
39: jtexture.o\
40: line.o\
41: masks.o\
42: menu.o\
43: min.o\
44: point.o\
45: ptinrect.o\
46: rect.o\
47: rectXrect.o\
48: rectclip.o\
49: rectf.o\
50: screenswap.o\
51: string.o\
52: strwidth.o\
53: texture.o
54:
55: all:
56: install: all
57:
58: ##########
59: #
60: # make.root
61: #
62: ##########
63:
64: FWBIN=$(FWROOT)/bin
65: FWLIB=$(FWROOT)/fwlib
66: FWSRC=$(FWROOT)/src
67: FWINCLUDE=$(FWROOT)/include
68: UINC=/usr/include
69: FWDEMO=$(FWROOT)/demo
70: MCC=$(ROOT)/bin/dmdcc
71: MLD=m32ld
72: MAR=ar
73: MLORDER=m32lorder
74:
75: ########
76: #
77: # make.lo
78: #
79: ########
80:
81:
82: TITLE = libj makefile
83: PRODUCTS = libj.a
84:
85:
86: MAKEARG= -$(MAKEFLAGS)
87:
88: MLORDER=m32lorder
89: LCLCFLAGS=-J -g -O
90: CLEAN= $(OBJ) libj.a
91:
92:
93: CC_CMD = $(MCC) $(MCFLAGS) $(LCLCFLAGS) -c
94:
95: OBJ=jstring.o menu.o \
96: balloc.o min.o point.o \
97: ptinrect.o alloc.o gcalloc.o \
98: rectXrect.o rectf.o jtexture.o Jrect.o rectclip.o \
99: screenswap.o string.o bitblt.o strwidth.o defont.o rect.o \
100: texture.o jlineto.o arith.o clip.o line.o \
101: addr.o masks.o display.o
102:
103: CFILES= alloc.c balloc.c\
104: bitblt.s clip.c \
105: display.c gcalloc.c \
106: jlineto.c \
107: Jrect.c jstring.c jtexture.c line.c masks.c menu.c min.c\
108: point.c ptinrect.c \
109: rectXrect.c rectclip.c rectf.c screenswap.c string.c\
110: defont.c \
111: strwidth.c texture.c rect.s
112:
113: .C.o:
114: echo ".C files no longer built"
115:
116: .c.o:
117: $(MCC) $(MCFLAGS) $(LCLCFLAGS) -c $<
118:
119: .s.o:
120: $(MCC) -c $<
121:
122: libj.a: $(OBJ)
123: rm -f libj.a
124: $(MAR) cr libj.a $(OBJ)
125:
126: texture.o: texture.s
127: $(MCC) $(MCFLAGS) -g -c texture.s
128:
129: bitblt.o: bitblt.c
130: $(MCC) $(MCFLAGS) -J -g -c bitblt.c
131:
132: min.o: min.s
133: $(MCC) -c min.s
134:
135: arith.o: arith.s
136: $(MCC) -c arith.s
137:
138: rect.o: rect.s
139: $(MCC) -c rect.s
140:
141: addr.o: addr.s
142: $(MCC) -c addr.s
143:
144: save:
145: -cp $(FWLIB)/libj.a olibj.a
146:
147: install:libj.a
148: cp libj.a $(FWLIB)/libj.a
149:
150:
151: ########
152: #
153: # All dependencies and rules not explicitly stated
154: # (including header and nested header dependencies)
155: #
156: ########
157:
158: Jrect.o: Jrect.c
159: Jrect.o: $(INC)/jerq.h
160: Jrect.o: $(INC)/jerqproc.h # nested include from mpx.h
161: Jrect.o: $(INC)/layer.h # nested include from mpx.h
162: Jrect.o: $(INC)/mpx.h # nested include from jerq.h
163: Jrect.o: $(INC)/sys/2681.h # nested include from jerq.h
164: $(MCC) $(MCFLAGS) $(LCLCFLAGS) -c Jrect.c
165:
166: alloc.o: alloc.c
167: $(MCC) $(MCFLAGS) $(LCLCFLAGS) -c alloc.c
168:
169:
170: balloc.o: balloc.c
171: balloc.o: $(INC)/jerq.h
172: balloc.o: $(INC)/jerqproc.h # nested include from mpx.h
173: balloc.o: $(INC)/layer.h # nested include from mpx.h
174: balloc.o: $(INC)/mpx.h # nested include from jerq.h
175: balloc.o: $(INC)/sys/2681.h # nested include from jerq.h
176: $(MCC) $(MCFLAGS) $(LCLCFLAGS) -c balloc.c
177:
178: bitblt.o: $(INC)/jerq.h
179: bitblt.o: $(INC)/jerqproc.h # nested include from mpx.h
180: bitblt.o: $(INC)/layer.h # nested include from mpx.h
181: bitblt.o: $(INC)/mpx.h # nested include from jerq.h
182: bitblt.o: $(INC)/sys/2681.h # nested include from jerq.h
183:
184: clip.o: clip.c
185: clip.o: $(INC)/jerq.h
186: clip.o: $(INC)/jerqproc.h # nested include from mpx.h
187: clip.o: $(INC)/layer.h # nested include from mpx.h
188: clip.o: $(INC)/line.h
189: clip.o: $(INC)/mpx.h # nested include from jerq.h
190: clip.o: $(INC)/sys/2681.h # nested include from jerq.h
191: $(MCC) $(MCFLAGS) $(LCLCFLAGS) -c clip.c
192:
193:
194:
195: defont.o: defont.c
196: defont.o: $(INC)/font.h
197: defont.o: $(INC)/jerq.h
198: defont.o: $(INC)/jerqproc.h # nested include from mpx.h
199: defont.o: $(INC)/layer.h # nested include from mpx.h
200: defont.o: $(INC)/mpx.h # nested include from jerq.h
201: defont.o: $(INC)/sys/2681.h # nested include from jerq.h
202: $(MCC) $(MCFLAGS) $(LCLCFLAGS) -c defont.c
203:
204:
205: display.o: display.c
206: display.o: $(INC)/jerq.h
207: display.o: $(INC)/jerqproc.h # nested include from mpx.h
208: display.o: $(INC)/layer.h # nested include from mpx.h
209: display.o: $(INC)/mpx.h # nested include from jerq.h
210: display.o: $(INC)/sys/2681.h # nested include from jerq.h
211: $(MCC) $(MCFLAGS) $(LCLCFLAGS) -c display.c
212:
213:
214:
215: gcalloc.o: gcalloc.c
216: gcalloc.o: $(INC)/jerq.h
217: gcalloc.o: $(INC)/setup.h
218: gcalloc.o: $(INC)/jerqproc.h # nested include from mpx.h
219: gcalloc.o: $(INC)/layer.h # nested include from mpx.h
220: gcalloc.o: $(INC)/mpx.h # nested include from jerq.h
221: gcalloc.o: $(INC)/sys/2681.h # nested include from jerq.h
222: $(MCC) $(MCFLAGS) $(LCLCFLAGS) -c gcalloc.c
223:
224:
225: jlineto.o: $(INC)/jerq.h
226: jlineto.o: $(INC)/jerqproc.h # nested include from mpx.h
227: jlineto.o: jlineto.c
228: jlineto.o: $(INC)/layer.h # nested include from mpx.h
229: jlineto.o: $(INC)/line.h
230: jlineto.o: $(INC)/mpx.h # nested include from jerq.h
231: jlineto.o: $(INC)/sys/2681.h # nested include from jerq.h
232: $(MCC) $(MCFLAGS) $(LCLCFLAGS) -c jlineto.c
233:
234:
235: jstring.o: $(INC)/font.h
236: jstring.o: $(INC)/jerq.h
237: jstring.o: $(INC)/jerqproc.h # nested include from mpx.h
238: jstring.o: jstring.c
239: jstring.o: $(INC)/layer.h # nested include from mpx.h
240: jstring.o: $(INC)/mpx.h # nested include from jerq.h
241: jstring.o: $(INC)/sys/2681.h # nested include from jerq.h
242: $(MCC) $(MCFLAGS) $(LCLCFLAGS) -c jstring.c
243:
244: jtexture.o: $(INC)/jerq.h
245: jtexture.o: $(INC)/jerqproc.h # nested include from mpx.h
246: jtexture.o: jtexture.c
247: jtexture.o: $(INC)/layer.h # nested include from mpx.h
248: jtexture.o: $(INC)/mpx.h # nested include from jerq.h
249: jtexture.o: $(INC)/sys/2681.h # nested include from jerq.h
250: $(MCC) $(MCFLAGS) $(LCLCFLAGS) -c jtexture.c
251:
252: line.o: $(INC)/jerq.h
253: line.o: $(INC)/jerqproc.h # nested include from mpx.h
254: line.o: $(INC)/layer.h # nested include from mpx.h
255: line.o: line.c
256: line.o: $(INC)/line.h
257: line.o: $(INC)/mpx.h # nested include from jerq.h
258: line.o: $(INC)/sys/2681.h # nested include from jerq.h
259: $(MCC) $(MCFLAGS) $(LCLCFLAGS) -c line.c
260:
261: masks.o: masks.c
262: $(MCC) $(MCFLAGS) $(LCLCFLAGS) -c masks.c
263:
264: menu.o: $(INC)/font.h
265: menu.o: $(INC)/jerq.h
266: menu.o: $(INC)/jerqproc.h # nested include from mpx.h
267: menu.o: $(INC)/layer.h # nested include from mpx.h
268: menu.o: menu.c
269: menu.o: $(INC)/mpx.h # nested include from jerq.h
270: menu.o: $(INC)/sys/2681.h # nested include from jerq.h
271: $(MCC) $(MCFLAGS) $(LCLCFLAGS) -c menu.c
272:
273: norm.o: norm.c
274: $(MCC) $(MCFLAGS) $(LCLCFLAGS) -c norm.c
275:
276: point.o: $(INC)/jerq.h
277: point.o: $(INC)/jerqproc.h # nested include from mpx.h
278: point.o: $(INC)/layer.h # nested include from mpx.h
279: point.o: $(INC)/mpx.h # nested include from jerq.h
280: point.o: point.c
281: point.o: $(INC)/sys/2681.h # nested include from jerq.h
282: $(MCC) $(MCFLAGS) $(LCLCFLAGS) -c point.c
283:
284: popen.o: $(INC)/jerq.h
285: popen.o: $(INC)/jerqio.h
286: popen.o: $(INC)/jerqproc.h # nested include from mpx.h
287: popen.o: $(INC)/layer.h # nested include from mpx.h
288: popen.o: $(INC)/mpx.h # nested include from jerq.h
289: popen.o: popen.c
290: popen.o: $(INC)/sys/2681.h # nested include from jerq.h
291: $(MCC) $(MCFLAGS) $(LCLCFLAGS) -c popen.c
292:
293: printf.o: $(INC)/jerq.h
294: printf.o: $(INC)/jerqio.h
295: printf.o: $(INC)/jerqproc.h # nested include from mpx.h
296: printf.o: $(INC)/layer.h # nested include from mpx.h
297: printf.o: $(INC)/mpx.h # nested include from jerq.h
298: printf.o: printf.c
299: printf.o: $(INC)/sys/2681.h # nested include from jerq.h
300: $(MCC) $(MCFLAGS) $(LCLCFLAGS) -c printf.c
301:
302: ptinrect.o: $(INC)/jerq.h
303: ptinrect.o: $(INC)/jerqproc.h # nested include from mpx.h
304: ptinrect.o: $(INC)/layer.h # nested include from mpx.h
305: ptinrect.o: $(INC)/mpx.h # nested include from jerq.h
306: ptinrect.o: ptinrect.c
307: ptinrect.o: $(INC)/sys/2681.h # nested include from jerq.h
308: $(MCC) $(MCFLAGS) $(LCLCFLAGS) -c ptinrect.c
309:
310: put.o: $(INC)/jerq.h
311: put.o: $(INC)/jerqio.h
312: put.o: $(INC)/jerqproc.h # nested include from mpx.h
313: put.o: $(INC)/layer.h # nested include from mpx.h
314: put.o: $(INC)/mpx.h # nested include from jerq.h
315: put.o: put.c
316: put.o: $(INC)/sys/2681.h # nested include from jerq.h
317: $(MCC) $(MCFLAGS) $(LCLCFLAGS) -c put.c
318:
319: rdwr.o: $(INC)/jerq.h
320: rdwr.o: $(INC)/jerqio.h
321: rdwr.o: $(INC)/jerqproc.h # nested include from mpx.h
322: rdwr.o: $(INC)/layer.h # nested include from mpx.h
323: rdwr.o: $(INC)/mpx.h # nested include from jerq.h
324: rdwr.o: rdwr.c
325: rdwr.o: $(INC)/sys/2681.h # nested include from jerq.h
326: $(MCC) $(MCFLAGS) $(LCLCFLAGS) -c rdwr.c
327:
328: rectXrect.o: $(INC)/jerq.h
329: rectXrect.o: $(INC)/jerqproc.h # nested include from mpx.h
330: rectXrect.o: $(INC)/layer.h # nested include from mpx.h
331: rectXrect.o: $(INC)/mpx.h # nested include from jerq.h
332: rectXrect.o: rectXrect.c
333: rectXrect.o: $(INC)/sys/2681.h # nested include from jerq.h
334: $(MCC) $(MCFLAGS) $(LCLCFLAGS) -c rectXrect.c
335:
336: rectclip.o: $(INC)/jerq.h
337: rectclip.o: $(INC)/jerqproc.h # nested include from mpx.h
338: rectclip.o: $(INC)/layer.h # nested include from mpx.h
339: rectclip.o: $(INC)/mpx.h # nested include from jerq.h
340: rectclip.o: rectclip.c
341: rectclip.o: $(INC)/sys/2681.h # nested include from jerq.h
342: $(MCC) $(MCFLAGS) $(LCLCFLAGS) -c rectclip.c
343:
344: rectf.o: $(INC)/jerq.h
345: rectf.o: $(INC)/jerqproc.h # nested include from mpx.h
346: rectf.o: $(INC)/layer.h # nested include from mpx.h
347: rectf.o: $(INC)/mpx.h # nested include from jerq.h
348: rectf.o: rectf.c
349: rectf.o: $(INC)/sys/2681.h # nested include from jerq.h
350: $(MCC) $(MCFLAGS) $(LCLCFLAGS) -c rectf.c
351:
352: rol.o: rol.c
353: $(MCC) $(MCFLAGS) $(LCLCFLAGS) -c rol.c
354:
355: screenswap.o: $(INC)/jerq.h
356: screenswap.o: $(INC)/jerqproc.h # nested include from mpx.h
357: screenswap.o: $(INC)/layer.h # nested include from mpx.h
358: screenswap.o: $(INC)/mpx.h # nested include from jerq.h
359: screenswap.o: screenswap.c
360: screenswap.o: $(INC)/sys/2681.h # nested include from jerq.h
361: $(MCC) $(MCFLAGS) $(LCLCFLAGS) -c screenswap.c
362:
363: sqrt.o: sqrt.c
364: $(MCC) $(MCFLAGS) $(LCLCFLAGS) -c sqrt.c
365:
366: string.o: $(INC)/font.h
367: string.o: $(INC)/jerq.h
368: string.o: $(INC)/jerqproc.h # nested include from mpx.h
369: string.o: $(INC)/layer.h # nested include from mpx.h
370: string.o: $(INC)/mpx.h # nested include from jerq.h
371: string.o: string.c
372: string.o: $(INC)/sys/2681.h # nested include from jerq.h
373: $(MCC) $(MCFLAGS) $(LCLCFLAGS) -c string.c
374:
375: strwidth.o: $(INC)/font.h
376: strwidth.o: $(INC)/jerq.h
377: strwidth.o: $(INC)/jerqproc.h # nested include from mpx.h
378: strwidth.o: $(INC)/layer.h # nested include from mpx.h
379: strwidth.o: $(INC)/mpx.h # nested include from jerq.h
380: strwidth.o: strwidth.c
381: strwidth.o: $(INC)/sys/2681.h # nested include from jerq.h
382: $(MCC) $(MCFLAGS) $(LCLCFLAGS) -c strwidth.c
383:
384: texture16.o: $(INC)/jerq.h
385: texture16.o: $(INC)/jerqproc.h # nested include from mpx.h
386: texture16.o: $(INC)/layer.h # nested include from mpx.h
387: texture16.o: $(INC)/mpx.h # nested include from jerq.h
388: texture16.o: $(INC)/sys/2681.h # nested include from jerq.h
389: texture16.o: texture16.c
390: $(MCC) $(MCFLAGS) $(LCLCFLAGS) -c texture16.c
391:
392: wait.o: $(INC)/jerq.h
393: wait.o: $(INC)/jerqproc.h # nested include from mpx.h
394: wait.o: $(INC)/layer.h # nested include from mpx.h
395: wait.o: $(INC)/mpx.h # nested include from jerq.h
396: wait.o: $(INC)/queue.h
397: wait.o: $(INC)/sys/2681.h # nested include from jerq.h
398: wait.o: wait.c
399: $(MCC) $(MCFLAGS) $(LCLCFLAGS) -c wait.c
400:
401: ########
402: #
403: # Standard Targets
404: #
405: # all builds all the products specified by PRODUCTS
406: # clean removes all temporary files (ex. installable object)
407: # clobber "cleans", and then removes $(PRODUCTS)
408: # makefile regenerates makefile
409: # install installs products; user defined in make.lo
410: #
411: ########
412:
413: all: $(PRODUCTS)
414:
415: clean:
416: rm -f $(CLEAN) $(AUX_CLEAN)
417:
418: clobber: clean
419: rm -f $(PRODUCTS)
420:
421: makefile: $(MAKE.LO) $(MAKE.FWROOT)
422: $(MKGEN) >make.out
423: if [ -s make.out ]; then mv make.out makefile; fi
424:
425: makefile_all: makefile
426:
427: install: # rules, if any, specified above
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.