Added all of the MH sources, including RCS files, in
[mmh] / docs / historical / mh-6.8.5 / conf / makefiles / mts / RCS / mh,v
1 head    1.10;
2 access;
3 symbols;
4 locks; strict;
5 comment @# @;
6
7
8 1.10
9 date    92.11.20.17.14.07;      author jromine; state Exp;
10 branches;
11 next    1.9;
12
13 1.9
14 date    92.11.18.16.51.59;      author jromine; state Exp;
15 branches;
16 next    1.8;
17
18 1.8
19 date    92.11.05.19.13.39;      author jromine; state Exp;
20 branches;
21 next    1.7;
22
23 1.7
24 date    92.02.04.17.42.12;      author jromine; state Exp;
25 branches;
26 next    1.6;
27
28 1.6
29 date    90.04.05.15.15.55;      author sources; state Exp;
30 branches;
31 next    1.5;
32
33 1.5
34 date    90.03.12.11.26.29;      author sources; state Exp;
35 branches;
36 next    1.4;
37
38 1.4
39 date    90.03.12.10.27.04;      author sources; state Exp;
40 branches;
41 next    1.3;
42
43 1.3
44 date    90.02.21.16.54.09;      author sources; state Exp;
45 branches;
46 next    1.2;
47
48 1.2
49 date    90.02.06.12.53.30;      author sources; state Exp;
50 branches;
51 next    1.1;
52
53 1.1
54 date    90.02.06.12.53.05;      author sources; state Exp;
55 branches;
56 next    ;
57
58
59 desc
60 @@
61
62
63 1.10
64 log
65 @try to use LN instead of hard link
66 @
67 text
68 @##############################################################################
69 #    Instructions to Make, for compilation of standalone-MTS library
70 #
71 #       @@(MHWARNING)
72 # @@(#)$Id: mh,v 1.9 1992/11/18 16:51:59 jromine Exp jromine $
73 ##############################################################################
74
75 # The following entries were inserted during MH configuration
76 OPTIONS=        @@(MHOPTIONS) -I..
77
78 CC      =       @@(MHCOMPILER)
79 @@BEGIN: OPTIM
80 CFLAGS  =       $(OPTIONS)
81 @@END: OPTIM
82 @@BEGIN: DEBUG
83 CFLAGS  =             $(OPTIONS)
84 @@END: DEBUG
85 LINT    =       lint
86 LFLAGS  =       -bhu $(OPTIONS)
87 LLIBS   =       
88 CP      =       @@(CP)
89 LN      =       @@(LN)
90
91 LIB     =       mhmts.a
92
93 CFILES  =       hosts.c netmail.c uucp.c
94 OFILES  =       hosts.o netmail.o uucp.o
95
96
97 @@BEGIN: OPTIM
98 ##############################################################################
99 #       Generation Rules
100 ##############################################################################
101 .c.o:;          $(CC) $(CFLAGS) -c $*.c
102 @@BEGIN: NEWLOAD
103                 -ld -x -r $@@
104                 mv a.out $@@
105 @@END: NEWLOAD
106 @@BEGIN: OLDLOAD
107                 ${CC} -s -o $@@
108 @@END: OLDLOAD
109
110
111 @@END: OPTIM
112 ##############################################################################
113 #       Here it is...
114 ##############################################################################
115
116 all:            $(LIB)
117 depend:;
118 lint:           l-mhmts
119
120 $(LIB):         $(OFILES)
121                 -mv $@@ z$@@
122 @@BEGIN: RANLIB
123                 ar r $@@ $(OFILES); ranlib $@@
124 @@END: RANLIB
125 @@BEGIN: LORDER
126                 ar r $@@ `lorder $(OFILES) | tsort`
127 @@END: LORDER
128                 -rm -f ../libmts.a
129                 -cd ..; $(LN) mh/$@@ libmts.a
130                 -rm -f ../llib-lmts
131                 -cd .. ; $(LN) mh/llib-lmhmts llib-lmts
132                 -@@ls -l $@@
133                 -@@echo "standalone-MTS library built normally"
134
135 l-mhmts:;       $(LINT) $(LFLAGS) $(CFILES) $(LLIBS)
136
137 hosts.o:        Makefile
138 netmail.o:      Makefile
139 uucp.o:         Makefile
140
141
142 ##############################################################################
143 #       Miscellaneous tasks
144 ##############################################################################
145
146 unconfig:       distribution
147                 -rm -f Makefile
148
149 distribution:   clean
150
151 clean:          unclean
152                 -rm -f *.o $(LIB) z$(LIB)
153
154 unclean:;       -rm -f _* :* core
155 @
156
157
158 1.9
159 log
160 @fixup the way @@(LN) works
161 @
162 text
163 @d5 1
164 a5 1
165 # @@(#)$Id: mh,v 1.8 1992/11/05 19:13:39 jromine Exp jromine $
166 d62 1
167 a62 1
168                 ln $@@ ../libmts.a
169 @
170
171
172 1.8
173 log
174 @use LN for llib files
175 @
176 text
177 @d5 1
178 a5 1
179 # @@(#)$Id: mh,v 1.7 1992/02/04 17:42:12 jromine Exp jromine $
180 d64 1
181 a64 1
182                 -$(LN) llib-lmhmts ../llib-lmts
183 @
184
185
186 1.7
187 log
188 @use CP instead of ld for llib in case of cross-device link
189 Stephen Gildea <gildea@@expo.lcs.mit.EDU>
190 @
191 text
192 @d5 1
193 a5 1
194 # @@(#)$Id: mh,v 1.6 1990/04/05 15:15:55 sources Exp jromine $
195 d22 1
196 d64 1
197 a64 1
198                 -$(CP) llib-lmhmts ../llib-lmts
199 @
200
201
202 1.6
203 log
204 @add ID
205 @
206 text
207 @d5 1
208 a5 1
209 # @@(#)$Id:$
210 d21 1
211 d63 1
212 a63 1
213                 -ln llib-lmhmts ../llib-lmts
214 @
215
216
217 1.5
218 log
219 @remove -O (put in mhconfig)
220 @
221 text
222 @d5 1
223 @
224
225
226 1.4
227 log
228 @llib ln command failure shouldn't abort make
229 /.
230 @
231 text
232 @d12 1
233 a12 1
234 CFLAGS  =       -O    $(OPTIONS)
235 @
236
237
238 1.3
239 log
240 @make unconfig changes
241 @
242 text
243 @d61 1
244 a61 1
245                 ln llib-lmhmts ../llib-lmts
246 @
247
248
249 1.2
250 log
251 @ANSI Compilance
252 @
253 text
254 @d76 3
255 @
256
257
258 1.1
259 log
260 @Initial revision
261 @
262 text
263 @d10 1
264 a10 1
265 CC      =       cc
266 d37 1
267 a37 1
268                 cc -s -o $@@
269 @