"Fossies" - the Fresh Open Source Software Archive 
Member "tcsh-6.22.03/Makefile.vms" (18 Nov 2020, 18939 Bytes) of package /linux/misc/tcsh-6.22.03.tar.gz:
As a special service "Fossies" has tried to format the requested text file into HTML format (style:
standard) with prefixed line numbers.
Alternatively you can here
view or
download the uninterpreted source code file.
See also the latest
Fossies "Diffs" side-by-side code changes report for "Makefile.vms":
6.22.02_vs_6.22.03.
1 #
2 # C Shell with process control; VM/UNIX VAX Makefile
3 # Bill Joy UC Berkeley; Jim Kulp IIASA, Austria
4 #
5 # With an input editor, command completion, etc. and ported to all sorts of
6 # things; Paul Placeway, CIS Dept., Ohio State University
7 #
8 SHELL=/bin/sh
9 VERSION=6.12
10 BUILD=tcsh
11
12 ################################################################
13 ## CFLAGS. For various -D things, see config.h
14 ################################################################
15 #
16 # These are the default suffixes from .c to .o and -c to get there
17 # but to use the global optimizer on the mips boxes, see below
18 #
19 SUF=o
20 CF=-c
21
22 INCLUDES=-I. -I..
23
24 LFLAGS=$(INCLUDES)
25 #LFLAGS=$(INCLUDES) -Zn10000 # hpux lint
26
27
28 #CFLAGS= $(INCLUDES) -g # debug
29 #CFLAGS= $(INCLUDES) -O # production
30 #CFLAGS= $(INCLUDES) # Broken optimizers....
31
32 #CFLAGS= -g -pg $(INCLUDES) -DPROF
33 #CFLAGS= -O -pg $(INCLUDES) -DPROF
34
35 # gcc 1.00-1.37
36 #CFLAGS=-O $(INCLUDES) -finline-functions -fstrength-reduce
37
38 # gcc 1.37-1.40
39 #CFLAGS=-O $(INCLUDES) -fcombine-regs -finline-functions -fstrength-reduce
40 # add -msoft-float for 68881 machines.
41
42 # gcc 2.0
43 # On the sparc, don't use -O2; it breaks setjmp() and vfork()
44 #CFLAGS=-O $(INCLUDES)
45
46 # gcc-2.1+
47 #CFLAGS=-O2 $(INCLUDES)
48
49 # lucid c on suns
50 #CFLAGS=-O5 $(INCLUDES)
51
52 # gcc 2.1 on linux
53 #CFLAGS=-O6 -fomit-frame-pointer $(INCLUDES)
54
55 # HP/UX 8.0, 9.0
56 #CFLAGS= $(INCLUDES) +O3 -Aa
57
58 # Ultrix 4.2a
59 #CFLAGS= $(INCLUDES) -O -Olimit 2000
60
61 # Intel Paragon OSF/1 with PGI compilers
62 #CFLAGS=-O -Mnodebug -Mnoperfmon $(INCLUDES)
63
64 # DEC Alpha OSF/1
65 #CFLAGS= -O2 $(INCLUDES) -Olimit 2000 ## Normal Optimization
66 #CFLAGS= -O3 $(INCLUDES) -Olimit 2000 ## Full Optimization - may not work
67 #CF=-j
68 #SUF=u
69 #.SUFFIXES: .u
70
71 # for silicon graphics (and other mips compilers) -- use the
72 # global optimizer! (-O3).
73 # On SGI 4.0+ you need to add -D__STDC__ too.
74 #CFLAGS= -O3 $(INCLUDES)
75 #CFLAGS= -O3 $(INCLUDES) -Olimit 2000 ## Ultrix 4.2a
76 #CF=-j
77 #SUF=u
78 #.SUFFIXES: .u ## Ultrix and gnu-make need that
79
80 # mips systems
81 # CFLAGS= $(INCLUDES) -O -systype bsd43 -Wf,-XNd5000 -Wf,-XNp6000 -Olimit 2000
82
83 # for at&t machines
84 #CFLAGS= -O -Ksd $(INCLUDES)
85
86 # Stardent Titan
87 #CFLAGS = $(INCLUDES) -O -43
88
89 # Stardent Stellar or sunos4 /bin/cc or Solaris2.1 /opt/SUNWspro/bin/cc
90 #CFLAGS = $(INCLUDES) -O4
91
92 # Intergraph clipper CLIX 3.1
93 #CFLAGS= -w -O2 $(INCLUDES)
94
95 # Dnix 5.3
96 #CFLAGS = -O -X7
97
98 # Pyramid OS/x
99 #CFLAGS = -OG
100
101 # Multiflow (5M binary... if you choose -O5!)
102 #CFLAGS = -O5 -sb_trace 0
103
104 # DDE Supermax Unix SYSV Rel III.
105 # CFLAGS= -O3
106
107 # Apollo's with cc [apollo builtins don't work with gcc]
108 # and apollo should not define __STDC__ if it does not have
109 # the standard header files. RT's (aos4.3) need that too;
110 # you might want to skip the -O on the rt's... Not very wise.
111 # AIX/ESA needs -D_IBMESA on command line (this may disappear by GA)
112 #DFLAGS=-U__STDC__
113 #DFLAGS=-D_IBMESA
114 # On aix2.2.1 we need more compiler space.
115 #DFLAGS=-Nd4000 -Nn3000
116 # AU/X 2.0 needs a flag for POSIX (read the config file)
117 #DFLAGS=-Zp
118 # Tektronix 4300 running UTek 4.0 (BSD 4.2) needs:
119 #DFLAGS = -DUTek -DBSD
120 # VMS_POSIX needs:
121 #DFLAGS=-D_VMS_POSIX
122 # Multiflow
123 #DFLAGS=-DMULTIFLOW
124 # DELL SVR4
125 #DFLAGS=-DDELL
126 DFLAGS=
127 #DFLAGS=-D_PATH_TCSHELL='"${DESTBIN}/tcsh"'
128
129
130 ################################################################
131 ## LDFLAGS. Define something here if you need to
132 ################################################################
133 LDFLAGS= ## The simplest, suitable for all.
134 #LDFLAGS= -s ## Stripped. Takes less space on disk.
135 #LDFLAGS= -s -n ## Pure executable. Spares paging over
136 # ## the network for machines with local
137 # ## swap but external /usr/local/bin .
138 #LDFLAGS= -s -n -Bstatic ## Without dynamic links. (SunOS)
139 #LDFLAGS= -Wl,-s,-n ## Stripped, shared text (Unicos)
140 #LDFLAGS= -s -static ## Link statically. (linux)
141 #LDFLAGS= -s -N ## Impure executable (linux)
142
143 ################################################################
144 ## LIBES. Pick one, or roll your own.
145 ################################################################
146 #LIBES= -ltermcap ## BSD style things
147 #LIBES= -ltermcap ## SunOS, HP-UX, pyramid
148 #LIBES= -ltermcap ## Linux
149 #LIBES= -ltermcap -lshadow ## Linux with PW_SHADOW
150 #LIBES= -ltermcap -lsec ## Tek XD88/10 (UTekV) with PW_SHADOW
151 #LIBES= -ltermcap -lsec ## Motorola MPC (sysV88) with PW_SHADOW
152 #LIBES= -ltermcap -lcs ## Mach
153 #LIBES= -ltermcap -lbsd ## DEC osf1 on the alpha
154 #LIBES= -ltermcap -lbsd ## Intel paragon
155 #LIBES= -ltermcap -lbsd ## Clipper intergraph
156 #LIBES= -ltermcap -lseq ## Sequent's Dynix
157 #LIBES= -ltermcap -lauth ## Ultrix with Enhanced Security
158 #LIBES= -ltermcap -ldir -lx ## Xenix 386 style things
159 #LIBES= -ltermcap -lndir -lsocket -ljobs ## masscomp RTU6.0
160 #LIBES= -lcurses ## AIX on the rt
161 #LIBES= -lcurses ## TitanOS on the stellar
162 #LIBES= -ltermlib -lsocket -lnsl ## SysV4 w/o BSDTIMES or Solaris 2
163 #LIBES= -lcurses ## SysV3 w/o networking
164 #LIBES= -lcurses -lnet ## SysV3 with networking
165 #LIBES= -lcurses -ldir ## SysV2 w/o networking & dirlib
166 #LIBES= -lcurses -ldir -lnet ## SysV2 with networking & dirlib
167 #LIBES= -lcurses -lbsd ## AIX on the IBM 370 or rs6000 or ps2
168 #LIBES= -lcurses -lbsd ## ETA10
169 #LIBES= -lcurses -lbsd ## Irix3.1 on the SGI-IRIS4D
170 #LIBES= -lcurses -lbsd -lc_s ## Irix3.3 on the SGI-IRIS4D w/o yp
171 #LIBES= -lcurses -lsun -lbsd -lc_s ## Irix3.3 on the SGI-IRIS4D with yp
172 #LIBES= -lcurses -lsocket -lbsd ## Amdahl UTS 2.1
173 #LIBES= -lcurses -lsocket ## Intel's hypercube.
174 #LIBES= -lcurses -lsocket ## ns32000 based Opus.
175 #LIBES= -lcurses -lcposix ## ISC 2.2 without networking
176 #LIBES= -lcposix -lc_s -lcurses -linet ## ISC 2.2 with networking
177 #LIBES= -lcurses -lsec -lc_s ## ISC 2.0.2 without networking
178 #LIBES= -lcurses -linet -lsec -lc_s ## ISC 2.0.2 with networking
179 #LIBES= -lcurses -lintl -lcrypt ## SCO SysVR3.2v2.0
180 #LIBES= -lcurses -lintl -lsocket -lcrypt ## SCO+ODT1.1
181 #LIBES= -lposix -ltermcap ## A/UX 2.0
182 #LIBES= -lposix -ltermcap -lc_s ## A/UX 3.0
183 #LIBES= -ldirent -lcurses ## att3b1 cc w/o shared lib & dirlib
184 #LIBES= -shlib -ldirent -lcurses ## att3b1 gcc with shared lib & dirlib
185 #LIBES= -ltermlib -lsocket -lnsl -lc /usr/ucblib/libucb.a ## SysV4 with BSDTIMES
186 #LIBES= -lcurses -lnsl -lsocket -lc /usr/ucblib/libucb.a ## Stardent Vistra
187 #LIBES= -ltermc ## emx under OS/2
188 LIBES= ## Minix, VMS_POSIX
189 #LIBES= -ltermcap -lcrypt ## Multiflow
190 #LIBES= -ltermcap -lcrypt ## NetBSD
191 #LIBES= -lcurses ## DDE Supermax
192
193 ################################################################
194 ## EXTRAFLAGS and EXTRALIBS
195 ################################################################
196 # Compiling for HESIOD
197 #HESDEF = -DHESIOD -I/usr/athena/include
198 #HESLIB = -L/usr/athena/lib -lhesiod
199 #
200 # Compiling for AFS with kerberos authentication
201 #AFSLIBDIR = /usr/afsws/lib
202 #AFSDEF = -DAFS -I/usr/afsws/include
203 #AFS33LIB = -laudit
204 #
205 #Solaris and HPUX require the BSD libraries with AFS.
206 #We use -lc to use only what we require.
207 #AFSAUXLIB = -lsocket -lnsl -lc -lucb # Solaris
208 #AFSAUXLIB = -lc -lBSD # HPUX
209 #
210 #AFSLIB = -L$(AFSLIBDIR) -L$(AFSLIBDIR)/afs -lkauth -lprot -lubik\
211 # -lauth -lrxkad -lsys -ldes -lrx -llwp -lcom_err\
212 # $(AFSLIBDIR)/afs/util.a $(AFS33LIB) $(AFSAUXLIB)
213 #
214
215 EXTRAFLAGS = $(HESDEF) $(AFSDEF)
216 EXTRALIBS = $(HESLIB) $(AFSLIB)
217
218
219 # The difficult choice of a c-compiler...
220 # First, you should try your own c-compiler.
221 # Gcc -traditional is also a safe choice.
222 # If you think that you have good include files try gcc -Wall...
223 # If you want to take out -traditional, make sure that your sys/ioctl.h
224 # is fixed correctly, otherwise you'll be stopped for tty input, or you
225 # will lose the editor and job control.
226
227 # The -B tells gcc to use /bin/ld. This is to avoid using the gnu ld, which
228 # on the suns does not know how to make dynamically linked binaries.
229 #CC= gcc -Wall -pipe -B/bin/ # -ansi -pedantic
230 #CC= gcc -m486 -pipe -Wall # Generate code for Intel 486 (linux)
231 #CC= cc
232 #CC= occ
233 #CC= acc
234 #CC= pcc
235 #CC= hc -w
236 CC= c89 # For VMS/POSIX
237 #CC= /bin/cc # For suns, w/o gcc and SVR4
238 #CC= /usr/lib/sun.compile/cc # FPS 500 (+FPX) with Sun C compiler
239 #CC= /opt/SUNWspro/bin/cc # Solaris 2.1
240 #CC= scc # Alliant fx2800
241 #CC= lcc -wa
242 ED= ed
243 AS= as
244 RM= rm
245 CXREF= /usr/ucb/cxref
246 VGRIND= csh /usr/ucb/vgrind
247 CTAGS= /usr/ucb/ctags
248 #XSTR= /usr/ucb/xstr
249 SCCS= /usr/local/sccs
250 PARALLEL=12 # Make the multi-max run fast.
251 #P=& # Use Sequent's parallel make
252 P=
253 DESTDIR=/usr/local
254 MANSECT=1
255 DESTBIN=${DESTDIR}/bin
256 DESTMAN=${DESTDIR}/man/man${MANSECT}
257 # DESTMAN=${DESTDIR}/catman/man${MANSECT} # A/UX
258 # DESTMAN=${DESTDIR}/usr/share/man/man${MANSECT} # Stardent Vistra (SysVR4)
259 # DESTMAN=/usr/catman/1l # Amiga unix (SysVR4)
260 FTPAREA=/usr/spool/ftp
261
262 ASSRCS= sh.c sh.dir.c sh.dol.c sh.err.c sh.exec.c sh.char.c \
263 sh.exp.c sh.file.c sh.func.c sh.glob.c sh.hist.c sh.init.c \
264 sh.lex.c sh.misc.c sh.parse.c sh.print.c sh.proc.c sh.sem.c \
265 sh.set.c sh.time.c sh.char.h sh.dir.h sh.proc.h sh.h
266 PSSRCS= sh.decls.h glob.c glob.h mi.termios.c mi.wait.h mi.varargs.h ma.setp.c \
267 vms.termcap.c
268 SHSRCS= ${ASSRCS} ${PSSRCS}
269 SHOBJS= sh.${SUF} sh.dir.${SUF} sh.dol.${SUF} sh.err.${SUF} sh.exec.${SUF} \
270 sh.char.${SUF} sh.exp.${SUF} sh.func.${SUF} sh.glob.${SUF} \
271 sh.hist.${SUF} sh.init.${SUF} sh.lex.${SUF} sh.misc.${SUF} \
272 sh.parse.${SUF} sh.print.${SUF} sh.proc.${SUF} sh.sem.${SUF} \
273 sh.set.${SUF} sh.time.${SUF} glob.${SUF} mi.termios.${SUF} \
274 ma.setp.${SUF} vms.termcap.${SUF}
275
276 TWSRCS= tw.decls.h tw.h tw.help.c tw.init.c tw.parse.c tw.spell.c \
277 tw.comp.c tw.color.c
278 TWOBJS= tw.help.${SUF} tw.init.${SUF} tw.parse.${SUF} tw.spell.${SUF} \
279 tw.comp.${SUF} tw.color.${SUF}
280
281 EDSRCS= ed.chared.c ed.decls.h ed.defns.c ed.h ed.init.c ed.inputl.c \
282 ed.refresh.c ed.screen.c ed.xmap.c ed.term.c ed.term.h
283 EDOBJS= ed.chared.${SUF} ed.refresh.${SUF} ed.screen.${SUF} ed.init.${SUF} \
284 ed.inputl.${SUF} ed.defns.${SUF} ed.xmap.${SUF} ed.term.${SUF}
285
286 TCSRCS= tc.alloc.c tc.bind.c tc.const.c tc.decls.h tc.disc.c \
287 tc.func.c tc.os.c tc.os.c tc.os.h tc.printf.c tc.prompt.c \
288 tc.sched.c tc.sig.c tc.sig.h tc.str.c sh.types.h tc.vers.c tc.wait.h \
289 tc.who.c tc.h
290 TCOBJS= tc.alloc.${SUF} tc.bind.${SUF} tc.const.${SUF} tc.defs.${SUF} \
291 tc.disc.${SUF} tc.func.${SUF} tc.os.${SUF} tc.os.${SUF} tc.printf.${SUF} \
292 tc.prompt.${SUF} tc.sched.${SUF} tc.sig.${SUF} tc.str.${SUF} \
293 tc.vers.${SUF} tc.who.${SUF}
294
295 PVSRCS= Makefile.std Makefile.vms Makefile.in Makefile.win32
296 AVSRCS= BUILDING Fixes MAKEDIFFS MAKESHAR NewThings README.md FAQ \
297 WishList config_f.h eight-bit.me glob.3 patchlevel.h \
298 pathnames.h tcsh.man Ported src.desc Imakefile imake.config \
299 complete.tcsh vmsreadme.txt termcap.vms snames.h host.defs \
300 gethost.c tcsh.man2html configure.ac aclocal.m4 dot.login dot.tcshrc
301
302 VHSRCS=${PVSRCS} ${AVSRCS}
303
304 CONFSRCS=config/*
305
306 ALLSRCS= ${SHSRCS} ${TWSRCS} ${EDSRCS} ${TCSRCS} ${VHSRCS}
307 DISTSRCS= ${PSSRCS} ${TWSRCS} ${EDSRCS} ${TCSRCS} ${AVSRCS}
308
309
310 OBJS= ${SHOBJS} ${TWOBJS} ${EDOBJS} ${TCOBJS}
311
312
313 all: ${BUILD}
314
315 tcsh:$(P) ${OBJS}
316 rm -f tcsh core
317 ${CC} -o tcsh ${LDFLAGS} ${CFLAGS} ${OBJS} ${LIBES} ${EXTRALIBS}
318
319 # Purify
320 pure:$(P) ${OBJS}
321 rm -f tcsh core
322 purify `echo ${CC} | sed -e s,-B/bin/,,` -o tcsh ${LDFLAGS} ${CFLAGS} ${OBJS} ${LIBES} ${EXTRALIBS}
323 # OS/2
324 tcsh.exe: tcsh
325 emxbind tcsh
326
327 gethost: gethost.c sh.err.h tc.const.h sh.h
328 rm -f gethost
329 ${CC} -o gethost ${LDFLAGS} ${CFLAGS} ${DFLAGS} gethost.c ${LIBES} ${EXTRALIBS}
330
331 tc.defs.c: gethost host.defs
332 @rm -f $@
333 @echo "/* Do not edit this file, make creates it */" > $@
334 ./gethost host.defs >> $@
335
336 tcsh.ps: tcsh.man
337 rm -f tcsh.ps
338 -ptroff -man tcsh.man > tcsh.ps
339
340
341 #.c.${SUF}:
342 # ${CC} ${CF} ${CFLAGS} ${DFLAGS} ${EXTRAFLAGS} $<
343
344 # _VMS_POSIX #module addition
345 .c.${SUF}:
346 @(echo '\#module '`echo $< | sed -e 's/\./_/g'`; cat $<) > $*..c
347 @echo ${CC} ${CF} ${CFLAGS} ${DFLAGS} ${EXTRAFLAGS} $*.c
348 @${CC} ${CF} ${CFLAGS} ${DFLAGS} ${EXTRAFLAGS} $*..c
349 @mv $*..o $*.o
350 @rm -f $*..c
351
352
353 # Don't do any special massaging of C files for sharing of strings!!
354 # it causes weird segmentation faults on some systems.
355 #.c.o:
356 # ${CC} -E ${CFLAGS} $*.c | ${XSTR} -c -
357 # ${CC} ${CF} ${CFLAGS} x.c
358 # mv -f x.o $*.o
359 # rm -f x.c
360
361 #ed.init.o: ed.init.c
362 # ${CC} -E ${CFLAGS} $*.c | ${XSTR} -c -
363 # ${CC} -R ${CF} ${CF} x.c
364 # mv -f x.o $*.o
365 # rm -f x.c
366
367 #strings.o: strings
368 # ${XSTR}
369 # ${CC} -c -R xs.c
370 # mv -f xs.o strings.o
371 # rm -f xs.c
372
373 ##.DEFAULT:
374 ## ${SCCS} get $<
375
376 ##.DEFAULT:
377 ## co $<
378
379 ed.defns.h: ed.defns.c
380 @rm -f $@
381 @echo '/* Do not edit this file, make creates it. */' > $@
382 @echo '\#ifndef _h_ed_defns' >> $@
383 @echo '\#define _h_ed_defns' >> $@
384 grep '[FV]_' ed.defns.c | grep '^\#define' >> $@
385 @echo '\#endif /* _h_ed_defns */' >> $@
386
387 sh.err.h: sh.err.c
388 @rm -f $@
389 @echo '/* Do not edit this file, make creates it. */' > $@
390 @echo '\#ifndef _h_sh_err' >> $@
391 @echo '\#define _h_sh_err' >> $@
392 grep 'ERR_' sh.err.c | grep '^#define' >> $@
393 @echo '\#endif /* _h_sh_err */' >> $@
394
395 tc.const.h: tc.const.c sh.char.h config.h config_f.h sh.types.h sh.err.h
396 @rm -f $@
397 @echo '/* Do not edit this file, make creates it. */' > $@
398 @echo '\#ifndef _h_tc_const' >> $@
399 @echo '\#define _h_tc_const' >> $@
400 ${CC} -E $(INCLUDES) ${DFLAGS} -D_h_tc_const tc.const.c | \
401 grep 'Char STR' | \
402 sed -e 's/Char \([a-zA-Z0-9_]*\) *\[ *\].*/extern Char \1[];/' | \
403 sort >> $@
404 @echo '\#endif /* _h_tc_const */' >> $@
405
406 csh.prof: ${OBJS} sh.prof.${SUF} mcrt0.${SUF}
407 rm -f csh.prof
408 ld -X mcrt0.${SUF} ${OBJS} -o csh.prof ${LIBES} -lc
409
410 sh.prof.${SUF}:
411 cp sh.c sh.prof.c
412 ${CC} ${CF} ${CFLAGS} -DPROF sh.prof.c
413
414 lint: tc.const.h ed.defns.h
415 lint ${DFLAGS} ${LFLAGS} sh*.c tw*.c ed*.c tc.*.c ${LIBES}
416
417 alint: tc.const.h ed.defns.h
418 alint ${DFLAGS} ${LFLAGS} sh*.c tw*.c ed*.c tc.*.c ${LIBES}
419
420 print:
421 @pr READ_ME
422 @pr makefile makefile.*
423 @(size -l a.out; size *.${SUF}) | pr -h SIZES
424 @${CXREF} sh*.c | pr -h XREF
425 @ls -l | pr
426 @pr sh*.h [a-rt-z]*.h sh*.c alloc.c
427
428 vprint:
429 @pr -l84 READ_ME TODO
430 @pr -l84 makefile makefile.*
431 @(size -l a.out; size *.${SUF}) | pr -l84 -h SIZES
432 @${CXREF} sh*.c | pr -l84 -h XREF
433 @ls -l | pr -l84
434 @${CXREF} sh*.c | pr -l84 -h XREF
435 @pr -l84 sh*.h [a-rt-z]*.h sh*.c alloc.c
436
437 vgrind:
438 @cp /dev/null index
439 @for i in *.h; do vgrind -t -h "C Shell" $$i >/crp/bill/csh/$$i.t; done
440 @for i in *.c; do vgrind -t -h "C Shell" $$i >/crp/bill/csh/$$i.t; done
441 @vgrind -t -x -h Index index >/crp/bill/csh/index.t
442
443 install: tcsh
444 -mv -f ${DESTBIN}/tcsh ${DESTBIN}/tcsh.old
445 cp tcsh ${DESTBIN}/tcsh
446 -strip ${DESTBIN}/tcsh
447 chmod 555 ${DESTBIN}/tcsh
448
449 install.man: tcsh.man
450 -rm -f ${DESTMAN}/tcsh.${MANSECT}
451 cp tcsh.man ${DESTMAN}/tcsh.${MANSECT}
452 chmod 444 ${DESTMAN}/tcsh.${MANSECT}
453
454 # Amiga Unix
455 #install.man: tcsh.man
456 # compress tcsh.man
457 # cp tcsh.man.Z ${DESTMAN}/tcsh.Z
458 # chmod 444 ${DESTMAN}/tcsh.Z
459
460 # Apple A/UX
461 #install.man: tcsh.man
462 # -rm -f ${DESTMAN}/tcsh.${MANSECT}.Z
463 # nroff -man tcsh.man | compress > ${DESTMAN}/tcsh.${MANSECT}.Z
464 # chmod 444 ${DESTMAN}/tcsh.${MANSECT}.Z
465
466 clean:
467 ${RM} -f a.out strings x.c xs.c tcsh tcsh.a _MAKE_LOG core gethost
468 ${RM} -f *.${SUF} sh.prof.c ed.defns.h tc.const.h sh.err.h tc.defs.c
469 ${RM} -f tcsh.*.m tcsh.*.cat
470
471 veryclean: clean
472 ${RM} -f config.h
473 ${RM} -f *~ #*
474
475 tags: /tmp
476 ${CTAGS} sh*.c
477
478 tar.Z:
479 rm -f tcsh-${VERSION}.tar.Z
480 rm -rf tcsh-${VERSION}
481 mkdir tcsh-${VERSION} tcsh-${VERSION}/config
482 cp ${ALLSRCS} tcsh-${VERSION}
483 cp ${CONFSRCS} tcsh-${VERSION}/config
484 tar cf - nls/Makefile nls/?*/set?* | (cd tcsh-${VERSION}; tar xpf -)
485 tar cvf - tcsh-${VERSION} | compress > tcsh-${VERSION}.tar.Z
486 rm -rf tcsh-${VERSION}
487
488 tar.gz:
489 rm -f tcsh-${VERSION}.tar.gz
490 rm -rf tcsh-${VERSION}
491 mkdir tcsh-${VERSION} tcsh-${VERSION}/config
492 cp ${ALLSRCS} tcsh-${VERSION}
493 cp ${CONFSRCS} tcsh-${VERSION}/config
494 tar cf - nls/Makefile nls/?*/set?* | (cd tcsh-${VERSION}; tar xpf -)
495 tar cvf - tcsh-${VERSION} | gzip > tcsh-${VERSION}.tar.gz
496 rm -rf tcsh-${VERSION}
497
498 shar:
499 rm -f tcsh-*.shar
500 rm -rf tcsh-${VERSION}
501 mkdir tcsh-${VERSION} tcsh-${VERSION}/config
502 cp ${ALLSRCS} tcsh-${VERSION}
503 cp ${CONFSRCS} tcsh-${VERSION}/config
504 tar cf - nls/Makefile nls/?*/set?* | (cd tcsh-${VERSION}; tar xpf -)
505 MAKESHAR -v -n tcsh-${VERSION} tcsh-${VERSION} \
506 tcsh-${VERSION}/?* tcsh-${VERSION}/config/?* \
507 tcsh-${VERSION}/?*/set?*
508 rm -rf tcsh-${VERSION}
509
510 catalogs:
511 @(cd nls; make catalogs)
512
513 tcsh-${VERSION}.tar.Z:
514 rm -rf tcsh-${VERSION}
515 rm -f tcsh-${VERSION}.tar tcsh-${VERSION}.tar.Z DIFFS.[123]
516 mkdir tcsh-${VERSION}
517 ./MAKEDIFFS bsd
518 mv DIFFS.1 DIFFS.2 DIFFS.3 tcsh-${VERSION}
519 cp ${DISTSRCS} tcsh-${VERSION}
520 mkdir tcsh-${VERSION}/config
521 cp ${CONFSRCS} tcsh-${VERSION}/config
522 cp Makefile tcsh-${VERSION}/Makefile.new
523 tar cf - nls/Makefile nls/?*/set?* | (cd tcsh-${VERSION}; tar xpf -)
524 tar cvf - tcsh-${VERSION} | compress > tcsh-${VERSION}.tar.Z
525 rm -rf tcsh-${VERSION}
526
527 tcsh.tahoe-${VERSION}.tar.Z:
528 rm -rf tcsh.tahoe-${VERSION}
529 rm -f tcsh.tahoe-${VERSION}.tar tcsh.tahoe-${VERSION}.tar.Z DIFFS.[123]
530 mkdir tcsh.tahoe-${VERSION}
531 ./MAKEDIFFS tahoe
532 mv DIFFS.1 DIFFS.2 DIFFS.3 tcsh.tahoe-${VERSION}
533 cp ${DISTSRCS} tcsh.tahoe-${VERSION}
534 mkdir tcsh.tahoe-${VERSION}/config
535 cp ${CONFSRCS} tcsh.tahoe-${VERSION}/config
536 cp Makefile tcsh.tahoe-${VERSION}/Makefile.new
537 tar cf - nls/Makefile nls/?*/set?* | (cd tcsh-${VERSION}; tar xpf -)
538 tar cvf - tcsh.tahoe-${VERSION} | compress > tcsh.tahoe-${VERSION}.tar.Z
539 rm -rf tcsh.tahoe-${VERSION}
540
541 tcsh.reno-${VERSION}.tar.Z:
542 rm -rf tcsh.reno-${VERSION}
543 rm -f tcsh.reno-${VERSION}.tar tcsh.reno-${VERSION}.tar.Z DIFFS.[123]
544 mkdir tcsh.reno-${VERSION}
545 ./MAKEDIFFS reno
546 mv DIFFS.1 DIFFS.2 DIFFS.3 tcsh.reno-${VERSION}
547 cp ${DISTSRCS} tcsh.reno-${VERSION}
548 mkdir tcsh.reno-${VERSION}/config
549 cp ${CONFSRCS} tcsh.reno-${VERSION}/config
550 cp Makefile tcsh.reno-${VERSION}/Makefile.new
551 tar cf - nls/Makefile nls/?*/set?* | (cd tcsh-${VERSION}; tar xpf -)
552 tar cvf - tcsh.reno-${VERSION} | compress > tcsh.reno-${VERSION}.tar.Z
553 rm -rf tcsh.reno-${VERSION}
554
555 ftp: tcsh-${VERSION}.tar.Z tcsh.tahoe-${VERSION}.tar.Z
556 cp tcsh-${VERSION}.tar.Z tcsh.tahoe-${VERSION}.tar.Z ${FTPAREA}
557 cp tcsh.man ${FTPAREA}
558
559 #
560 # Dependencies
561 #
562 config.h: config_f.h
563
564 TCH=tc.h tc.const.h tc.decls.h tc.nls.h tc.os.h tc.sig.h
565 SHH=sh.h sh.types.h sh.char.h sh.err.h sh.dir.h sh.proc.h pathnames.h \
566 sh.decls.h ${TCH}
567 TWH=tw.h tw.decls.h
568 EDH=ed.h ed.decls.h
569
570 # EDH
571 EDINC=sh.${SUF} sh.func.${SUF} sh.lex.${SUF} sh.print.${SUF} sh.proc.${SUF} \
572 sh.set.${SUF} tc.bind.${SUF} tc.os.${SUF} tc.prompt.${SUF} \
573 tc.sched.${SUF} tw.parse.${SUF}
574 ${EDOBJS} ${EDINC} : ${EDH}
575
576 # SHH
577 ${OBJS}: config.h ${SHH}
578
579 # TWH
580 TWINC=ed.chared.${SUF} ed.inputl.${SUF} sh.exec.${SUF} sh.func.${SUF} \
581 sh.set.${SUF} tc.func.${SUF} tc.nls.${SUF}
582 ${TWOBJS} ${TWINC}: ${TWH}
583
584 # glob.h
585 glob.${SUF} sh.glob.${SUF}: glob.h
586
587 # ed.defns.h
588 EDDINC=tc.bind.${SUF} tc.func.${SUF} tc.os.${SUF}
589 ${EDOBJS} ${EDDINC}: ed.defns.h
590
591 # tc.defs.o
592 tc.defs.${SUF}: tc.defs.c sh.h