home *** CD-ROM | disk | FTP | other *** search
/ The Fatted Calf / The Fatted Calf.iso / Unix / Shells / tcsh / Source / Makefile.vms < prev    next >
Encoding:
Makefile  |  1994-02-21  |  15.1 KB  |  491 lines

  1. # $Id: Makefile.vms,v 1.5 1992/11/20 08:56:38 christos Exp $
  2. #    Makefile    4.3    6/11/83
  3. #
  4. # C Shell with process control; VM/UNIX VAX Makefile
  5. # Bill Joy UC Berkeley; Jim Kulp IIASA, Austria
  6. #
  7. # With an input editor, command completion, etc. and ported to all sorts of
  8. # things; Paul Placeway, CIS Dept., Ohio State University
  9. #
  10. SHELL=/bin/sh
  11. VERSION=6.03
  12. BUILD=tcsh
  13. #BUILD=jump    # Build tcsh.a and link it with jump table libraries (linux)
  14. #BUILD=nojump    # Build tcsh.a and link it with shared libraries (linux)
  15. #BUILD=static    # Build tcsh.a and link it with static libraries (linux)
  16.  
  17. ################################################################
  18. ## CFLAGS.  For various -D things, see config.h
  19. ################################################################
  20. #
  21. # These are the default suffixes from .c to .o and -c to get there
  22. # but to use the global optimizer on the mips boxes, see below
  23. #
  24. SUF=o
  25. CF=-c
  26.  
  27. INCLUDES=-I. -I..
  28.  
  29. LFLAGS=$(INCLUDES)
  30. #LFLAGS=$(INCLUDES) -Zn10000        # hpux lint
  31.  
  32.  
  33. #CFLAGS= $(INCLUDES) -g            # debug
  34. #CFLAGS= $(INCLUDES) -O            # production
  35. #CFLAGS= $(INCLUDES)             # Broken optimizers....
  36.  
  37. #CFLAGS= -g -pg $(INCLUDES) -DPROF
  38. #CFLAGS= -O -pg $(INCLUDES) -DPROF
  39.  
  40. # gcc 1.00-1.37
  41. #CFLAGS=-O $(INCLUDES) -finline-functions -fstrength-reduce 
  42.  
  43. # gcc 1.37-1.40
  44. #CFLAGS=-O $(INCLUDES) -fcombine-regs -finline-functions -fstrength-reduce 
  45. # add -msoft-float for 68881 machines.
  46.  
  47. # gcc 2.0
  48. # On the sparc, don't use -O2; it breaks setjmp() and vfork()
  49. #CFLAGS=-O $(INCLUDES)
  50.  
  51. # gcc-2.1
  52. #CFLAGS=-O2 $(INCLUDES)
  53.  
  54. # gcc 2.1 on linux
  55. #CFLAGS=-O6 -fomit-frame-pointer $(INCLUDES)
  56.  
  57. #hpux 8.0
  58. #CFLAGS= $(INCLUDES) +O3 -Aa
  59.  
  60. # Ultrix 4.2a
  61. #CFLAGS= $(INCLUDES) -O -Olimit 2000
  62.  
  63. # for silicon graphics (and other mips compilers) -- use the
  64. # global optimizer! (-O3).
  65. # On SGI 4.0+ you need to add -D__STDC__ too.
  66. #CFLAGS= -O3 $(INCLUDES) 
  67. #CF=-j
  68. #SUF=u
  69. #.SUFFIXES: .u                 ## Ultrix needs that
  70.  
  71. # mips systems
  72. # CFLAGS= $(INCLUDES) -O -systype bsd43 -Wf,-XNd5000 -Wf,-XNp6000 -Olimit 2000
  73.  
  74. # for at&t machines
  75. #CFLAGS= -O -Ksd $(INCLUDES)
  76.  
  77. # Stardent Titan
  78. #CFLAGS = $(INCLUDES) -O -43
  79.  
  80. # Stardent Stellar or sunos4 w/o gcc
  81. #CFLAGS = $(INCLUDES) -O4
  82.  
  83. # Dnix 5.3
  84. #CFLAGS = -O -X7
  85.  
  86. # Apollo's with cc [apollo builtins don't work with gcc]
  87. # and apollo should not define __STDC__ if it does not have
  88. # the standard header files. RT's (aos4.3) need that too;
  89. # you might want to skip the -O on the rt's... Not very wise.
  90. # AIX/ESA needs -D_IBMESA on command line (this may disappear by GA)
  91. #DFLAGS=-U__STDC__ 
  92. #DFLAGS=-D_IBMESA
  93. # On aix2.2.1 we need more compiler space.
  94. #DFLAGS=-Nd4000 -Nn3000
  95. # AU/X 2.0 needs a flag for POSIX (read the config file)
  96. #DFLAGS=-Zp
  97. # Tektronix 4300 running UTek 4.0 (BSD 4.2) needs:
  98. #DFLAGS = -DUTek
  99. # VMS_POSIX needs:
  100. DFLAGS=-D_VMS_POSIX
  101. #DFLAGS=
  102.  
  103.  
  104. ################################################################
  105. ## LDLAGS.  Define something here if you need to
  106. ################################################################
  107. LDFLAGS=             ## The simplest, suitable for all.
  108. #LDFLAGS= -s            ## Stripped. Takes less space on disk.
  109. #LDFLAGS= -s -n            ## Pure executable. Spares paging over
  110. #                 ## the network for machines with local
  111. #                ## swap but external /usr/local/bin .
  112. #LDFLAGS= -s -n -Bstatic    ## Without dynamic links. (SunOS)
  113. #LDFLAGS= -Wl,-s,-n        ## Stripped, shared text (Unicos)
  114.  
  115. ################################################################
  116. ## LIBES.  Pick one, or roll your own.
  117. ################################################################
  118. #LIBES= -ltermcap        ## BSD style things, hpux
  119. #LIBES= -ltermc            ## emx under OS/2
  120. #LIBES= -ltermcap -lsec        ## Tek XD88/10 (UTekV) with PW_SHADOW
  121. #LIBES= -ltermcap -lsec        ## Motorola MPC (sysV88) with PW_SHADOW
  122. #LIBES= -ltermcap -lcs        ## Mach
  123. #LIBES= -lcurses        ## Sys V3 w/o networking (and Sys V4)
  124. #LIBES= -lcurses -lc /usr/ucblib/libucb.a ## Sys V4 with BSDTIMES
  125. #LIBES= -lcurses        ## Sys V4 w/o BSDTIMES or Solaris 2
  126. #LIBES= -lcurses -lnet        ## Sys V3 with networking
  127. #LIBES= -lcurses -ldir        ## Sys V2 w/o networking [needs directory lib]
  128. #LIBES= -lcurses -ldir -lnet    ## Sys V2 with networking [needs directory lib]
  129. #LIBES= -lcurses -lsocket -lbsd    ## Amdahl UTS 2.1
  130. #LIBES= -lcurses -lbsd        ## For Irix3.1 on SGI-IRIS4D or ETA10
  131. #LIBES= -lcurses -lsun -lbsd -lc_s ## For Irix3.3 on SGI-IRIS4D (w/ yp)
  132. #LIBES= -lcurses -lbsd -lc_s    ## For Irix3.3 on SGI-IRIS4D (wo/ yp)
  133. #LIBES= -lcurses -lbsd        ## For aix on an IBM 370 or rs6000 or ps2
  134. #LIBES= -lcurses        ## For aix on the rt
  135. #LIBES= -lcurses -lcposix    ## ISC 2.2 
  136. #LIBES= -lcposix -lc_s -lcurses -linet ## ISC 2.2 with networking
  137. #LIBES= -lcurses -linet -lsec -lc_s  ## ISC 2.0.2 with networking
  138. #LIBES= -lcurses -lsec -lc_s    ## ISC 2.0.2 without networking
  139. #LIBES= -ltermcap -ldir -lx    ## Xenix 386 style things
  140. #LIBES= -lcurses -lintl        ## SCO SysVR3.2v2.0
  141. #LIBES= -lcurses -lintl -lsocket ## SCO+ODT1.1
  142. #LIBES= -lposix -ltermcap    ## A/UX 2.0
  143. #LIBES= -ltermcap -lbsd        ## DEC osf1 on the alpha
  144. #LIBES= -ltermcap -lseq        ## Sequent's Dynix
  145. #LIBES= -lcurses -lsocket    ## Intel's hypercube and ns32000 based Opus.
  146. #LIBES= -ldirent -lcurses       ## att3b1 stk cc w/o shared lib & directory lib
  147. #LIBES= -shlib -ldirent -lcurses ## att3b1 gcc1.40 w/ shared lib & directory lib
  148. LIBES=                ## Minix, VMS_POSIX
  149. #LIBES= -lcurses        ## For a stellar
  150. #LIBES= -lcurses -lnsl -lsocket -lc /usr/ucblib/libucb.a ## Stardent Vistra
  151. #LIBES= -ltermcap -lndir -lsocket -ljobs ## masscomp RTU6.0
  152. #LIBES= -ltermcap -lauth        ## for Ultrix with Enhanced Security
  153.  
  154.  
  155. # The difficult choice of a c-compiler...
  156. # First, you should try your own c-compiler. 
  157. # Gcc -traditional is also a safe choice. 
  158. # If you think that you have good include files try gcc -Wall...
  159. # If you want to take out -traditional, make sure that your sys/ioctl.h
  160. # is fixed correctly, otherwise you'll be stopped for tty input, or you
  161. # will lose the editor and job control.
  162.  
  163. # The -B tells gcc to use /bin/ld. This is to avoid using the gnu ld, which
  164. # on the suns does not know how to make dynamically linked binaries.
  165. #CC=    gcc -Wall -B/bin/    
  166. #CC=    gcc -m486 -Wall # Generate code for Intel 486 (linux)
  167. #CC=    cc
  168. #CC=    occ
  169. #CC=    acc
  170. CC=    c89    # For VMS/POSIX
  171. #CC=    /bin/cc    # For suns, w/o gcc and SVR4
  172. #CC=    /usr/lib/sun.compile/cc  # FPS 500 (+FPX) with Sun C compiler
  173. #CC=    scc    # Alliant fx2800
  174. ED=    ed
  175. AS=    as
  176. RM=    rm
  177. CXREF=    /usr/ucb/cxref
  178. VGRIND=    csh /usr/ucb/vgrind
  179. CTAGS=    /usr/ucb/ctags
  180. #XSTR= /usr/ucb/xstr
  181. SCCS=    /usr/local/sccs
  182. PARALLEL=12                # Make the multi-max run fast.
  183. #P=&                    # Use Sequent's parallel make
  184. P=
  185. DESTDIR=/usr/local
  186. MANSECT=1
  187. DESTBIN=${DESTDIR}/bin
  188. DESTMAN=${DESTDIR}/man/man${MANSECT}
  189. # DESTMAN=${DESTDIR}/catman/man${MANSECT}     # A/UX
  190. # DESTMAN=${DESTDIR}/usr/share/man/man${MANSECT} # Stardent Vistra (SysVR4)
  191. # DESTMAN=/usr/catman/1l             # Amiga unix (SysVR4)
  192. FTPAREA=/usr/spool/ftp
  193.  
  194. ASSRCS=    sh.c sh.dir.c sh.dol.c sh.err.c sh.exec.c sh.char.c \
  195.     sh.exp.c sh.file.c sh.func.c sh.glob.c sh.hist.c sh.init.c \
  196.     sh.lex.c sh.misc.c sh.parse.c sh.print.c sh.proc.c sh.sem.c \
  197.     sh.set.c sh.time.c sh.char.h sh.dir.h sh.proc.h sh.h 
  198. PSSRCS= sh.decls.h glob.c glob.h mi.termios.c mi.wait.h mi.varargs.h ma.setp.c \
  199.     vms.termcap.c
  200. SHSRCS= ${ASSRCS} ${PSSRCS}
  201. SHOBJS=    sh.${SUF} sh.dir.${SUF} sh.dol.${SUF} sh.err.${SUF} sh.exec.${SUF} \
  202.     sh.char.${SUF} sh.exp.${SUF} sh.func.${SUF} sh.glob.${SUF} \
  203.     sh.hist.${SUF} sh.init.${SUF} sh.lex.${SUF} sh.misc.${SUF} \
  204.     sh.parse.${SUF} sh.print.${SUF} sh.proc.${SUF} sh.sem.${SUF} \
  205.     sh.set.${SUF} sh.time.${SUF} glob.${SUF} mi.termios.${SUF} \
  206.     ma.setp.${SUF} vms.termcap.${SUF}
  207.  
  208. TWSRCS= tw.decls.h tw.h tw.help.c tw.init.c tw.parse.c tw.spell.c \
  209.     tw.comp.c
  210. TWOBJS=    tw.help.${SUF} tw.init.${SUF} tw.parse.${SUF} tw.spell.${SUF} \
  211.     tw.comp.${SUF}
  212.  
  213. EDSRCS= ed.chared.c ed.decls.h ed.defns.c ed.h ed.init.c ed.inputl.c \
  214.     ed.refresh.c ed.screen.c ed.xmap.c ed.term.c ed.term.h
  215. EDOBJS=    ed.chared.${SUF} ed.refresh.${SUF} ed.screen.${SUF} ed.init.${SUF} \
  216.     ed.inputl.${SUF} ed.defns.${SUF} ed.xmap.${SUF} ed.term.${SUF}
  217.  
  218. TCSRCS= tc.alloc.c tc.bind.c tc.const.c tc.decls.h tc.disc.c \
  219.     tc.func.c tc.os.c tc.os.h tc.printf.c tc.prompt.c \
  220.     tc.sched.c tc.sig.c tc.sig.h tc.str.c sh.types.h tc.vers.c tc.wait.h \
  221.     tc.who.c tc.h
  222. TCOBJS=    tc.alloc.${SUF} tc.bind.${SUF} tc.const.${SUF} tc.disc.${SUF} \
  223.     tc.func.${SUF} tc.os.${SUF} tc.printf.${SUF} \
  224.     tc.prompt.${SUF} tc.sched.${SUF} tc.sig.${SUF} tc.str.${SUF} \
  225.     tc.vers.${SUF} tc.who.${SUF} 
  226.  
  227. PVSRCS= Makefile Makefile.vms
  228. AVSRCS= Fixes MAKEDIFFS MAKESHAR NewThings README FAQ \
  229.     WishList config_f.h eight-bit.me glob.3 patchlevel.h \
  230.     pathnames.h tcsh.man Ported src.desc Imakefile imake.config \
  231.     README.imake complete.tcsh vmsreadme.txt termcap.vms
  232. VHSRCS=${PVSRCS} ${AVSRCS}
  233.  
  234. CONFSRCS=config/config.* 
  235.  
  236. ALLSRCS=  ${SHSRCS} ${TWSRCS} ${EDSRCS} ${TCSRCS} ${VHSRCS}
  237. DISTSRCS= ${PSSRCS} ${TWSRCS} ${EDSRCS} ${TCSRCS} ${AVSRCS}
  238.  
  239.  
  240. OBJS= ${SHOBJS} ${TWOBJS} ${EDOBJS} ${TCOBJS}
  241.  
  242.  
  243. all: ${BUILD}
  244.  
  245. tcsh:$(P) ${OBJS} 
  246.     rm -f tcsh core
  247.     ${CC} -o tcsh ${LDFLAGS} ${CFLAGS} ${OBJS} ${LIBES}
  248.  
  249. # Linux distribution
  250. jump: tcsh.a
  251.     ${CC} ${LDFLAGS} ${CFLAGS} -o tcsh tcsh.a ${LIBES}
  252.  
  253. nojump: tcsh.a
  254.     ${CC} ${LDFLAGS} -nojump ${CFLAGS} -o tcsh tcsh.a ${LIBES}
  255.  
  256. static: tcsh.a
  257.     ${CC} ${LDFLAGS} -static ${CFLAGS} -o tcsh tcsh.a ${LIBES}
  258.  
  259. tcsh.a:$(P) ${OBJS}
  260.     $(LD) -x -r -o tcsh.a ${OBJS}
  261.  
  262. tcsh.ps: tcsh.man
  263.     rm -f tcsh.ps
  264.     -ptroff -man tcsh.man > tcsh.ps
  265.  
  266.  
  267. #.c.${SUF}:
  268. #    ${CC} ${CF} ${CFLAGS} ${DFLAGS} $<
  269.  
  270. # _VMS_POSIX #module addition
  271. .c.${SUF}:
  272.     @(echo '\#module '`echo $< | sed -e 's/\./_/g'`; cat $<) > $*..c
  273.     @echo ${CC} ${CF} ${CFLAGS} ${DFLAGS} $*.c
  274.     @${CC} ${CF} ${CFLAGS} ${DFLAGS} $*..c
  275.     @mv $*..o $*.o
  276.     @rm -f $*..c
  277.  
  278.  
  279. # Don't do any special massaging of C files for sharing of strings!!
  280. # it causes weird segmentation faults on some systems.
  281. #.c.o:
  282. #    ${CC} -E ${CFLAGS} $*.c | ${XSTR} -c -
  283. #    ${CC} ${CF} ${CFLAGS} x.c 
  284. #    mv -f x.o $*.o
  285. #    rm -f x.c
  286.  
  287. #ed.init.o: ed.init.c
  288. #    ${CC} -E ${CFLAGS} $*.c | ${XSTR} -c -
  289. #    ${CC} -R ${CF} ${CF} x.c 
  290. #    mv -f x.o $*.o
  291. #    rm -f x.c
  292.  
  293. #strings.o: strings
  294. #    ${XSTR}
  295. #    ${CC} -c -R xs.c
  296. #    mv -f xs.o strings.o
  297. #    rm -f xs.c
  298.  
  299. ##.DEFAULT:
  300. ##    ${SCCS} get $<
  301.  
  302. ##.DEFAULT:
  303. ##    co $<
  304.  
  305. ed.defns.h: ed.defns.c
  306.     @rm -f $@
  307.     @echo '/* Do not edit this file, make creates it. */' > $@
  308.     @echo '\#ifndef _h_ed_defns' >> $@
  309.     @echo '\#define _h_ed_defns' >> $@
  310.     grep '[FV]_' ed.defns.c | grep '\#define' >> $@
  311.     @echo '\#endif /* _h_ed_defns */' >> $@
  312.  
  313. sh.err.h: sh.err.c
  314.     @rm -f $@
  315.     @echo '/* Do not edit this file, make creates it. */' > $@
  316.     @echo '\#ifndef _h_sh_err' >> $@
  317.     @echo '\#define _h_sh_err' >> $@
  318.     grep 'ERR_' sh.err.c | grep '\#define' >> $@
  319.     @echo '\#endif /* _h_sh_err */' >> $@
  320.  
  321. tc.const.h: tc.const.c sh.char.h config.h config_f.h sh.types.h sh.err.h
  322.     @rm -f $@
  323.     @echo '/* Do not edit this file, make creates it. */' > $@
  324.     ${CC} -E $(INCLUDES) ${DFLAGS} tc.const.c | grep 'Char STR' | \
  325.         sed -e 's/Char \([a-zA-Z0-9_]*\)\(.*\)/extern Char \1[];/' | \
  326.         sort >> $@
  327.  
  328. csh.prof: ${OBJS} sh.prof.${SUF} mcrt0.${SUF}
  329.     rm -f csh.prof
  330.     ld -X mcrt0.${SUF} ${OBJS} -o csh.prof ${LIBES} -lc
  331.  
  332. sh.prof.${SUF}:
  333.     cp sh.c sh.prof.c
  334.     ${CC} ${CF} ${CFLAGS} -DPROF sh.prof.c
  335.  
  336. lint: tc.const.h ed.defns.h
  337.     lint ${LFLAGS} sh*.c tw*.c ed*.c tc.*.c ${LIBES}
  338.  
  339. alint: tc.const.h ed.defns.h
  340.     alint ${LFLAGS} sh*.c tw*.c ed*.c tc.*.c ${LIBES}
  341.  
  342. print:
  343.     @pr READ_ME
  344.     @pr makefile makefile.*
  345.     @(size -l a.out; size *.${SUF}) | pr -h SIZES
  346.     @${CXREF} sh*.c | pr -h XREF
  347.     @ls -l | pr 
  348.     @pr sh*.h [a-rt-z]*.h sh*.c alloc.c
  349.  
  350. vprint:
  351.     @pr -l84 READ_ME TODO
  352.     @pr -l84 makefile makefile.*
  353.     @(size -l a.out; size *.${SUF}) | pr -l84 -h SIZES
  354.     @${CXREF} sh*.c | pr -l84 -h XREF
  355.     @ls -l | pr -l84
  356.     @${CXREF} sh*.c | pr -l84 -h XREF
  357.     @pr -l84 sh*.h [a-rt-z]*.h sh*.c alloc.c
  358.  
  359. vgrind:
  360.     @cp /dev/null index
  361.     @for i in *.h; do vgrind -t -h "C Shell" $$i >/crp/bill/csh/$$i.t; done
  362.     @for i in *.c; do vgrind -t -h "C Shell" $$i >/crp/bill/csh/$$i.t; done
  363.     @vgrind -t -x -h Index index >/crp/bill/csh/index.t
  364.  
  365. install: tcsh 
  366.     -mv -f ${DESTBIN}/tcsh  ${DESTBIN}/tcsh.old
  367.     cp tcsh ${DESTBIN}/tcsh
  368.     -strip ${DESTBIN}/tcsh
  369.     chmod 555 ${DESTBIN}/tcsh
  370.  
  371. manpage: tcsh.man
  372.     -rm -f ${DESTMAN}/tcsh.${MANSECT}
  373.     cp tcsh.man ${DESTMAN}/tcsh.${MANSECT}
  374.     chmod 444 ${DESTMAN}/tcsh.${MANSECT}
  375.  
  376. # Amiga Unix
  377. #manpage: tcsh.man
  378. #        compress tcsh.man
  379. #    cp tcsh.man.Z ${DESTMAN}/tcsh.Z
  380. #    chmod 444 ${DESTMAN}/tcsh.Z
  381.  
  382. # Apple A/UX
  383. #manpage: tcsh.man
  384. #    -rm -f ${DESTMAN}/tcsh.${MANSECT}.Z
  385. #    nroff -man tcsh.man | compress > ${DESTMAN}/tcsh.${MANSECT}.Z
  386. #    chmod 444 ${DESTMAN}/tcsh.${MANSECT}.Z
  387.  
  388. clean:
  389.     ${RM} -f a.out strings x.c xs.c tcsh tcsh.a _MAKE_LOG core
  390.     ${RM} -f *.${SUF} sh.prof.c ed.defns.h tc.const.h sh.err.h
  391.  
  392. veryclean: clean
  393.     ${RM} -f *~ #*
  394.  
  395. tags:    /tmp
  396.     ${CTAGS} sh*.c
  397.  
  398. tar:
  399.     rm -f tcsh-${VERSION}.tar.Z
  400.     rm -rf tcsh-${VERSION} 
  401.     mkdir tcsh-${VERSION} tcsh-${VERSION}/config
  402.     cp ${ALLSRCS} tcsh-${VERSION}
  403.     cp ${CONFSRCS} tcsh-${VERSION}/config
  404.     tar cvf - tcsh-${VERSION} | compress > tcsh-${VERSION}.tar.Z
  405.     rm -rf tcsh-${VERSION}
  406.  
  407. shar:    
  408.     rm -f tcsh-*.shar
  409.     rm -rf tcsh-${VERSION} 
  410.     mkdir tcsh-${VERSION} tcsh-${VERSION}/config 
  411.     cp ${ALLSRCS} tcsh-${VERSION}
  412.     cp ${CONFSRCS} tcsh-${VERSION}/config
  413.     MAKESHAR -v -n tcsh-${VERSION} tcsh-${VERSION} \
  414.          tcsh-${VERSION}/* tcsh-${VERSION}/config/*
  415.     rm -rf tcsh-${VERSION}
  416.  
  417. tcsh-${VERSION}.tar.Z:
  418.     rm -rf tcsh-${VERSION} 
  419.     rm -f tcsh-${VERSION}.tar tcsh-${VERSION}.tar.Z DIFFS.[123]
  420.     mkdir tcsh-${VERSION}
  421.     ./MAKEDIFFS bsd
  422.     mv DIFFS.1 DIFFS.2 DIFFS.3 tcsh-${VERSION}
  423.     cp ${DISTSRCS} tcsh-${VERSION}
  424.     mkdir tcsh-${VERSION}/config
  425.     cp ${CONFSRCS} tcsh-${VERSION}/config
  426.     cp Makefile tcsh-${VERSION}/Makefile.new
  427.     tar cvf - tcsh-${VERSION} | compress > tcsh-${VERSION}.tar.Z
  428.     rm -rf tcsh-${VERSION}
  429.  
  430. tcsh.tahoe-${VERSION}.tar.Z:
  431.     rm -rf tcsh.tahoe-${VERSION} 
  432.     rm -f tcsh.tahoe-${VERSION}.tar tcsh.tahoe-${VERSION}.tar.Z DIFFS.[123]
  433.     mkdir tcsh.tahoe-${VERSION}
  434.     ./MAKEDIFFS tahoe
  435.     mv DIFFS.1 DIFFS.2 DIFFS.3 tcsh.tahoe-${VERSION}
  436.     cp ${DISTSRCS} tcsh.tahoe-${VERSION}
  437.     mkdir tcsh.tahoe-${VERSION}/config
  438.     cp ${CONFSRCS} tcsh.tahoe-${VERSION}/config
  439.     cp Makefile tcsh.tahoe-${VERSION}/Makefile.new
  440.     tar cvf - tcsh.tahoe-${VERSION} | compress > tcsh.tahoe-${VERSION}.tar.Z
  441.     rm -rf tcsh.tahoe-${VERSION}
  442.  
  443. tcsh.reno-${VERSION}.tar.Z:
  444.     rm -rf tcsh.reno-${VERSION} 
  445.     rm -f tcsh.reno-${VERSION}.tar tcsh.reno-${VERSION}.tar.Z DIFFS.[123]
  446.     mkdir tcsh.reno-${VERSION}
  447.     ./MAKEDIFFS reno
  448.     mv DIFFS.1 DIFFS.2 DIFFS.3 tcsh.reno-${VERSION}
  449.     cp ${DISTSRCS} tcsh.reno-${VERSION}
  450.     mkdir tcsh.reno-${VERSION}/config
  451.     cp ${CONFSRCS} tcsh.reno-${VERSION}/config
  452.     cp Makefile tcsh.reno-${VERSION}/Makefile.new
  453.     tar cvf - tcsh.reno-${VERSION} | compress > tcsh.reno-${VERSION}.tar.Z
  454.     rm -rf tcsh.reno-${VERSION}
  455.  
  456. ftp: tcsh-${VERSION}.tar.Z tcsh.tahoe-${VERSION}.tar.Z
  457.     cp tcsh-${VERSION}.tar.Z tcsh.tahoe-${VERSION}.tar.Z ${FTPAREA}
  458.     cp tcsh.man ${FTPAREA}
  459.  
  460. #
  461. # Dependencies
  462. #
  463. config.h: config_f.h
  464.  
  465. TCH=tc.h tc.const.h tc.decls.h tc.os.h tc.sig.h
  466. SHH=sh.h sh.types.h sh.char.h sh.err.h sh.dir.h sh.proc.h pathnames.h \
  467.     sh.decls.h ${TCH}
  468. TWH=tw.h tw.decls.h
  469. EDH=ed.h ed.decls.h
  470.  
  471. # EDH
  472. EDINC=sh.${SUF} sh.func.${SUF} sh.lex.${SUF} sh.print.${SUF} sh.proc.${SUF} \
  473.       sh.set.${SUF} tc.bind.${SUF} tc.os.${SUF} tc.prompt.${SUF} \
  474.       tc.sched.${SUF} tw.parse.${SUF}
  475. ${EDOBJS} ${EDINC} : ${EDH}
  476.  
  477. # SHH
  478. ${OBJS}: config.h ${SHH}
  479.  
  480. # TWH
  481. TWINC=ed.chared.${SUF} ed.inputl.${SUF} sh.exec.${SUF} sh.func.${SUF} \
  482.       sh.set.${SUF} tc.func.${SUF}
  483. ${TWOBJS} ${TWINC}: ${TWH}
  484.  
  485. # glob.h
  486. glob.${SUF} sh.glob.${SUF}: glob.h
  487.  
  488. # ed.defns.h
  489. EDDINC=tc.bind.${SUF} tc.func.${SUF} tc.os.${SUF}
  490. ${EDOBJS} ${EDDINC}: ed.defns.h
  491.