Added all of the MH sources, including RCS files, in
[mmh] / docs / historical / mh-6.8.5 / conf / makefiles / zotnet / RCS / mts,v
1 head    1.9;
2 access;
3 symbols;
4 locks; strict;
5 comment @# @;
6
7
8 1.9
9 date    93.08.20.15.56.12;      author jromine; state Exp;
10 branches;
11 next    1.8;
12
13 1.8
14 date    92.02.06.17.29.00;      author jromine; state Exp;
15 branches;
16 next    1.7;
17
18 1.7
19 date    92.01.29.23.10.03;      author jromine; state Exp;
20 branches;
21 next    1.6;
22
23 1.6
24 date    90.04.05.15.16.53;      author sources; state Exp;
25 branches;
26 next    1.5;
27
28 1.5
29 date    90.03.20.20.34.51;      author sources; state Exp;
30 branches;
31 next    1.4;
32
33 1.4
34 date    90.03.12.11.28.06;      author sources; state Exp;
35 branches;
36 next    1.3;
37
38 1.3
39 date    90.02.21.16.58.42;      author sources; state Exp;
40 branches;
41 next    1.2;
42
43 1.2
44 date    90.02.06.12.56.23;      author sources; state Exp;
45 branches;
46 next    1.1;
47
48 1.1
49 date    90.02.06.12.55.23;      author sources; state Exp;
50 branches;
51 next    ;
52
53
54 desc
55 @@
56
57
58 1.9
59 log
60 @fixup from mtr.
61 @
62 text
63 @##############################################################################
64 #    Instructions to Make, for compilation of ZOT UIP/utility processes
65 #
66 #       @@(MHWARNING)
67 # @@(#)$Id: mts,v 1.8 1992/02/06 17:29:00 jromine Exp jromine $
68 ##############################################################################
69
70 # The following entries were inserted during MH configuration
71 BINDIR  =       $(DESTDIR)@@(MHBINPATH)
72 ETCDIR  =       $(DESTDIR)@@(MHETCPATH)
73 OPTIONS =       @@(MHOPTIONS) -I..
74 LDOPTIONS=      @@(LDOPTIONS)
75 LDOPTLIB=       @@(LDOPTLIB)
76 CHOWN   =       @@(MHCHOWNPATH)
77 REMOVE  =       @@(MHREMOVE)
78
79 CC      =       @@(MHCOMPILER)
80 @@BEGIN: OPTIM
81 CFLAGS  =       $(OPTIONS)
82 @@END: OPTIM
83 @@BEGIN: DEBUG
84 CFLAGS  =             $(OPTIONS)
85 @@END: DEBUG
86 LINT    =       lint
87 LFLAGS  =       -bhu $(OPTIONS)
88 LDFLAGS =       $(LDOPTIONS)
89 LLIBS   =
90 LIBES   =
91 LDLIBS  =       $(LIBES) $(LDOPTLIB)
92 FILPROT =       0644
93 PGMPROT =       0755
94
95 OFILES  =       mts.o lock.o client.o
96 LFILES  =       l-mts l-lock l-client
97 IFILES  =       inst-mtstailor
98
99 .c:;            echo $@@
100
101 ######################################################################
102 #       Here it is...
103 ######################################################################
104
105 all:            $(OFILES)
106
107 lint:           $(LFILES)
108
109 install:        inst-all clean
110
111 inst-all:       $(IFILES)
112
113 tar:;           @@touch mtstailor
114                 @@make -n inst-all > MAKEMTS
115                 @@chmod +x MAKEMTS
116                 tar $(TFLAGS) MAKEMTS mtstailor
117                 @@rm -f MAKEMTS
118
119 uninstall:;
120                 -cd $(ETCDIR); rm -f mtstailor
121
122
123 ##############################################################################
124 # mts
125 ##############################################################################
126
127 mts:            mts.o 
128
129 l-mts:;         $(LINT) $(LFLAGS) mts.c $(LLIBS)
130
131
132 ##############################################################################
133 # lock
134 ##############################################################################
135
136 lock:           lock.o 
137
138 l-lock:;        $(LINT) $(LFLAGS) lock.c $(LLIBS)
139
140
141 ##############################################################################
142 # client
143 ##############################################################################
144
145 client:         client.o 
146
147 l-client:;      $(LINT) $(LFLAGS) client.c $(LLIBS)
148
149
150 ##############################################################################
151 # mtstailor
152 ##############################################################################
153
154 inst-mtstailor: $(ETCDIR)/mtstailor
155
156 $(ETCDIR)/mtstailor:    mtstailor
157                 -@@if [ ! -f $@@ ]; then \
158                     $(REMOVE) $@@ zmtstailor; \
159                     cp mtstailor $@@; \
160                 else \
161                     echo "Will not overwrite existing $@@"; \
162                 fi
163                 -@@chmod $(FILPROT) $@@
164                 -@@ls -l $@@
165                 -@@echo ""
166
167
168 ##############################################################################
169 #       Miscellaneous tasks
170 ##############################################################################
171
172 unconfig:       distribution
173                 -rm -f Makefile
174
175 distribution:   clean
176                 -rm -f mts.c mtstailor
177
178 clean:          unclean
179                 -rm -f x* *.o
180
181 unclean:;       -rm -f z* _* :* core eddep makedep MAKEMTS
182
183
184 ##############################################################################
185 #       Dependencies
186 ##############################################################################
187
188 MODULES =       mts lock client
189
190 depend:;        for m in $(MODULES); do ( \
191                     i=`basename $$m .c`; \
192                     echo $$i.o: $$i.c >> makedep; \
193                     grep '^#[   ]*include' $$i.c | \
194                         sed -e 's,[^"]*"/\([^"]*\)".*,'$$i'.o: /\1,' \
195                             -e 's,[^"]*"\([^"]*\)".*,'$$i'.o: \1,' \
196                             -e 's,[^<]*<\(.*\)>.*,#'$$i'.o: /usr/include/\1,' \
197                         >> makedep \
198                 ); done
199                 echo '/^# DO NOT DELETE THIS LINE/+2,$$d' > eddep
200                 echo '$$r makedep' >> eddep
201                 echo 'w' >> eddep
202                 cp Makefile _Makefile
203                 ed - Makefile < eddep
204                 rm eddep makedep
205                 echo '# DEPENDENCIES MUST END AT END OF FILE' >> Makefile
206                 echo '# IF YOU PUT STUFF HERE IT WILL GO AWAY' >> Makefile
207
208 # DO NOT DELETE THIS LINE
209 # DEPENDENCIES START HERE
210 mts.o: mts.c
211 mts.o: ../../h/strings.h
212 #mts.o: /usr/include/ctype.h
213 #mts.o: /usr/include/stdio.h
214 mts.o: mts.h
215 #mts.o: /usr/include/netdb.h
216 #mts.o: /usr/include/whoami.h
217 #mts.o: /usr/include/sys/utsname.h
218 #mts.o: /usr/include/pwd.h
219 #mts.o: /usr/include/fcntl.h
220 lock.o: lock.c
221 lock.o: ../../h/strings.h
222 #lock.o: /usr/include/stdio.h
223 lock.o: mts.h
224 #lock.o: /usr/include/sys/types.h
225 #lock.o: /usr/include/sys/stat.h
226 #lock.o: /usr/include/sys/file.h
227 #lock.o: /usr/include/signal.h
228 client.o: client.c
229 client.o: ../../h/strings.h
230 #client.o: /usr/include/stdio.h
231 client.o: mts.h
232 #client.o: /usr/include/errno.h
233 #client.o: /usr/include/sys/types.h
234 #client.o: /usr/include/sys/socket.h
235 #client.o: /usr/include/netinet/in.h
236 #client.o: /usr/include/netdb.h
237 #client.o: /usr/include/arpa/inet.h
238 # DEPENDENCIES MUST END AT END OF FILE
239 # IF YOU PUT STUFF HERE IT WILL GO AWAY
240 @
241
242
243 1.8
244 log
245 @move targets to OFILES IFILES LFILES
246 @
247 text
248 @d5 1
249 a5 1
250 # @@(#)$Id: mts,v 1.7 1992/01/29 23:10:03 jromine Exp jromine $
251 d95 1
252 a95 1
253                 -if [ ! -f $@@ ]; then \
254 @
255
256
257 1.7
258 log
259 @add .c: rule for brain-dead "make"
260 @
261 text
262 @d5 1
263 a5 1
264 # @@(#)$Id: mts,v 1.6 1990/04/05 15:16:53 sources Exp jromine $
265 d33 4
266 d43 1
267 a43 1
268 all:            mts lock client
269 d45 1
270 a45 1
271 lint:           l-mts l-lock l-client
272 d49 1
273 a49 1
274 inst-all:       inst-mtstailor
275 @
276
277
278 1.6
279 log
280 @add ID
281 @
282 text
283 @d5 1
284 a5 1
285 # @@(#)$Id:$
286 d33 1
287 @
288
289
290 1.5
291 log
292 @fixup test
293 @
294 text
295 @d5 1
296 @
297
298
299 1.4
300 log
301 @remove -O (put in mhconfig)
302 @
303 text
304 @d89 6
305 a94 2
306                 -$(REMOVE) $@@ zmtstailor
307                 cp mtstailor $@@
308 @
309
310
311 1.3
312 log
313 @make unconfig changes
314 @
315 text
316 @d18 1
317 a18 1
318 CFLAGS  =       -O    $(OPTIONS)
319 @
320
321
322 1.2
323 log
324 @ANSI Compilance
325 @
326 text
327 @d100 3
328 @
329
330
331 1.1
332 log
333 @Initial revision
334 @
335 text
336 @d16 1
337 a16 1
338 CC      =       cc
339 @