home *** CD-ROM | disk | FTP | other *** search
/ The Fatted Calf / The Fatted Calf.iso / Unix / Shells / tcsh / Source / Makefile < prev    next >
Encoding:
Makefile  |  1994-05-23  |  15.2 KB  |  493 lines

  1. # $Id: Makefile,v 1.42 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 -arch m68k -arch i386 -arch hppa $(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. # DEC/osf-1 on the alpha
  102. #DFLAGS=-D_BSD
  103. DFLAGS=
  104.  
  105.  
  106. ################################################################
  107. ## LDLAGS.  Define something here if you need to
  108. ################################################################
  109. LDFLAGS=             ## The simplest, suitable for all.
  110. #LDFLAGS= -s            ## Stripped. Takes less space on disk.
  111. #LDFLAGS= -s -n            ## Pure executable. Spares paging over
  112. #                 ## the network for machines with local
  113. #                ## swap but external /usr/local/bin .
  114. #LDFLAGS= -s -n -Bstatic    ## Without dynamic links. (SunOS)
  115. #LDFLAGS= -Wl,-s,-n        ## Stripped, shared text (Unicos)
  116.  
  117. ################################################################
  118. ## LIBES.  Pick one, or roll your own.
  119. ################################################################
  120. LIBES= -ltermcap         ## BSD style things, hpux
  121. #LIBES= -ltermc            ## emx under OS/2
  122. #LIBES= -ltermcap -lsec        ## Tek XD88/10 (UTekV) with PW_SHADOW
  123. #LIBES= -ltermcap -lsec        ## Motorola MPC (sysV88) with PW_SHADOW
  124. #LIBES= -ltermcap -lcs        ## Mach
  125. #LIBES= -lcurses        ## Sys V3 w/o networking (and Sys V4)
  126. #LIBES= -lcurses -lc /usr/ucblib/libucb.a ## Sys V4 with BSDTIMES
  127. #LIBES= -lcurses        ## Sys V4 w/o BSDTIMES or Solaris 2
  128. #LIBES= -lcurses -lnet        ## Sys V3 with networking
  129. #LIBES= -lcurses -ldir        ## Sys V2 w/o networking [needs directory lib]
  130. #LIBES= -lcurses -ldir -lnet    ## Sys V2 with networking [needs directory lib]
  131. #LIBES= -lcurses -lsocket -lbsd    ## Amdahl UTS 2.1
  132. #LIBES= -lcurses -lbsd        ## For Irix3.1 on SGI-IRIS4D or ETA10
  133. #LIBES= -lcurses -lsun -lbsd -lc_s ## For Irix3.3 on SGI-IRIS4D (w/ yp)
  134. #LIBES= -lcurses -lbsd -lc_s    ## For Irix3.3 on SGI-IRIS4D (wo/ yp)
  135. #LIBES= -lcurses -lbsd        ## For aix on an IBM 370 or rs6000 or ps2
  136. #LIBES= -lcurses        ## For aix on the rt
  137. #LIBES= -lcurses -lcposix    ## ISC 2.2 
  138. #LIBES= -lcposix -lc_s -lcurses -linet ## ISC 2.2 with networking
  139. #LIBES= -lcurses -linet -lsec -lc_s  ## ISC 2.0.2 with networking
  140. #LIBES= -lcurses -lsec -lc_s    ## ISC 2.0.2 without networking
  141. #LIBES= -ltermcap -ldir -lx    ## Xenix 386 style things
  142. #LIBES= -lcurses -lintl        ## SCO SysVR3.2v2.0
  143. #LIBES= -lcurses -lintl -lsocket ## SCO+ODT1.1
  144. #LIBES= -lposix -ltermcap    ## A/UX 2.0
  145. #LIBES= -ltermcap -lbsd        ## DEC osf1 on the alpha
  146. #LIBES= -ltermcap -lseq        ## Sequent's Dynix
  147. #LIBES= -lcurses -lsocket    ## Intel's hypercube and ns32000 based Opus.
  148. #LIBES= -ldirent -lcurses       ## att3b1 stk cc w/o shared lib & directory lib
  149. #LIBES= -shlib -ldirent -lcurses ## att3b1 gcc1.40 w/ shared lib & directory lib
  150. #LIBES=                ## Minix, VMS_POSIX
  151. #LIBES= -lcurses        ## For a stellar
  152. #LIBES= -lcurses -lnsl -lsocket -lc /usr/ucblib/libucb.a ## Stardent Vistra
  153. #LIBES= -ltermcap -lndir -lsocket -ljobs ## masscomp RTU6.0
  154. #LIBES= -ltermcap -lauth        ## for Ultrix with Enhanced Security
  155.  
  156.  
  157. # The difficult choice of a c-compiler...
  158. # First, you should try your own c-compiler. 
  159. # Gcc -traditional is also a safe choice. 
  160. # If you think that you have good include files try gcc -Wall...
  161. # If you want to take out -traditional, make sure that your sys/ioctl.h
  162. # is fixed correctly, otherwise you'll be stopped for tty input, or you
  163. # will lose the editor and job control.
  164.  
  165. # The -B tells gcc to use /bin/ld. This is to avoid using the gnu ld, which
  166. # on the suns does not know how to make dynamically linked binaries.
  167. CC=    cc -Wall    
  168. #CC=    gcc -m486 -Wall # Generate code for Intel 486 (linux)
  169. #CC=    cc
  170. #CC=    occ
  171. #CC=    acc
  172. #CC=    c89    # For VMS/POSIX
  173. #CC=    /bin/cc    # For suns, w/o gcc and SVR4
  174. #CC=    /usr/lib/sun.compile/cc  # FPS 500 (+FPX) with Sun C compiler
  175. #CC=    scc     # Alliant fx2800
  176. ED=    ed
  177. AS=    as
  178. RM=    rm
  179. CXREF=    /usr/ucb/cxref
  180. VGRIND=    csh /usr/ucb/vgrind
  181. CTAGS=    /usr/ucb/ctags
  182. #XSTR= /usr/ucb/xstr
  183. SCCS=    /usr/local/sccs
  184. PARALLEL=12                # Make the multi-max run fast.
  185. #P=&                    # Use Sequent's parallel make
  186. P=
  187. DESTDIR=/usr/local
  188. MANSECT=1
  189. DESTBIN=${DESTDIR}/bin
  190. DESTMAN=${DESTDIR}/man/man${MANSECT}
  191. # DESTMAN=${DESTDIR}/catman/man${MANSECT}     # A/UX
  192. # DESTMAN=${DESTDIR}/usr/share/man/man${MANSECT} # Stardent Vistra (SysVR4)
  193. # DESTMAN=/usr/catman/1l             # Amiga unix (SysVR4)
  194. FTPAREA=/usr/spool/ftp
  195.  
  196. ASSRCS=    sh.c sh.dir.c sh.dol.c sh.err.c sh.exec.c sh.char.c \
  197.     sh.exp.c sh.file.c sh.func.c sh.glob.c sh.hist.c sh.init.c \
  198.     sh.lex.c sh.misc.c sh.parse.c sh.print.c sh.proc.c sh.sem.c \
  199.     sh.set.c sh.time.c sh.char.h sh.dir.h sh.proc.h sh.h 
  200. PSSRCS= sh.decls.h glob.c glob.h mi.termios.c mi.wait.h mi.varargs.h ma.setp.c \
  201.     vms.termcap.c
  202. SHSRCS= ${ASSRCS} ${PSSRCS}
  203. SHOBJS=    sh.${SUF} sh.dir.${SUF} sh.dol.${SUF} sh.err.${SUF} sh.exec.${SUF} \
  204.     sh.char.${SUF} sh.exp.${SUF} sh.func.${SUF} sh.glob.${SUF} \
  205.     sh.hist.${SUF} sh.init.${SUF} sh.lex.${SUF} sh.misc.${SUF} \
  206.     sh.parse.${SUF} sh.print.${SUF} sh.proc.${SUF} sh.sem.${SUF} \
  207.     sh.set.${SUF} sh.time.${SUF} glob.${SUF} mi.termios.${SUF} \
  208.     ma.setp.${SUF} vms.termcap.${SUF}
  209.  
  210. TWSRCS= tw.decls.h tw.h tw.help.c tw.init.c tw.parse.c tw.spell.c \
  211.     tw.comp.c
  212. TWOBJS=    tw.help.${SUF} tw.init.${SUF} tw.parse.${SUF} tw.spell.${SUF} \
  213.     tw.comp.${SUF}
  214.  
  215. EDSRCS= ed.chared.c ed.decls.h ed.defns.c ed.h ed.init.c ed.inputl.c \
  216.     ed.refresh.c ed.screen.c ed.xmap.c ed.term.c ed.term.h
  217. EDOBJS=    ed.chared.${SUF} ed.refresh.${SUF} ed.screen.${SUF} ed.init.${SUF} \
  218.     ed.inputl.${SUF} ed.defns.${SUF} ed.xmap.${SUF} ed.term.${SUF}
  219.  
  220. TCSRCS= tc.alloc.c tc.bind.c tc.const.c tc.decls.h tc.disc.c \
  221.     tc.func.c tc.os.c tc.os.h tc.printf.c tc.prompt.c \
  222.     tc.sched.c tc.sig.c tc.sig.h tc.str.c sh.types.h tc.vers.c tc.wait.h \
  223.     tc.who.c tc.h
  224. TCOBJS=    tc.alloc.${SUF} tc.bind.${SUF} tc.const.${SUF} tc.disc.${SUF} \
  225.     tc.func.${SUF} tc.os.${SUF} tc.printf.${SUF} \
  226.     tc.prompt.${SUF} tc.sched.${SUF} tc.sig.${SUF} tc.str.${SUF} \
  227.     tc.vers.${SUF} tc.who.${SUF} 
  228.  
  229. PVSRCS= Makefile Makefile.vms
  230. AVSRCS= Fixes MAKEDIFFS MAKESHAR NewThings README FAQ \
  231.     WishList config_f.h eight-bit.me glob.3 patchlevel.h \
  232.     pathnames.h tcsh.man Ported src.desc Imakefile imake.config \
  233.     README.imake complete.tcsh vmsreadme.txt termcap.vms
  234. VHSRCS=${PVSRCS} ${AVSRCS}
  235.  
  236. CONFSRCS=config/config.* 
  237.  
  238. ALLSRCS=  ${SHSRCS} ${TWSRCS} ${EDSRCS} ${TCSRCS} ${VHSRCS}
  239. DISTSRCS= ${PSSRCS} ${TWSRCS} ${EDSRCS} ${TCSRCS} ${AVSRCS}
  240.  
  241.  
  242. OBJS= ${SHOBJS} ${TWOBJS} ${EDOBJS} ${TCOBJS}
  243.  
  244.  
  245. all: ${BUILD}
  246.  
  247. tcsh:$(P) ${OBJS} 
  248.     rm -f tcsh core
  249.     ${CC} -o tcsh ${LDFLAGS} ${CFLAGS} ${OBJS} ${LIBES}
  250.  
  251. # Linux distribution
  252. jump: tcsh.a
  253.     ${CC} ${LDFLAGS} ${CFLAGS} -o tcsh tcsh.a ${LIBES}
  254.  
  255. nojump: tcsh.a
  256.     ${CC} ${LDFLAGS} -nojump ${CFLAGS} -o tcsh tcsh.a ${LIBES}
  257.  
  258. static: tcsh.a
  259.     ${CC} ${LDFLAGS} -static ${CFLAGS} -o tcsh tcsh.a ${LIBES}
  260.  
  261. tcsh.a:$(P) ${OBJS}
  262.     $(LD) -x -r -o tcsh.a ${OBJS}
  263.  
  264. tcsh.ps: tcsh.man
  265.     rm -f tcsh.ps
  266.     -ptroff -man tcsh.man > tcsh.ps
  267.  
  268.  
  269. .c.${SUF}:
  270.     ${CC} ${CF} ${CFLAGS} ${DFLAGS} $<
  271.  
  272. # _VMS_POSIX #module addition
  273. #.c.${SUF}:
  274. #    @(echo '#module '`echo $< | sed -e 's/\./_/g'`; cat $<) > $*..c
  275. #    @echo ${CC} ${CF} ${CFLAGS} ${DFLAGS} $*.c
  276. #    @${CC} ${CF} ${CFLAGS} ${DFLAGS} $*..c
  277. #    @mv $*..o $*.o
  278. #    @rm -f $*..c
  279.  
  280.  
  281. # Don't do any special massaging of C files for sharing of strings!!
  282. # it causes weird segmentation faults on some systems.
  283. #.c.o:
  284. #    ${CC} -E ${CFLAGS} $*.c | ${XSTR} -c -
  285. #    ${CC} ${CF} ${CFLAGS} x.c 
  286. #    mv -f x.o $*.o
  287. #    rm -f x.c
  288.  
  289. #ed.init.o: ed.init.c
  290. #    ${CC} -E ${CFLAGS} $*.c | ${XSTR} -c -
  291. #    ${CC} -R ${CF} ${CF} x.c 
  292. #    mv -f x.o $*.o
  293. #    rm -f x.c
  294.  
  295. #strings.o: strings
  296. #    ${XSTR}
  297. #    ${CC} -c -R xs.c
  298. #    mv -f xs.o strings.o
  299. #    rm -f xs.c
  300.  
  301. ##.DEFAULT:
  302. ##    ${SCCS} get $<
  303.  
  304. ##.DEFAULT:
  305. ##    co $<
  306.  
  307. ed.defns.h: ed.defns.c
  308.     @rm -f $@
  309.     @echo '/* Do not edit this file, make creates it. */' > $@
  310.     @echo '#ifndef _h_ed_defns' >> $@
  311.     @echo '#define _h_ed_defns' >> $@
  312.     grep '[FV]_' ed.defns.c | grep '^#define' >> $@
  313.     @echo '#endif /* _h_ed_defns */' >> $@
  314.  
  315. sh.err.h: sh.err.c
  316.     @rm -f $@
  317.     @echo '/* Do not edit this file, make creates it. */' > $@
  318.     @echo '#ifndef _h_sh_err' >> $@
  319.     @echo '#define _h_sh_err' >> $@
  320.     grep 'ERR_' sh.err.c | grep '^#define' >> $@
  321.     @echo '#endif /* _h_sh_err */' >> $@
  322.  
  323. tc.const.h: tc.const.c sh.char.h config.h config_f.h sh.types.h sh.err.h
  324.     @rm -f $@
  325.     @echo '/* Do not edit this file, make creates it. */' > $@
  326.     ${CC} -E $(INCLUDES) ${DFLAGS} tc.const.c | grep 'Char STR' | \
  327.         sed -e 's/Char \([a-zA-Z0-9_]*\)\(.*\)/extern Char \1[];/' | \
  328.         sort >> $@
  329.  
  330. csh.prof: ${OBJS} sh.prof.${SUF} mcrt0.${SUF}
  331.     rm -f csh.prof
  332.     ld -X mcrt0.${SUF} ${OBJS} -o csh.prof ${LIBES} -lc
  333.  
  334. sh.prof.${SUF}:
  335.     cp sh.c sh.prof.c
  336.     ${CC} ${CF} ${CFLAGS} -DPROF sh.prof.c
  337.  
  338. lint: tc.const.h ed.defns.h
  339.     lint ${LFLAGS} sh*.c tw*.c ed*.c tc.*.c ${LIBES}
  340.  
  341. alint: tc.const.h ed.defns.h
  342.     alint ${LFLAGS} sh*.c tw*.c ed*.c tc.*.c ${LIBES}
  343.  
  344. print:
  345.     @pr READ_ME
  346.     @pr makefile makefile.*
  347.     @(size -l a.out; size *.${SUF}) | pr -h SIZES
  348.     @${CXREF} sh*.c | pr -h XREF
  349.     @ls -l | pr 
  350.     @pr sh*.h [a-rt-z]*.h sh*.c alloc.c
  351.  
  352. vprint:
  353.     @pr -l84 READ_ME TODO
  354.     @pr -l84 makefile makefile.*
  355.     @(size -l a.out; size *.${SUF}) | pr -l84 -h SIZES
  356.     @${CXREF} sh*.c | pr -l84 -h XREF
  357.     @ls -l | pr -l84
  358.     @${CXREF} sh*.c | pr -l84 -h XREF
  359.     @pr -l84 sh*.h [a-rt-z]*.h sh*.c alloc.c
  360.  
  361. vgrind:
  362.     @cp /dev/null index
  363.     @for i in *.h; do vgrind -t -h "C Shell" $$i >/crp/bill/csh/$$i.t; done
  364.     @for i in *.c; do vgrind -t -h "C Shell" $$i >/crp/bill/csh/$$i.t; done
  365.     @vgrind -t -x -h Index index >/crp/bill/csh/index.t
  366.  
  367. install: tcsh 
  368.     -mv -f ${DESTBIN}/tcsh  ${DESTBIN}/tcsh.old
  369.     cp tcsh ${DESTBIN}/tcsh
  370.     -strip ${DESTBIN}/tcsh
  371.     chmod 555 ${DESTBIN}/tcsh
  372.  
  373. manpage: tcsh.man
  374.     -rm -f ${DESTMAN}/tcsh.${MANSECT}
  375.     cp tcsh.man ${DESTMAN}/tcsh.${MANSECT}
  376.     chmod 444 ${DESTMAN}/tcsh.${MANSECT}
  377.  
  378. # Amiga Unix
  379. #manpage: tcsh.man
  380. #        compress tcsh.man
  381. #    cp tcsh.man.Z ${DESTMAN}/tcsh.Z
  382. #    chmod 444 ${DESTMAN}/tcsh.Z
  383.  
  384. # Apple A/UX
  385. #manpage: tcsh.man
  386. #    -rm -f ${DESTMAN}/tcsh.${MANSECT}.Z
  387. #    nroff -man tcsh.man | compress > ${DESTMAN}/tcsh.${MANSECT}.Z
  388. #    chmod 444 ${DESTMAN}/tcsh.${MANSECT}.Z
  389.  
  390. clean:
  391.     ${RM} -f a.out strings x.c xs.c tcsh tcsh.a _MAKE_LOG core
  392.     ${RM} -f *.${SUF} sh.prof.c ed.defns.h tc.const.h sh.err.h
  393.  
  394. veryclean: clean
  395.     ${RM} -f *~ #*
  396.  
  397. tags:    /tmp
  398.     ${CTAGS} sh*.c
  399.  
  400. tar:
  401.     rm -f tcsh-${VERSION}.tar.Z
  402.     rm -rf tcsh-${VERSION} 
  403.     mkdir tcsh-${VERSION} tcsh-${VERSION}/config
  404.     cp ${ALLSRCS} tcsh-${VERSION}
  405.     cp ${CONFSRCS} tcsh-${VERSION}/config
  406.     tar cvf - tcsh-${VERSION} | compress > tcsh-${VERSION}.tar.Z
  407.     rm -rf tcsh-${VERSION}
  408.  
  409. shar:    
  410.     rm -f tcsh-*.shar
  411.     rm -rf tcsh-${VERSION} 
  412.     mkdir tcsh-${VERSION} tcsh-${VERSION}/config 
  413.     cp ${ALLSRCS} tcsh-${VERSION}
  414.     cp ${CONFSRCS} tcsh-${VERSION}/config
  415.     MAKESHAR -v -n tcsh-${VERSION} tcsh-${VERSION} \
  416.          tcsh-${VERSION}/* tcsh-${VERSION}/config/*
  417.     rm -rf tcsh-${VERSION}
  418.  
  419. tcsh-${VERSION}.tar.Z:
  420.     rm -rf tcsh-${VERSION} 
  421.     rm -f tcsh-${VERSION}.tar tcsh-${VERSION}.tar.Z DIFFS.[123]
  422.     mkdir tcsh-${VERSION}
  423.     ./MAKEDIFFS bsd
  424.     mv DIFFS.1 DIFFS.2 DIFFS.3 tcsh-${VERSION}
  425.     cp ${DISTSRCS} tcsh-${VERSION}
  426.     mkdir tcsh-${VERSION}/config
  427.     cp ${CONFSRCS} tcsh-${VERSION}/config
  428.     cp Makefile tcsh-${VERSION}/Makefile.new
  429.     tar cvf - tcsh-${VERSION} | compress > tcsh-${VERSION}.tar.Z
  430.     rm -rf tcsh-${VERSION}
  431.  
  432. tcsh.tahoe-${VERSION}.tar.Z:
  433.     rm -rf tcsh.tahoe-${VERSION} 
  434.     rm -f tcsh.tahoe-${VERSION}.tar tcsh.tahoe-${VERSION}.tar.Z DIFFS.[123]
  435.     mkdir tcsh.tahoe-${VERSION}
  436.     ./MAKEDIFFS tahoe
  437.     mv DIFFS.1 DIFFS.2 DIFFS.3 tcsh.tahoe-${VERSION}
  438.     cp ${DISTSRCS} tcsh.tahoe-${VERSION}
  439.     mkdir tcsh.tahoe-${VERSION}/config
  440.     cp ${CONFSRCS} tcsh.tahoe-${VERSION}/config
  441.     cp Makefile tcsh.tahoe-${VERSION}/Makefile.new
  442.     tar cvf - tcsh.tahoe-${VERSION} | compress > tcsh.tahoe-${VERSION}.tar.Z
  443.     rm -rf tcsh.tahoe-${VERSION}
  444.  
  445. tcsh.reno-${VERSION}.tar.Z:
  446.     rm -rf tcsh.reno-${VERSION} 
  447.     rm -f tcsh.reno-${VERSION}.tar tcsh.reno-${VERSION}.tar.Z DIFFS.[123]
  448.     mkdir tcsh.reno-${VERSION}
  449.     ./MAKEDIFFS reno
  450.     mv DIFFS.1 DIFFS.2 DIFFS.3 tcsh.reno-${VERSION}
  451.     cp ${DISTSRCS} tcsh.reno-${VERSION}
  452.     mkdir tcsh.reno-${VERSION}/config
  453.     cp ${CONFSRCS} tcsh.reno-${VERSION}/config
  454.     cp Makefile tcsh.reno-${VERSION}/Makefile.new
  455.     tar cvf - tcsh.reno-${VERSION} | compress > tcsh.reno-${VERSION}.tar.Z
  456.     rm -rf tcsh.reno-${VERSION}
  457.  
  458. ftp: tcsh-${VERSION}.tar.Z tcsh.tahoe-${VERSION}.tar.Z
  459.     cp tcsh-${VERSION}.tar.Z tcsh.tahoe-${VERSION}.tar.Z ${FTPAREA}
  460.     cp tcsh.man ${FTPAREA}
  461.  
  462. #
  463. # Dependencies
  464. #
  465. config.h: config_f.h
  466.  
  467. TCH=tc.h tc.const.h tc.decls.h tc.os.h tc.sig.h
  468. SHH=sh.h sh.types.h sh.char.h sh.err.h sh.dir.h sh.proc.h pathnames.h \
  469.     sh.decls.h ${TCH}
  470. TWH=tw.h tw.decls.h
  471. EDH=ed.h ed.decls.h
  472.  
  473. # EDH
  474. EDINC=sh.${SUF} sh.func.${SUF} sh.lex.${SUF} sh.print.${SUF} sh.proc.${SUF} \
  475.       sh.set.${SUF} tc.bind.${SUF} tc.os.${SUF} tc.prompt.${SUF} \
  476.       tc.sched.${SUF} tw.parse.${SUF}
  477. ${EDOBJS} ${EDINC} : ${EDH}
  478.  
  479. # SHH
  480. ${OBJS}: config.h ${SHH}
  481.  
  482. # TWH
  483. TWINC=ed.chared.${SUF} ed.inputl.${SUF} sh.exec.${SUF} sh.func.${SUF} \
  484.       sh.set.${SUF} tc.func.${SUF}
  485. ${TWOBJS} ${TWINC}: ${TWH}
  486.  
  487. # glob.h
  488. glob.${SUF} sh.glob.${SUF}: glob.h
  489.  
  490. # ed.defns.h
  491. EDDINC=tc.bind.${SUF} tc.func.${SUF} tc.os.${SUF}
  492. ${EDOBJS} ${EDDINC}: ed.defns.h
  493.