]> diplodocus.org Git - nmh/blob - docs/historical/mh-6.8.5/conf/makefiles/zotnet/RCS/tws,v
sbr/mts.c: Delete mmdlm2; use same-valued mmdlm1 instead.
[nmh] / docs / historical / mh-6.8.5 / conf / makefiles / zotnet / RCS / tws,v
1 head 1.16;
2 access;
3 symbols;
4 locks
5 jromine:1.16; strict;
6 comment @# @;
7
8
9 1.16
10 date 93.02.26.21.50.51; author jromine; state Exp;
11 branches;
12 next 1.15;
13
14 1.15
15 date 92.11.18.16.54.16; author jromine; state Exp;
16 branches;
17 next 1.14;
18
19 1.14
20 date 92.11.12.23.23.50; author jromine; state Exp;
21 branches;
22 next 1.13;
23
24 1.13
25 date 92.11.11.20.29.22; author jromine; state Exp;
26 branches;
27 next 1.12;
28
29 1.12
30 date 92.11.02.23.45.21; author jromine; state Exp;
31 branches;
32 next 1.11;
33
34 1.11
35 date 92.02.03.16.39.08; author jromine; state Exp;
36 branches;
37 next 1.10;
38
39 1.10
40 date 92.01.30.00.31.18; author jromine; state Exp;
41 branches;
42 next 1.9;
43
44 1.9
45 date 90.04.05.15.16.39; author sources; state Exp;
46 branches;
47 next 1.8;
48
49 1.8
50 date 90.03.12.11.28.08; author sources; state Exp;
51 branches;
52 next 1.7;
53
54 1.7
55 date 90.02.23.10.32.19; author sources; state Exp;
56 branches;
57 next 1.6;
58
59 1.6
60 date 90.02.21.16.58.43; author sources; state Exp;
61 branches;
62 next 1.5;
63
64 1.5
65 date 90.02.08.15.47.51; author sources; state Exp;
66 branches;
67 next 1.4;
68
69 1.4
70 date 90.02.08.15.47.00; author sources; state Exp;
71 branches;
72 next 1.3;
73
74 1.3
75 date 90.02.06.12.56.24; author sources; state Exp;
76 branches;
77 next 1.2;
78
79 1.2
80 date 90.01.25.16.18.47; author sources; state Exp;
81 branches;
82 next 1.1;
83
84 1.1
85 date 90.01.25.16.18.25; author sources; state Exp;
86 branches;
87 next ;
88
89
90 desc
91 @@
92
93
94 1.16
95 log
96 @use lexed version of dtimep.lex if lex fails
97 @
98 text
99 @##############################################################################
100 # Instructions to Make, for compilation of ZOT UIP/utility processes
101 #
102 # @@(MHWARNING)
103 # @@(#)$Id: tws,v 1.15 1992/11/18 16:54:16 jromine Exp jromine $
104 ##############################################################################
105
106 # The following entries were inserted during MH configuration
107 BINDIR = $(DESTDIR)@@(MHBINPATH)
108 ETCDIR = $(DESTDIR)@@(MHETCPATH)
109 OPTIONS = @@(MHOPTIONS) -I..
110 LDOPTIONS= @@(LDOPTIONS)
111 LDOPTLIB= @@(LDOPTLIB)
112
113 CC = @@(MHCOMPILER)
114 LN = @@(LN)
115 LEX = @@(LEX)
116 @@BEGIN: OPTIM
117 CFLAGS = $(OPTIONS)
118 @@END: OPTIM
119 @@BEGIN: DEBUG
120 CFLAGS = $(OPTIONS)
121 @@END: DEBUG
122 LINT = lint
123 LFLAGS = -bhu $(OPTIONS)
124 LLIBS =
125 LDFLAGS = $(LDOPTIONS)
126 LIBES =
127 LDLIBS = $(LIBES) $(LDOPTLIB)
128
129 OFILES = dtimep.o lexstring.o dtime.o
130 LFILES = l-dtimep l-dtime l-date
131
132 .c:; echo $@@
133
134 ######################################################################
135 # Here it is...
136 ######################################################################
137
138 all: $(OFILES) date
139
140 lint: $(LFILES)
141
142 install: inst-all clean
143
144 inst-all:;
145
146 tar:;
147
148 uninstall:;
149
150
151 ######################################################################
152 # date
153 ######################################################################
154
155 date: date.o dtime.o $(LIBES)
156 $(CC) $(LDFLAGS) -o $@@ date.o dtime.o $(LDLIBS)
157
158 l-date:; $(LINT) $(LFLAGS) date.c dtime.c $(LLIBS)
159
160
161 ######################################################################
162 # dtimep
163 ######################################################################
164
165
166 dtimep: dtimep.o lexstring.o
167
168 dtimep.o: dtimep.c
169
170 dtimep.c: dtimep.lex
171 $(LEX) dtimep.lex | sed -f lexedit.sed > dtimep.c
172 len=`wc -l dtimep.c | awk ' { print $$1 } '`; \
173 if [ $$len -eq 1 ]; then cp dtimep.c-lexed dtimep.c; fi
174
175 lexstring.o: lexstring.c
176 $(CC) $(CFLAGS) -c -DONECASE lexstring.c
177
178 l-dtimep:; $(LINT) $(LFLAGS) dtimep.c -DONECASE lexstring.c $(LLIBS)
179
180
181 ######################################################################
182 # dtime
183 ######################################################################
184
185 dtime: dtime.o
186
187 l-dtime:; $(LINT) $(LFLAGS) dtime.c $(LLIBS)
188
189
190 ##############################################################################
191 # Miscellaneous tasks
192 ##############################################################################
193
194 tws.h: ../tws.h
195 rm -f $@@
196 $(LN) ../tws.h $@@
197
198 unconfig: distribution
199 -rm -f Makefile
200
201 distribution: clean
202
203 clean: unclean
204 -rm -f dtimep.c *.o date
205
206 unclean:; -rm -f _* :* core eddep makedep
207
208
209 ##############################################################################
210 # Dependencies
211 ##############################################################################
212
213 MODULES = date dtime dtimep
214
215 depend:; for m in $(MODULES); do ( \
216 i=`basename $$m .c`; \
217 echo $$i.o: $$i.c >> makedep; \
218 grep '^#[ ]*include' $$i.c | \
219 sed -e 's,[^"]*"/\([^"]*\)".*,'$$i'.o: /\1,' \
220 -e 's,[^"]*"\([^"]*\)".*,'$$i'.o: \1,' \
221 -e 's,[^<]*<\(.*\)>.*,#'$$i'.o: /usr/include/\1,' \
222 >> makedep \
223 ); done
224 echo '/^# DO NOT DELETE THIS LINE/+2,$$d' > eddep
225 echo '$$r makedep' >> eddep
226 echo 'w' >> eddep
227 cp Makefile _Makefile
228 ed - Makefile < eddep
229 rm eddep makedep
230 echo '# DEPENDENCIES MUST END AT END OF FILE' >> Makefile
231 echo '# IF YOU PUT STUFF HERE IT WILL GO AWAY' >> Makefile
232
233 # DO NOT DELETE THIS LINE
234 # DEPENDENCIES START HERE
235 date.o: date.c
236 date.o: ../tws.h
237 #date.o: /usr/include/stdio.h
238 dtime.o: dtime.c
239 dtime.o: ../tws.h
240 dtime.o: ../../h/strings.h
241 #dtime.o: /usr/include/stdio.h
242 #dtime.o: /usr/include/sys/types.h
243 #dtime.o: /usr/include/sys/sysmacros.h
244 #dtime.o: /usr/include/sys/timeb.h
245 #dtime.o: /usr/include/time.h
246 dtimep.o: dtimep.c
247 #dtimep.o: /usr/include/stdio.h
248 dtimep.o: ../tws.h
249 dtimep.o: ../../h/strings.h
250 #dtimep.o: /usr/include/ctype.h
251 #dtimep.o: /usr/include/sys/types.h
252 #dtimep.o: /usr/include/sys/sysmacros.h
253 #dtimep.o: /usr/include/sys/timeb.h
254 #dtimep.o: /usr/include/time.h
255 # DEPENDENCIES MUST END AT END OF FILE
256 # IF YOU PUT STUFF HERE IT WILL GO AWAY
257 @
258
259
260 1.15
261 log
262 @fixup LN
263 @
264 text
265 @d5 1
266 a5 1
267 # @@(#)$Id: tws,v 1.14 1992/11/12 23:23:50 jromine Exp jromine $
268 d74 2
269 @
270
271
272 1.14
273 log
274 @link tws.h
275 @
276 text
277 @d5 1
278 a5 1
279 # @@(#)$Id: tws,v 1.13 1992/11/11 20:29:22 jromine Exp jromine $
280 d16 1
281 @
282
283
284 1.13
285 log
286 @fixup for some brain-damaged makes
287 @
288 text
289 @d5 1
290 a5 1
291 # @@(#)$Id: tws,v 1.12 1992/11/02 23:45:21 jromine Exp jromine $
292 d30 1
293 a30 1
294 OFILES = dtimep.o lexstring.o dtime.o date
295 d39 1
296 a39 1
297 all: $(OFILES)
298 d93 3
299 @
300
301
302 1.12
303 log
304 @make sure to remove dtimep.c -- it doesn't work as-is on all systems
305 @
306 text
307 @d5 1
308 a5 1
309 # @@(#)$Id: tws,v 1.11 1992/02/03 16:39:08 jromine Exp jromine $
310 d30 3
311 d39 1
312 a39 1
313 all: dtimep dtime date
314 d41 1
315 a41 1
316 lint: l-dtimep l-dtime l-date
317 @
318
319
320 1.11
321 log
322 @typo
323 @
324 text
325 @d5 1
326 a5 1
327 # @@(#)$Id: tws,v 1.10 1992/01/30 00:31:18 jromine Exp jromine $
328 a77 7
329
330 lex: zap-dtime dtimep.c
331
332 zap-dtime:; rm -f dtimep.c
333
334
335 ######################################################################
336 d97 1
337 a97 1
338 -rm -f *.o date
339 @
340
341
342 1.10
343 log
344 @don't delete lex'd flie
345 @
346 text
347 @d5 1
348 a5 1
349 # @@(#)$Id: tws,v 1.9 1990/04/05 15:16:39 sources Exp jromine $
350 d65 1
351 a65 1
352
353 @
354
355
356 1.9
357 log
358 @add ID
359 @
360 text
361 @d5 1
362 a5 1
363 # @@(#)$Id:$
364 d78 7
365 d97 1
366 d104 1
367 a104 1
368 -rm -f dtimep.c *.o date
369 @
370
371
372 1.8
373 log
374 @remove -O (put in mhconfig)
375 @
376 text
377 @d5 1
378 @
379
380
381 1.7
382 log
383 @make sure tws.h is in zotnet/ not zotnet/tws/
384 @
385 text
386 @d17 1
387 a17 1
388 CFLAGS = -O $(OPTIONS)
389 @
390
391
392 1.6
393 log
394 @make unconfig changes
395 @
396 text
397 @d127 1
398 a127 1
399 date.o: tws.h
400 d130 1
401 a130 1
402 dtime.o: tws.h
403 d134 1
404 a136 1
405 #dtime.o: /usr/include/sys/time.h
406 d139 1
407 a139 1
408 dtimep.o: tws.h
409 d142 4
410 @
411
412
413 1.5
414 log
415 @*** empty log message ***
416 @
417 text
418 @d89 3
419 @
420
421
422 1.4
423 log
424 @LEX define
425 @
426 text
427 @d68 1
428 a68 1
429 $(LEX) -nt dtimep.lex | sed -f lexedit.sed > dtimep.c
430 @
431
432
433 1.3
434 log
435 @ANSI Compilance
436 @
437 text
438 @d15 1
439 d68 1
440 a68 1
441 lex -nt dtimep.lex | sed -f lexedit.sed > dtimep.c
442 @
443
444
445 1.2
446 log
447 @add default rule for .c
448 @
449 text
450 @d14 1
451 a14 1
452 CC = cc
453 @
454
455
456 1.1
457 log
458 @Initial revision
459 @
460 text
461 @d28 1
462 @