Added all of the MH sources, including RCS files, in
[mmh] / docs / historical / mh-6.8.5 / conf / makefiles / mts / RCS / mmdf,v
1 head    1.11;
2 access;
3 symbols;
4 locks; strict;
5 comment @# @;
6
7
8 1.11
9 date    93.12.06.18.11.49;      author jromine; state Exp;
10 branches;
11 next    1.10;
12
13 1.10
14 date    92.11.20.17.14.07;      author jromine; state Exp;
15 branches;
16 next    1.9;
17
18 1.9
19 date    92.11.18.16.51.59;      author jromine; state Exp;
20 branches;
21 next    1.8;
22
23 1.8
24 date    92.11.05.19.13.39;      author jromine; state Exp;
25 branches;
26 next    1.7;
27
28 1.7
29 date    92.02.04.17.42.12;      author jromine; state Exp;
30 branches;
31 next    1.6;
32
33 1.6
34 date    90.04.05.15.16.01;      author sources; state Exp;
35 branches;
36 next    1.5;
37
38 1.5
39 date    90.03.12.11.26.36;      author sources; state Exp;
40 branches;
41 next    1.4;
42
43 1.4
44 date    90.03.12.10.27.22;      author sources; state Exp;
45 branches;
46 next    1.3;
47
48 1.3
49 date    90.02.21.16.54.14;      author sources; state Exp;
50 branches;
51 next    1.2;
52
53 1.2
54 date    90.02.06.12.53.44;      author sources; state Exp;
55 branches;
56 next    1.1;
57
58 1.1
59 date    90.02.06.12.53.07;      author sources; state Exp;
60 branches;
61 next    ;
62
63
64 desc
65 @@
66
67
68 1.11
69 log
70 @typo in CC=
71 @
72 text
73 @##############################################################################
74 #    Instructions to Make, for compilation of MMDF-MTS library 
75 #
76 #       @@(MHWARNING)
77 # @@(#)$Id: mmdf,v 1.10 1992/11/20 17:14:07 jromine Exp jromine $
78 ##############################################################################
79
80 # The following entries were inserted during MH configuration
81 OPTIONS =       @@(MHOPTIONS) -I..
82
83 CC      =       @@(MHCOMPILER)
84 @@BEGIN: OPTIM
85 CFLAGS  =       $(OPTIONS)
86 @@END: OPTIM
87 @@BEGIN: DEBUG
88 CFLAGS  =             $(OPTIONS)
89 @@END: DEBUG
90 LINT    =       lint
91 LFLAGS  =       -bhu $(OPTIONS)
92 LLIBS   =
93 CP      =       @@(CP)
94 LN      =       @@(LN)
95
96 LIB     =       mmdfmts.a
97
98 CFILES  =       hosts.c
99 OFILES  =       hosts.o
100
101
102 @@BEGIN: OPTIM
103 ##############################################################################
104 #       Generation Rules
105 ##############################################################################
106
107 .c.o:;          $(CC) $(CFLAGS) -c $*.c
108 @@BEGIN: NEWLOAD
109                 -ld -x -r $@@
110                 mv a.out $@@
111 @@END: NEWLOAD
112 @@BEGIN: OLDLOAD
113                 ${CC} -s -o $@@
114 @@END: OLDLOAD
115
116
117 @@END: OPTIM
118 ##############################################################################
119 #       Here it is...
120 ##############################################################################
121
122 all:            $(LIB)
123 depend:;
124 lint:           l-mmdf
125
126 @@BEGIN: MMDFIMTS
127 $(LIB):         $(OFILES) mmdf_lib.a util_lib.a
128                 -mv $(LIB) z$(LIB)
129                 -rm -fr tmp
130                 mkdir tmp mmdf util
131                 ln hosts.o mmdf_lib.a util_lib.a tmp
132                 cd mmdf; ar x ../mmdf_lib.a; ln *.o ../tmp
133                 cd util; ar x ../util_lib.a; ln *.o ../tmp
134                 -@@rm -f tmp/signal.o #dont want 4.1 signal package
135 @@BEGIN: RANLIB
136                 cd tmp; ar r ../$@@ *.o; ranlib $@@
137 @@END: RANLIB
138 @@BEGIN: LORDER
139                 cd tmp; ar r ../$@@ `lorder *.o | tsort`
140 @@END: LORDER
141                 rm -fr tmp mmdf util
142                 -rm -f ../libmts.a
143                 -cd ..; $(LN) mmdf/$@@ libmts.a
144                 -rm -f ../llib-lmts
145                 -cd .. ; $(LN) mmdf/llib-lmmdf llib-lmts
146                 -@@ls -l $@@
147                 -@@echo "MMDFI-MTS library built normally"
148 @@END: MMDFIMTS
149
150 @@BEGIN: MMDFIIMTS
151 $(LIB):         $(OFILES) libmmdf.a
152                 -mv $(LIB) z$(LIB)
153 @@BEGIN: RANLIB
154                 cp libmmdf.a $@@
155                 ar r $@@ hosts.o; ranlib $@@
156 @@END: RANLIB
157 @@BEGIN: LORDER
158                 mkdir tmp
159                 cd tmp; ar x ../libmmdf.a
160                 ln hosts.o tmp
161                 cd tmp; ar r ../$@@ `lorder *.o | tsort`
162                 rm -fr tmp
163 @@END: LORDER
164                 -rm -f ../libmts.a
165                 -cd ..; $(LN) mmdf/$@@ libmts.a
166                 -rm -f ../llib-lmts
167                 -cd ..; $(LN) mmdf/llib-lmmdf llib-lmts
168                 -@@ls -l $@@
169                 -@@echo "MMDFII-MTS library built normally"
170 @@END: MMDFIIMTS
171
172 l-mmdf:;        $(LINT) $(LFLAGS) $(CFILES) $(LLIBS)
173
174 hosts.o:        Makefile
175
176
177 ##############################################################################
178 #       Miscellaneous tasks
179 ##############################################################################
180
181 unconfig:       distribution
182                 -rm -f Makefile
183
184 distribution:   clean
185
186 clean:          unclean
187                 -rm -f *.o $(LIB) z$(LIB)
188
189 unclean:;       -rm -f _* :* core
190 @
191
192
193 1.10
194 log
195 @try to use LN instead of hard link
196 @
197 text
198 @d5 1
199 a5 1
200 # @@(#)$Id: mmdf,v 1.9 1992/11/18 16:51:59 jromine Exp jromine $
201 d11 1
202 a11 1
203 CC      =       (MHCOMPILER)
204 @
205
206
207 1.9
208 log
209 @fixup the way @@(LN) works
210 @
211 text
212 @d5 1
213 a5 1
214 # @@(#)$Id: mmdf,v 1.8 1992/11/05 19:13:39 jromine Exp jromine $
215 d71 1
216 a71 1
217                 ln $@@ ../libmts.a
218 d93 1
219 a93 1
220                 ln $@@ ../libmts.a
221 d95 1
222 a95 1
223                 -$(LN) llib-lmmdf ../llib-lmts
224 @
225
226
227 1.8
228 log
229 @use LN for llib files
230 @
231 text
232 @d5 1
233 a5 1
234 # @@(#)$Id: mmdf,v 1.7 1992/02/04 17:42:12 jromine Exp jromine $
235 d73 1
236 a73 1
237                 -$(LN) llib-lmmdf ../llib-lmts
238 @
239
240
241 1.7
242 log
243 @use CP instead of ld for llib in case of cross-device link
244 Stephen Gildea <gildea@@expo.lcs.mit.EDU>
245 @
246 text
247 @d5 1
248 a5 1
249 # @@(#)$Id: mmdf,v 1.6 1990/04/05 15:16:01 sources Exp jromine $
250 d22 1
251 d73 1
252 a73 1
253                 -$(CP) llib-lmmdf ../llib-lmts
254 d95 1
255 a95 1
256                 -$(CP) llib-lmmdf ../llib-lmts
257 @
258
259
260 1.6
261 log
262 @add ID
263 @
264 text
265 @d5 1
266 a5 1
267 # @@(#)$Id:$
268 d21 1
269 d72 1
270 a72 1
271                 -ln llib-lmmdf ../llib-lmts
272 d94 1
273 a94 1
274                 -ln llib-lmmdf ../llib-lmts
275 @
276
277
278 1.5
279 log
280 @remove -O (put in mhconfig)
281 @
282 text
283 @d5 1
284 @
285
286
287 1.4
288 log
289 @llib ln command failure shouldn't abort make
290 /.
291 @
292 text
293 @d12 1
294 a12 1
295 CFLAGS  =       -O    $(OPTIONS)
296 @
297
298
299 1.3
300 log
301 @make unconfig changes
302 @
303 text
304 @d70 1
305 a70 1
306                 ln llib-lmmdf ../llib-lmts
307 d92 1
308 a92 1
309                 ln llib-lmmdf ../llib-lmts
310 @
311
312
313 1.2
314 log
315 @ANSI Compilance
316 @
317 text
318 @d106 3
319 @
320
321
322 1.1
323 log
324 @Initial revision
325 @
326 text
327 @d10 1
328 a10 1
329 CC      =       cc
330 d38 1
331 a38 1
332                 cc -s -o $@@
333 @