159243Sobrien#
259243Sobrien# C Shell with process control; VM/UNIX VAX Makefile
359243Sobrien# Bill Joy UC Berkeley; Jim Kulp IIASA, Austria
459243Sobrien#
559243Sobrien# With an input editor, command completion, etc. and ported to all sorts of
659243Sobrien# things; Paul Placeway, CIS Dept., Ohio State University
759243Sobrien#
859243SobrienSHELL=/bin/sh
9167465SmpVERSION=@PACKAGE_VERSION@
10131962SmpBUILD=tcsh$(EXEEXT)
1159243SobrienVPATH=@srcdir@
1259243Sobriensrcdir=@srcdir@
1359243Sobrien
1459243Sobrien################################################################
1559243Sobrien## CFLAGS.  For various -D things, see config.h
1659243Sobrien################################################################
1759243Sobrien#
1859243Sobrien# These are the default suffixes from .c to .o and -c to get there
1959243Sobrien# but to use the global optimizer on the mips boxes, see below
2059243Sobrien#
2159243SobrienSUF=o
2259243SobrienCF=-c
2359243Sobrien
2459243SobrienCPPFLAGS=-I. -I$(srcdir)
2559243Sobrien
2659243SobrienLFLAGS=
27231990Smp# hpux lint
28231990Smp#LFLAGS= -Zn10000
2959243Sobrien
3059243Sobrien
31231990Smp# This is set by autoconf:
32231990SmpCFLAGS = @CFLAGS@
33231990Smp# debug:
34231990Smp#CFLAGS= -g
35231990Smp# production:
36231990Smp#CFLAGS= -O
37231990Smp# Broken optimizers....
38231990Smp#CFLAGS=
3959243Sobrien
4059243Sobrien#CFLAGS= -g -pg -DPROF
4159243Sobrien#CFLAGS= -O -pg -DPROF
4259243Sobrien
4359243Sobrien# gcc 1.00-1.37
44231990Smp#CFLAGS= -O -finline-functions -fstrength-reduce
4559243Sobrien
4659243Sobrien# gcc 1.37-1.40
47231990Smp#CFLAGS= -O -fcombine-regs -finline-functions -fstrength-reduce
4859243Sobrien# add -msoft-float for 68881 machines.
4959243Sobrien
5059243Sobrien# gcc 2.0
5159243Sobrien# On the sparc, don't use -O2; it breaks setjmp() and vfork()
5259243Sobrien#CFLAGS= -O
5359243Sobrien
5459243Sobrien# gcc-2.1+
5559243Sobrien#CFLAGS= -O2
5659243Sobrien
5759243Sobrien# lucid c on suns
5859243Sobrien#CFLAGS= -O5
5959243Sobrien
6059243Sobrien# gcc 2.1 on linux
6159243Sobrien#CFLAGS= -O6 -fomit-frame-pointer
6259243Sobrien
6359243Sobrien# HP/UX 8.0, 9.0
6459243Sobrien#CFLAGS= +O3 -Aa
6559243Sobrien
6659243Sobrien# Ultrix 4.2a
6759243Sobrien#CFLAGS= -O -Olimit 2000
6859243Sobrien
6959243Sobrien# Intel Paragon OSF/1 with PGI compilers
7059243Sobrien#CFLAGS= -O -Mnodebug -Mnoperfmon
7159243Sobrien
7259243Sobrien# DEC Alpha OSF/1
73231990Smp## Normal Optimization
74231990Smp#CFLAGS= -O2 -Olimit 2000
75231990Smp## Full Optimization - may not work
76231990Smp#CFLAGS= -O3 -Olimit 2000
7759243Sobrien#CF=-j
7859243Sobrien#SUF=u
7959243Sobrien#.SUFFIXES: .u
8059243Sobrien
8159243Sobrien# for silicon graphics (and other mips compilers) -- use the
8259243Sobrien# global optimizer! (-O3).
8359243Sobrien# On SGI 4.0+ you need to add -D__STDC__ too.
8459243Sobrien#CFLAGS= -O3
85231990Smp## Ultrix 4.2a
86231990Smp#CFLAGS= -O3 -Olimit 2000
8759243Sobrien#CF=-j
8859243Sobrien#SUF=u
8959243Sobrien#.SUFFIXES: .u 				## Ultrix and gnu-make need that
9059243Sobrien
9159243Sobrien# mips systems
9259243Sobrien# CFLAGS= -O -systype bsd43 -Wf,-XNd5000 -Wf,-XNp6000 -Olimit 2000
9359243Sobrien
9459243Sobrien# for at&t machines
9559243Sobrien#CFLAGS= -O -Ksd
9659243Sobrien
9759243Sobrien# Stardent Titan
9859243Sobrien#CFLAGS = -O -43
9959243Sobrien
10059243Sobrien# Stardent Stellar or sunos4 /bin/cc or Solaris2.1 /opt/SUNWspro/bin/cc
10159243Sobrien#CFLAGS = -O4
10259243Sobrien
10359243Sobrien# Intergraph clipper CLIX 3.1
10459243Sobrien#CFLAGS= -w -O2
10559243Sobrien
10659243Sobrien# Dnix 5.3
10759243Sobrien#CFLAGS = -O -X7
10859243Sobrien
10959243Sobrien# Pyramid OS/x
11059243Sobrien#CFLAGS = -OG
11159243Sobrien
11259243Sobrien# Multiflow (5M binary... if you choose -O5!)
11359243Sobrien#CFLAGS = -O5 -sb_trace 0
11459243Sobrien
11559243Sobrien# DDE Supermax Unix SYSV Rel III.
11659243Sobrien# CFLAGS= -O3
11759243Sobrien
11859243Sobrien# SINIX RMx00
119231990Smp#CFLAGS= -O# -D_POSIX_SOURCE# -kansi
12059243Sobrien
12159243Sobrien# Apollo's with cc [apollo builtins don't work with gcc]
12259243Sobrien# and apollo should not define __STDC__ if it does not have
12359243Sobrien# the standard header files. RT's (aos4.3) need that too;
12459243Sobrien# you might want to skip the -O on the rt's... Not very wise.
12559243Sobrien# AIX/ESA needs -D_IBMESA on command line (this may disappear by GA)
126231990Smp#DFLAGS=-U__STDC__
12759243Sobrien#DFLAGS=-D_IBMESA
12859243Sobrien# On aix2.2.1 we need more compiler space.
12959243Sobrien#DFLAGS=-Nd4000 -Nn3000
13059243Sobrien# AU/X 2.0 needs a flag for POSIX (read the config file)
13159243Sobrien#DFLAGS=-Zp
13259243Sobrien# Tektronix 4300 running UTek 4.0 (BSD 4.2) needs:
13359243Sobrien#DFLAGS = -DUTek -DBSD
13459243Sobrien# VMS_POSIX needs:
13559243Sobrien#DFLAGS=-D_VMS_POSIX
13659243Sobrien# Multiflow and PCC compilers don't like void typedefs.
13759243Sobrien# You may also need -U__STDC__ if you use pcc (i.e. ibmrt aos4.3).
13859243Sobrien#DFLAGS=-DMULTIFLOW
13959243Sobrien#DFLAGS=-DPCC
14059243Sobrien# DELL SVR4
14159243Sobrien#DFLAGS=-DDELL
14259243Sobrien#DFLAGS=
14359243Sobrien#DFLAGS=-D_PATH_TCSHELL='"${DESTBIN}/tcsh"'
14459243Sobrien## The following is set by autoconf.
145131962SmpDFLAGS = -D_PATH_TCSHELL='"${bindir}/tcsh"' @DFLAGS@ @CPPFLAGS@
14659243Sobrien
14759243Sobrien
14859243Sobrien################################################################
14959243Sobrien## LDFLAGS.  Define something here if you need to
15059243Sobrien################################################################
151231990Smp## This is set by autoconf:
152231990SmpLDFLAGS= @LDFLAGS@
153231990Smp## The simplest, suitable for all.
154231990Smp#LDFLAGS=
155231990Smp## Stripped. Takes less space on disk.
156231990Smp#LDFLAGS= -s
157231990Smp## Pure executable.  Spares paging over the network for machines with
158231990Smp## local swap but external /usr/local/bin .
159231990Smp#LDFLAGS= -s -n
160231990Smp## Without dynamic linking. (SunOS/cc)
161231990Smp#LDFLAGS= -s -n -Bstatic
162231990Smp## Without dynamic linking. (SunOS/gcc)
163231990Smp#LDFLAGS= -s -n -static
164231990Smp## Stripped, shared text (Unicos)
165231990Smp#LDFLAGS= -Wl,-s,-n
166231990Smp## Link statically. (linux)
167231990Smp#LDFLAGS= -s -static
168231990Smp## Impure executable (linux)
169231990Smp#LDFLAGS= -s -N
17059243Sobrien
17159243Sobrien################################################################
17259415Sobrien## SBINLDFLAGS.  Flags to build a tcsh suitable for installation in
17359415Sobrien##		 in /sbin under Solaris with gcc. See the "tcsh.sbin"
17459415Sobrien##		 target.
17559415Sobrien################################################################
17659415SobrienSBINLDFLAGS=-Wl,-R/etc/lib,-I/etc/lib/ld.so.1,-ldl,-Bstatic
17759415Sobrien
17859415Sobrien################################################################
17959243Sobrien## LIBES.  Pick one, or roll your own.
18059243Sobrien################################################################
181231990Smp## This is set by autoconf.
182231990SmpLIBES= @LIBS@
183231990Smp## BSD style things
184231990Smp#LIBES= -ltermcap
185231990Smp## SunOS, HP-UX, pyramid
186231990Smp#LIBES= -ltermcap
187231990Smp## Linux
188231990Smp#LIBES= -ltermcap
189231990Smp## Linux with PW_SHADOW
190231990Smp#LIBES= -ltermcap -lshadow
191231990Smp## Tek XD88/10 (UTekV) with PW_SHADOW
192231990Smp#LIBES= -ltermcap -lsec
193231990Smp## Motorola MPC (sysV88) with PW_SHADOW
194231990Smp#LIBES= -ltermcap -lsec
195231990Smp## Mach
196231990Smp#LIBES= -ltermcap -lcs
197231990Smp## DEC osf1 on the alpha
198231990Smp#LIBES= -ltermcap -lbsd
199231990Smp## Intel paragon
200231990Smp#LIBES= -ltermcap -lbsd
201231990Smp## Clipper intergraph
202231990Smp#LIBES= -ltermcap -lbsd
203231990Smp## Sequent's Dynix
204231990Smp#LIBES= -ltermcap -lseq
205231990Smp## Ultrix with Enhanced Security
206231990Smp#LIBES= -ltermcap -lauth
207231990Smp## Xenix 386 style things
208231990Smp#LIBES= -ltermcap -ldir -lx
209231990Smp## masscomp RTU6.0
210231990Smp#LIBES= -ltermcap -lndir -lsocket -ljobs
211231990Smp## AIX on the rt
212231990Smp#LIBES= -lcurses
213231990Smp## TitanOS on the stellar
214231990Smp#LIBES= -lcurses
215231990Smp## SysV4 w/o BSDTIMES or Solaris 2
216231990Smp#LIBES= -ltermlib -lsocket -lnsl
217231990Smp## SysV3 w/o networking
218231990Smp#LIBES= -lcurses
219231990Smp## SysV3 with networking
220231990Smp#LIBES= -lcurses -lnet
221231990Smp## SysV2 w/o networking & dirlib
222231990Smp#LIBES= -lcurses -ldir
223231990Smp## SysV2 with networking & dirlib
224231990Smp#LIBES= -lcurses -ldir -lnet
225231990Smp## AIX on the IBM 370 or rs6000 or ps2
226231990Smp#LIBES= -lcurses -lbsd
227231990Smp## ETA10
228231990Smp#LIBES= -lcurses -lbsd
229231990Smp## Irix3.1 on the SGI-IRIS4D
230231990Smp#LIBES= -lcurses -lbsd
231231990Smp## Irix3.3 on the SGI-IRIS4D w/o yp
232231990Smp#LIBES= -lcurses -lbsd -lc_s
233231990Smp## Irix3.3 on the SGI-IRIS4D with yp
234231990Smp#LIBES= -lcurses -lsun -lbsd -lc_s
235231990Smp## Amdahl UTS 2.1
236231990Smp#LIBES= -lcurses -lsocket -lbsd
237231990Smp## Intel's hypercube.
238231990Smp#LIBES= -lcurses -lsocket
239231990Smp## ns32000 based Opus.
240231990Smp#LIBES= -lcurses -lsocket
241231990Smp## ISC 2.2 without networking
242231990Smp#LIBES= -lcurses -lcposix
243231990Smp## ISC 2.2 with networking
244231990Smp#LIBES= -lcposix -lc_s -lcurses -linet
245231990Smp## ISC 2.0.2 without networking
246231990Smp#LIBES= -lcurses -lsec -lc_s
247231990Smp## ISC 2.0.2 with networking
248231990Smp#LIBES= -lcurses -linet -lsec -lc_s
249231990Smp## SCO SysVR3.2v2.0
250231990Smp#LIBES= -lcurses -lintl -lcrypt
251231990Smp## SCO+ODT1.1
252231990Smp#LIBES= -lcurses -lintl -lsocket -lcrypt
253231990Smp## A/UX 2.0
254231990Smp#LIBES= -lposix -ltermcap
255231990Smp## A/UX 3.0
256231990Smp#LIBES= -lposix -ltermcap -lc_s
257231990Smp## att3b1 cc w/o shared lib & dirlib
258231990Smp#LIBES= -ldirent -lcurses
259231990Smp## att3b1 gcc with shared lib & dirlib
260231990Smp#LIBES= -shlib -ldirent -lcurses
261231990Smp## SysV4 with BSDTIMES
262231990Smp#LIBES= -ltermlib -lsocket -lnsl -lc /usr/ucblib/libucb.a
263231990Smp## Stardent Vistra
264231990Smp#LIBES= -lcurses -lnsl -lsocket -lc /usr/ucblib/libucb.a
265231990Smp## emx under OS/2
266231990Smp#LIBES= -ltermc
267231990Smp## Minix, VMS_POSIX
268231990Smp#LIBES=
269231990Smp## Multiflow
270231990Smp#LIBES= -ltermcap -lcrypt
271231990Smp## NetBSD
272231990Smp#LIBES= -ltermcap -lcrypt
273231990Smp## DDE Supermax
274231990Smp#LIBES= -lcurses
27559243Sobrien
27659243Sobrien################################################################
27759243Sobrien## EXTRAFLAGS and EXTRALIBS
27859243Sobrien################################################################
27959243Sobrien# Compiling for AFS with kerberos authentication
28059243Sobrien#AFSLIBDIR = /usr/afsws/lib
28159243Sobrien#AFSDEF = -DAFS -I/usr/afsws/include
28259243Sobrien#AFS33LIB = -laudit
28359243Sobrien#
28459243Sobrien#Solaris and HPUX require the BSD libraries with AFS.
28559243Sobrien#We use -lc to use only what we require.
286231990Smp# Solaris
287231990Smp#AFSAUXLIB = -lsocket -lnsl -lc -lucb
288231990Smp# HPUX   
289231990Smp#AFSAUXLIB = -lc -lBSD
29059243Sobrien#
29159243Sobrien#AFSLIB = -L$(AFSLIBDIR) -L$(AFSLIBDIR)/afs -lkauth -lprot -lubik\
29259243Sobrien#         -lauth -lrxkad -lsys -ldes -lrx -llwp -lcom_err\
29359243Sobrien#         $(AFSLIBDIR)/afs/util.a $(AFS33LIB) $(AFSAUXLIB)
29459243Sobrien#
29559243Sobrien
29659243SobrienEXTRAFLAGS = @HESDEF@ $(AFSDEF)
297167465SmpEXTRALIBS = @HESLIB@ $(AFSLIB) @LIBICONV@
29859243Sobrien
29959243Sobrien
300167465Smp
30159243Sobrien# The difficult choice of a c-compiler...
30259243Sobrien# First, you should try your own c-compiler. 
30359243Sobrien# Gcc -traditional is also a safe choice. 
30459243Sobrien# If you think that you have good include files try gcc -Wall...
30559243Sobrien# If you want to take out -traditional, make sure that your sys/ioctl.h
30659243Sobrien# is fixed correctly, otherwise you'll be stopped for tty input, or you
30759243Sobrien# will lose the editor and job control.
30859243Sobrien
30959243Sobrien# This is for setting your C preprocessor value.
310231990Smp# This is set by autoconf.
311231990SmpCPP = @CPP@
31259243Sobrien# The -B tells gcc to use /bin/ld. This is to avoid using the gnu ld, which
31359243Sobrien# on the suns does not know how to make dynamically linked binaries.
314231990Smp# This is set by autoconf.
315231990SmpCC = @CC@
316316957Sdchagin#CC= gcc -Wall -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith -Werror -Wmissing-declarations -Wredundant-decls -Wnested-externs -Wsign-compare -Wcast-qual -Wreturn-type -Wswitch -Wshadow -Wwrite-strings -Wextra -Wcast-qual -Wwrite-strings -Wold-style-definition -Wuninitialized -Wpointer-sign
317316957Sdchagin# -Wconversion -Wformat=2 -ansi -pedantic
318231990Smp#CC=	gcc -Wall -pipe -B/bin/
319231990Smp# Generate code for Intel 486 (linux)
320231990Smp#CC=	gcc -m486 -pipe -Wall
321231990Smp# BSDI2.1 w/ shared libraries
322231990Smp#CC=	shlicc
32359243Sobrien#CC=	cc
32459243Sobrien#CC=	occ
32559243Sobrien#CC=	acc
32659243Sobrien#CC=	pcc
32759243Sobrien#CC=	hc -w
328231990Smp# For VMS/POSIX
329231990Smp#CC=	c89
330231990Smp# For suns, w/o gcc and SVR4
331231990Smp#CC=	/bin/cc
332231990Smp# FPS 500 (+FPX) with Sun C compiler
333231990Smp#CC=	/usr/lib/sun.compile/cc
334231990Smp# Solaris 2.1
335231990Smp#CC=	/opt/SUNWspro/bin/cc
336231990Smp# Alliant fx2800
337231990Smp#CC=	scc
338231990Smp# for NEC SX-4
339231990Smp#CC=	cc	-h0,ansi,novector,float0
34059243Sobrien#CC=	lcc	-wa 
341231990SmpCC_FOR_GETHOST = @CC_FOR_GETHOST@
34259243SobrienED=	ed
34359243SobrienAS=	as
34459243SobrienRM=	rm
34559243SobrienCXREF=	/usr/ucb/cxref
34659243SobrienVGRIND=	csh /usr/ucb/vgrind
34759243SobrienCTAGS=	/usr/ucb/ctags
34859243Sobrien#XSTR= /usr/ucb/xstr
34959243SobrienSCCS=	/usr/local/sccs
350231990Smp# Make the multi-max run fast.
351231990SmpPARALLEL=12
352231990Smp# Use Sequent's parallel make
353231990Smp#P=&
35459243SobrienP=
35559243Sobrienprefix=@prefix@
35659243Sobrienexec_prefix=@exec_prefix@
35759243Sobrienbindir=@bindir@
358195609Smpmandir=@datarootdir@/man
35959243SobrienMANSECT=1
36059243SobrienDESTBIN=${DESTDIR}${bindir}
36159243SobrienDESTMAN=${DESTDIR}${mandir}/man${MANSECT}
362231990Smp# A/UX
363231990Smp# DESTMAN=${DESTDIR}/catman/man${MANSECT}
364231990Smp# Stardent Vistra (SysVR4)
365231990Smp# DESTMAN=${DESTDIR}/usr/share/man/man${MANSECT}
366231990Smp# Amiga unix (SysVR4)
367231990Smp# DESTMAN=/usr/catman/1l
368131962SmpEXEEXT=@EXEEXT@
36959243SobrienFTPAREA=/usr/spool/ftp
37059243Sobrien
371231990SmpBUILD_CATALOGS = @BUILD_CATALOGS@
372231990Smp
37359243SobrienASSRCS=	sh.c sh.dir.c sh.dol.c sh.err.c sh.exec.c sh.char.c \
37459243Sobrien	sh.exp.c sh.file.c sh.func.c sh.glob.c sh.hist.c sh.init.c \
37559243Sobrien	sh.lex.c sh.misc.c sh.parse.c sh.print.c sh.proc.c sh.sem.c \
37659243Sobrien	sh.set.c sh.time.c sh.char.h sh.dir.h sh.proc.h sh.h \
37759243Sobrien	tw.color.c
378316957SdchaginPSSRCS= sh.decls.h glob.c glob.h dotlock.c dotlock.h mi.termios.c mi.wait.h mi.varargs.h ma.setp.c \
37959243Sobrien	vms.termcap.c
38059243SobrienSHSRCS= ${ASSRCS} ${PSSRCS}
38159243SobrienSHOBJS=	sh.${SUF} sh.dir.${SUF} sh.dol.${SUF} sh.err.${SUF} sh.exec.${SUF} \
382100616Smp	sh.char.${SUF} sh.exp.${SUF} sh.file.${SUF} sh.func.${SUF} \
383100616Smp	sh.glob.${SUF} sh.hist.${SUF} sh.init.${SUF} sh.lex.${SUF} \
384100616Smp	sh.misc.${SUF} sh.parse.${SUF} sh.print.${SUF} sh.proc.${SUF} \
385316957Sdchagin	sh.sem.${SUF} sh.set.${SUF} sh.time.${SUF} glob.${SUF} dotlock.${SUF} \
386100616Smp	mi.termios.${SUF} ma.setp.${SUF} vms.termcap.${SUF}
38759243Sobrien
38859243SobrienTWSRCS= tw.decls.h tw.h tw.help.c tw.init.c tw.parse.c tw.spell.c \
38959243Sobrien	tw.comp.c tw.color.c
39059243SobrienTWOBJS=	tw.help.${SUF} tw.init.${SUF} tw.parse.${SUF} tw.spell.${SUF} \
39159243Sobrien	tw.comp.${SUF} tw.color.${SUF}
39259243Sobrien
39359243SobrienEDSRCS= ed.chared.c ed.decls.h ed.defns.c ed.h ed.init.c ed.inputl.c \
39459243Sobrien	ed.refresh.c ed.screen.c ed.xmap.c ed.term.c ed.term.h
39559243SobrienEDOBJS=	ed.chared.${SUF} ed.refresh.${SUF} ed.screen.${SUF} ed.init.${SUF} \
39659243Sobrien	ed.inputl.${SUF} ed.defns.${SUF} ed.xmap.${SUF} ed.term.${SUF}
39759243Sobrien
39859243SobrienTCSRCS= tc.alloc.c tc.bind.c tc.const.c tc.decls.h tc.disc.c \
399145479Smp	tc.func.c tc.nls.c tc.os.c tc.os.h tc.printf.c tc.prompt.c \
40059243Sobrien	tc.sched.c tc.sig.c tc.sig.h tc.str.c sh.types.h tc.vers.c tc.wait.h \
40159243Sobrien	tc.who.c tc.h
40259243SobrienTCOBJS=	tc.alloc.${SUF} tc.bind.${SUF} tc.const.${SUF} tc.defs.${SUF} \
403145479Smp	tc.disc.${SUF} tc.func.${SUF} tc.nls.${SUF} tc.os.${SUF} tc.printf.${SUF} \
40459243Sobrien	tc.prompt.${SUF} tc.sched.${SUF} tc.sig.${SUF} tc.str.${SUF} \
40559243Sobrien	tc.vers.${SUF} tc.who.${SUF} 
40659243Sobrien
40759243SobrienPVSRCS= Makefile.std Makefile.vms Makefile.in Makefile.win32
408354195SbrooksAVSRCS= BUILDING Fixes MAKEDIFFS MAKESHAR NewThings README.md FAQ \
40959243Sobrien	WishList config_f.h eight-bit.me glob.3 patchlevel.h \
41059243Sobrien	pathnames.h tcsh.man Ported src.desc Imakefile imake.config \
411354195Sbrooks	complete.tcsh vmsreadme.txt termcap.vms snames.h host.defs \
412354195Sbrooks	gethost.c tcsh.man2html configure.ac configure config.h.in \
413316957Sdchagin	tests/testsuite.at aclocal.m4
414167465SmpTESTFILES= tests/aliases.at tests/arguments.at tests/commands.at \
415231990Smp	tests/expr.at tests/lexical.at tests/mb-eucjp.at \
416316957Sdchagin	tests/mb-utf8.at tests/noexec.at tests/parenthesis.at tests/syntax.at \
417316957Sdchagin	tests/subst.at tests/variables.at tests/sh.dol.at
41859243Sobrien
41959243SobrienVHSRCS=${PVSRCS} ${AVSRCS}
42059243Sobrien
42159243SobrienCONFSRCS=config/* 
42259243Sobrien
42359243SobrienALLSRCS=  ${SHSRCS} ${TWSRCS} ${EDSRCS} ${TCSRCS} ${VHSRCS}
424167465SmpDISTSRCS= ${PSSRCS} ${TWSRCS} ${EDSRCS} ${TCSRCS} ${AVSRCS} $(TESTFILES)
42559243Sobrien
42659243Sobrien
42759243SobrienOBJS= ${SHOBJS} ${TWOBJS} ${EDOBJS} ${TCOBJS}
42859243Sobrien
42959243Sobrien
430231990Smpall: ${BUILD} catalogs
43159243Sobrien
432131962Smptcsh$(EXEEXT):$(P) ${OBJS} 
433131962Smp	rm -f tcsh$(EXEEXT) core
434131962Smp	${CC} -o tcsh$(EXEEXT) ${LDFLAGS} ${CFLAGS} ${CPPFLAGS} ${OBJS} ${LIBES} ${EXTRALIBS}
43559243Sobrien
43659415Sobrientcsh.sbin:$(P) ${OBJS} 
43759415Sobrien	rm -f tcsh.sbin core
43859415Sobrien	${CC} -o tcsh.sbin ${SBINLDFLAGS} ${LDFLAGS} ${CFLAGS} ${CPPFLAGS} ${OBJS} ${LIBES} ${EXTRALIBS}
43959415Sobrien
44059243Sobrien# Purify
44159243Sobrienpure:$(P) ${OBJS} 
442131962Smp	rm -f tcsh$(EXEEXT) core
443131962Smp	purify `echo ${CC} | sed -e s,-B/bin/,,` -o tcsh$(EXEEXT) ${LDFLAGS} ${CFLAGS} ${CPPFLAGS} ${OBJS} ${LIBES} ${EXTRALIBS}
44459243Sobrien# OS/2
445131962Smp#tcsh.exe: tcsh
446131962Smp#	emxbind tcsh
44759243Sobrien
44859243Sobriengethost:  gethost.c sh.err.h tc.const.h sh.h
44959243Sobrien	rm -f gethost
450354195Sbrooks	${CC_FOR_GETHOST} -o gethost ${CPPFLAGS} ${CFLAGS} ${LDFLAGS} $(srcdir)/gethost.c
45159243Sobrien
45259243Sobrientc.defs.c:	gethost host.defs
453167465Smp	@rm -f $@.tmp
454167465Smp	@echo "/* Do not edit this file, make creates it */" > $@.tmp
455167465Smp	./gethost $(srcdir)/host.defs >> $@.tmp
456167465Smp	@if [ -f $@ ] && cmp -s $@.tmp $@; then echo $@ unchanged.; rm -f $@.tmp; else mv -f $@.tmp $@; echo $@ recreated.; fi
45759243Sobrien
45859243Sobrientcsh.ps: tcsh.man
45959243Sobrien	rm -f tcsh.ps
46059243Sobrien	-ptroff -t -man $(srcdir)/tcsh.man > tcsh.ps
46159243Sobrien
46259243Sobrien.c.${SUF}:
46359243Sobrien	${CC} ${CF} ${CFLAGS} ${CPPFLAGS} ${DFLAGS} ${EXTRAFLAGS} $<
46459243Sobrien
465167465Smp.SUFFIXES: .s .i
466167465Smp
467167465Smp.c.i:
468167465Smp	${CC} -E ${CFLAGS} ${CPPFLAGS} ${DFLAGS} ${EXTRAFLAGS} $< | cat -s > $@
469167465Smp
470167465Smp.c.s:
471167465Smp	${CC} -S ${CFLAGS} ${CPPFLAGS} ${DFLAGS} ${EXTRAFLAGS} $<
472167465Smp
47359243Sobrien# _VMS_POSIX #module addition
47459243Sobrien#.c.${SUF}:
47559243Sobrien#	@(echo '#module '`echo $< | sed -e 's/\./_/g'`; cat $<) > $*..c
47659243Sobrien#	@echo ${CC} ${CF} ${CFLAGS} ${CPPFLAGS} ${DFLAGS} ${EXTRAFLAGS} $*.c
47759243Sobrien#	@${CC} ${CF} ${CFLAGS} ${CPPFLAGS} ${DFLAGS} ${EXTRAFLAGS} $*..c
47859243Sobrien#	@mv $*..o $*.o
47959243Sobrien#	@rm -f $*..c
48059243Sobrien
48159243Sobrien
48259243Sobrien# Don't do any special massaging of C files for sharing of strings!!
48359243Sobrien# it causes weird segmentation faults on some systems.
48459243Sobrien#.c.o:
48559243Sobrien#	${CPP} ${CFLAGS} ${CPPFLAGS} $*.c | ${XSTR} -c -
48659243Sobrien#	${CC} ${CF} ${CFLAGS} ${CPPFLAGS} x.c 
48759243Sobrien#	mv -f x.o $*.o
48859243Sobrien#	rm -f x.c
48959243Sobrien
49059243Sobrien#ed.init.o: ed.init.c
49159243Sobrien#	${CPP} ${CFLAGS} ${CPPFLAGS} $*.c | ${XSTR} -c -
49259243Sobrien#	${CC} -R ${CF} ${CFLAGS} ${CPPFLAGS} x.c 
49359243Sobrien#	mv -f x.o $*.o
49459243Sobrien#	rm -f x.c
49559243Sobrien
49659243Sobrien#strings.o: strings
49759243Sobrien#	${XSTR}
49859243Sobrien#	${CC} -c -R xs.c
49959243Sobrien#	mv -f xs.o strings.o
50059243Sobrien#	rm -f xs.c
50159243Sobrien
50259243Sobrien##.DEFAULT:
50359243Sobrien##	${SCCS} get $<
50459243Sobrien
50559243Sobrien##.DEFAULT:
50659243Sobrien##	co $<
50759243Sobrien
50859243Sobriened.defns.h: ed.defns.c
509167465Smp	@rm -f $@.tmp
510167465Smp	@echo '/* Do not edit this file, make creates it. */' > $@.tmp
511167465Smp	@echo '#ifndef _h_ed_defns' >> $@.tmp
512167465Smp	@echo '#define _h_ed_defns' >> $@.tmp
513167465Smp	grep '[FV]_' $(srcdir)/ed.defns.c | grep '^#define' >> $@.tmp
514167465Smp	@echo '#endif /* _h_ed_defns */' >> $@.tmp
515167465Smp	@if [ -f $@ ] && cmp -s $@.tmp $@; then echo $@ unchanged.; rm -f $@.tmp; else mv -f $@.tmp $@; echo $@ recreated.; fi
51659243Sobrien
51759243Sobriensh.err.h: sh.err.c
518167465Smp	@rm -f $@.tmp
519167465Smp	@echo '/* Do not edit this file, make creates it. */' > $@.tmp
520167465Smp	@echo '#ifndef _h_sh_err' >> $@.tmp
521167465Smp	@echo '#define _h_sh_err' >> $@.tmp
522167465Smp	grep 'ERR_' $(srcdir)/sh.err.c | grep '^#define' >> $@.tmp
523167465Smp	@echo '#endif /* _h_sh_err */' >> $@.tmp
524167465Smp	@if [ -f $@ ] && cmp -s $@.tmp $@; then echo $@ unchanged.; rm -f $@.tmp; else mv -f $@.tmp $@; echo $@ recreated.; fi
52559243Sobrien
52659243Sobrientc.const.h: tc.const.c sh.char.h config.h config_f.h sh.types.h sh.err.h
527167465Smp	@rm -f $@.tmp
528167465Smp	@echo '/* Do not edit this file, make creates it. */' > $@.tmp
529167465Smp	@echo '#ifndef _h_tc_const' >> $@.tmp
530167465Smp	@echo '#define _h_tc_const' >> $@.tmp
53159243Sobrien	${CPP} $(CPPFLAGS) ${DFLAGS} ${EXTRAFLAGS} -D_h_tc_const\
532145479Smp	    $(srcdir)/tc.const.c | \
533145479Smp	    sed -n -e 's/^\(Char STR[a-zA-Z0-9_]*\) *\[ *\].*/extern \1[];/p' | \
534316957Sdchagin	    LC_COLLATE=C sort >> $@.tmp
535167465Smp	@echo '#endif /* _h_tc_const */' >> $@.tmp
536167465Smp	@if [ -f $@ ] && cmp -s $@.tmp $@; then echo $@ unchanged.; rm -f $@.tmp; else mv -f $@.tmp $@; echo $@ recreated.; fi
53759243Sobrien
538316957Sdchagin$(srcdir)/tests/package.m4: $(srcdir)/configure.ac
539167465Smp	{								   \
540167465Smp	  echo '# Signature of the current package.';			   \
541167465Smp	  echo 'm4_define([AT_PACKAGE_NAME],      [@PACKAGE_NAME@])';	   \
542167465Smp	  echo 'm4_define([AT_PACKAGE_TARNAME],   [@PACKAGE_TARNAME@])';   \
543167465Smp	  echo 'm4_define([AT_PACKAGE_VERSION],   [@PACKAGE_VERSION@])';   \
544167465Smp	  echo 'm4_define([AT_PACKAGE_STRING],    [@PACKAGE_STRING@])';	   \
545167465Smp	  echo 'm4_define([AT_PACKAGE_BUGREPORT], [@PACKAGE_BUGREPORT@])'; \
546167465Smp	} >$(srcdir)/tests/package.m4
547167465Smp
548231990Smp$(srcdir)/tests/testsuite: $(srcdir)/tests/package.m4 $(srcdir)/tests/testsuite.at $(TESTFILES)
549167465Smp	autom4te --language=autotest -I $(srcdir)/tests \
550167465Smp		$(srcdir)/tests/testsuite.at -o $@.tmp
551167465Smp	mv $@.tmp $@
552167465Smp
553167465Smpatconfig: config.status
554167465Smp	$(SHELL) ./config.status ./atconfig
555167465Smp
556167465Smp
55759243Sobriencsh.prof: ${OBJS} sh.prof.${SUF} mcrt0.${SUF}
55859243Sobrien	rm -f csh.prof
55959243Sobrien	ld -X mcrt0.${SUF} ${OBJS} -o csh.prof ${LIBES} -lc
56059243Sobrien
56159243Sobriensh.prof.${SUF}:
56259243Sobrien	cp sh.c sh.prof.c
56359243Sobrien	${CC} ${CF} ${CFLAGS} ${CPPFLAGS} -DPROF sh.prof.c
56459243Sobrien
56559243Sobrienlint: tc.const.h ed.defns.h
56659243Sobrien	lint ${DFLAGS} ${CPPFLAGS} ${LFLAGS} sh*.c tw*.c ed*.c tc.*.c ${LIBES}
56759243Sobrien
56859243Sobrienalint: tc.const.h ed.defns.h
56959243Sobrien	alint ${DFLAGS} ${CPPFLAGS} ${LFLAGS} sh*.c tw*.c ed*.c tc.*.c ${LIBES}
57059243Sobrien
57159243Sobrienprint:
57259243Sobrien	@pr READ_ME
57359243Sobrien	@pr makefile makefile.*
57459243Sobrien	@(size -l a.out; size *.${SUF}) | pr -h SIZES
57559243Sobrien	@${CXREF} sh*.c | pr -h XREF
57659243Sobrien	@ls -l | pr 
57759243Sobrien	@pr sh*.h [a-rt-z]*.h sh*.c alloc.c
57859243Sobrien
57959243Sobrienvprint:
58059243Sobrien	@pr -l84 READ_ME TODO
58159243Sobrien	@pr -l84 makefile makefile.*
58259243Sobrien	@(size -l a.out; size *.${SUF}) | pr -l84 -h SIZES
58359243Sobrien	@${CXREF} sh*.c | pr -l84 -h XREF
58459243Sobrien	@ls -l | pr -l84
58559243Sobrien	@${CXREF} sh*.c | pr -l84 -h XREF
58659243Sobrien	@pr -l84 sh*.h [a-rt-z]*.h sh*.c alloc.c
58759243Sobrien
58859243Sobrienvgrind:
58959243Sobrien	@cp /dev/null index
59059243Sobrien	@for i in *.h; do vgrind -t -h "C Shell" $$i >/crp/bill/csh/$$i.t; done
59159243Sobrien	@for i in *.c; do vgrind -t -h "C Shell" $$i >/crp/bill/csh/$$i.t; done
59259243Sobrien	@vgrind -t -x -h Index index >/crp/bill/csh/index.t
59359243Sobrien
59459243Sobrieninstall-strip: install
595316957Sdchagin	-strip ${DESTBIN}/tcsh$(EXEEXT)
59659243Sobrien
597231990Smpinstall: tcsh$(EXEEXT) install.catalogs install.man
59869408Sache	-mkdir -p ${DESTBIN}
599131962Smp	-mv -f ${DESTBIN}/tcsh$(EXEEXT)  ${DESTBIN}/tcsh.old
600131962Smp	cp tcsh$(EXEEXT) ${DESTBIN}/tcsh$(EXEEXT)
601131962Smp	chmod 755 ${DESTBIN}/tcsh$(EXEEXT)
60259243Sobrien
603231990Smpinstall.catalogs:
604231990Smp	@test "x${BUILD_CATALOGS}" = "xyes" && (cd nls; ${MAKE} install DESTDIR=${DESTDIR}) || exit 0
605231990Smp
60659243Sobrieninstall.man: tcsh.man
60769408Sache	-mkdir -p ${DESTMAN}
60859243Sobrien	-rm -f ${DESTMAN}/tcsh.${MANSECT}
60959243Sobrien	cp $(srcdir)/tcsh.man ${DESTMAN}/tcsh.${MANSECT}
61059243Sobrien	chmod 444 ${DESTMAN}/tcsh.${MANSECT}
61159243Sobrien
612231990Smp# Amiga Unix
613231990Smp#install.man: tcsh.man
614231990Smp#        compress tcsh.man
615231990Smp#	cp tcsh.man.Z ${DESTMAN}/tcsh.Z
616231990Smp#	chmod 444 ${DESTMAN}/tcsh.Z
617231990Smp
618231990Smp# Apple A/UX
619231990Smp#install.man: tcsh.man
620231990Smp#	-rm -f ${DESTMAN}/tcsh.${MANSECT}.Z
621231990Smp#	nroff -man tcsh.man | compress > ${DESTMAN}/tcsh.${MANSECT}.Z
622231990Smp#	chmod 444 ${DESTMAN}/tcsh.${MANSECT}.Z
623231990Smp
624231990Smpclean: clean.catalogs
625145479Smp	${RM} -f a.out strings x.c xs.c tcsh$(EXEEXT) tcsh.a _MAKE_LOG gethost
626167465Smp	${RM} -f *.${SUF} *.i *.s
627167465Smp	${RM} -f sh.prof.c ed.defns.h tc.const.h sh.err.h tc.defs.c
62859243Sobrien	${RM} -f tcsh.*.m tcsh.*.cat
62959243Sobrien
630231990Smpclean.catalogs:
631231990Smp	@test "x${BUILD_CATALOGS}" = "xyes" && (cd nls; ${MAKE} clean) || exit 0
632231990Smp
63359243Sobrienveryclean: clean
634145479Smp	${RM} -f Makefile config.h config_p.h
635145479Smp	${RM} -f config.status config.cache config.log tcsh.ps
636145479Smp	${RM} -f missing
637145479Smp	${RM} -rf autom4te.cache
63859243Sobrien	${RM} -f *~ #*
63959243Sobrien
64059243Sobriendistclean: veryclean
64159243Sobrien
642167465Smpcleandir: veryclean
643167465Smp
64459243Sobrientags:	/tmp
64559243Sobrien	${CTAGS} sh*.c
64659243Sobrien
64759243Sobrientar.Z:
64859243Sobrien	rm -f tcsh-${VERSION}.tar.Z
64959243Sobrien	rm -rf tcsh-${VERSION} 
650167465Smp	-mkdir tcsh-${VERSION} tcsh-${VERSION}/config tcsh-${VERSION}/tests
65159243Sobrien	cp ${ALLSRCS} tcsh-${VERSION}
65259243Sobrien	cp ${CONFSRCS} tcsh-${VERSION}/config
65359243Sobrien	tar cf - nls/Makefile nls/?*/set?* | (cd tcsh-${VERSION}; tar xpf -)
65459243Sobrien	tar cvf - tcsh-${VERSION} | compress > tcsh-${VERSION}.tar.Z
65559243Sobrien	rm -rf tcsh-${VERSION}
65659243Sobrien
65759243Sobrientar.gz:
65859243Sobrien	rm -f tcsh-${VERSION}.tar.gz
65959243Sobrien	rm -rf tcsh-${VERSION} 
660167465Smp	-mkdir tcsh-${VERSION} tcsh-${VERSION}/config tcsh-${VERSION}/tests
66159243Sobrien	cp ${ALLSRCS} tcsh-${VERSION}
66259243Sobrien	cp ${CONFSRCS} tcsh-${VERSION}/config
66359243Sobrien	tar cf - nls/Makefile nls/?*/set?* | (cd tcsh-${VERSION}; tar xpf -)
66459243Sobrien	tar cvf - tcsh-${VERSION} | gzip > tcsh-${VERSION}.tar.gz
66559243Sobrien	rm -rf tcsh-${VERSION}
66659243Sobrien
66759243Sobrienshar:
66859243Sobrien	rm -f tcsh-*.shar
66959243Sobrien	rm -rf tcsh-${VERSION} 
670167465Smp	-mkdir tcsh-${VERSION} tcsh-${VERSION}/config tcsh-${VERSION}/tests
67159243Sobrien	cp ${ALLSRCS} tcsh-${VERSION}
67259243Sobrien	cp ${CONFSRCS} tcsh-${VERSION}/config
67359243Sobrien	tar cf - nls/Makefile nls/?*/set?* | (cd tcsh-${VERSION}; tar xpf -)
67459243Sobrien	MAKESHAR -v -n tcsh-${VERSION} tcsh-${VERSION} \
67559243Sobrien		 tcsh-${VERSION}/?* tcsh-${VERSION}/config/?* \
67659243Sobrien		 tcsh-${VERSION}/?*/set?*
67759243Sobrien	rm -rf tcsh-${VERSION}
67859243Sobrien
67959243Sobriencatalogs:
680231990Smp	@test "x${BUILD_CATALOGS}" = "xyes" && (cd nls; ${MAKE} catalogs) || exit 0
68159243Sobrien
68259243Sobrientcsh-${VERSION}.tar.Z:
68359243Sobrien	rm -rf tcsh-${VERSION} 
68459243Sobrien	rm -f tcsh-${VERSION}.tar tcsh-${VERSION}.tar.Z DIFFS.[123]
685167465Smp	-mkdir tcsh-${VERSION} tcsh-${VERSION}/tests
68659243Sobrien	./MAKEDIFFS bsd
68759243Sobrien	mv DIFFS.1 DIFFS.2 DIFFS.3 tcsh-${VERSION}
68859243Sobrien	cp ${DISTSRCS} tcsh-${VERSION}
68969408Sache	-mkdir tcsh-${VERSION}/config
69059243Sobrien	cp ${CONFSRCS} tcsh-${VERSION}/config
69159243Sobrien	cp Makefile tcsh-${VERSION}/Makefile.new
69259243Sobrien	tar cf - nls/Makefile nls/?*/set?* | (cd tcsh-${VERSION}; tar xpf -)
69359243Sobrien	tar cvf - tcsh-${VERSION} | compress > tcsh-${VERSION}.tar.Z
69459243Sobrien	rm -rf tcsh-${VERSION}
69559243Sobrien
69659243Sobrientcsh.tahoe-${VERSION}.tar.Z:
69759243Sobrien	rm -rf tcsh.tahoe-${VERSION} 
69859243Sobrien	rm -f tcsh.tahoe-${VERSION}.tar tcsh.tahoe-${VERSION}.tar.Z DIFFS.[123]
69969408Sache	-mkdir tcsh.tahoe-${VERSION}
70059243Sobrien	./MAKEDIFFS tahoe
70159243Sobrien	mv DIFFS.1 DIFFS.2 DIFFS.3 tcsh.tahoe-${VERSION}
70259243Sobrien	cp ${DISTSRCS} tcsh.tahoe-${VERSION}
70369408Sache	-mkdir tcsh.tahoe-${VERSION}/config
70459243Sobrien	cp ${CONFSRCS} tcsh.tahoe-${VERSION}/config
70559243Sobrien	cp Makefile tcsh.tahoe-${VERSION}/Makefile.new
70659243Sobrien	tar cf - nls/Makefile nls/?*/set?* | (cd tcsh-${VERSION}; tar xpf -)
70759243Sobrien	tar cvf - tcsh.tahoe-${VERSION} | compress > tcsh.tahoe-${VERSION}.tar.Z
70859243Sobrien	rm -rf tcsh.tahoe-${VERSION}
70959243Sobrien
71059243Sobrientcsh.reno-${VERSION}.tar.Z:
71159243Sobrien	rm -rf tcsh.reno-${VERSION} 
71259243Sobrien	rm -f tcsh.reno-${VERSION}.tar tcsh.reno-${VERSION}.tar.Z DIFFS.[123]
71369408Sache	-mkdir tcsh.reno-${VERSION}
71459243Sobrien	./MAKEDIFFS reno
71559243Sobrien	mv DIFFS.1 DIFFS.2 DIFFS.3 tcsh.reno-${VERSION}
71659243Sobrien	cp ${DISTSRCS} tcsh.reno-${VERSION}
71769408Sache	-mkdir tcsh.reno-${VERSION}/config
71859243Sobrien	cp ${CONFSRCS} tcsh.reno-${VERSION}/config
71959243Sobrien	cp Makefile tcsh.reno-${VERSION}/Makefile.new
72059243Sobrien	tar cf - nls/Makefile nls/?*/set?* | (cd tcsh-${VERSION}; tar xpf -)
72159243Sobrien	tar cvf - tcsh.reno-${VERSION} | compress > tcsh.reno-${VERSION}.tar.Z
72259243Sobrien	rm -rf tcsh.reno-${VERSION}
72359243Sobrien
72459243Sobrienftp: tcsh-${VERSION}.tar.Z tcsh.tahoe-${VERSION}.tar.Z
72559243Sobrien	cp tcsh-${VERSION}.tar.Z tcsh.tahoe-${VERSION}.tar.Z ${FTPAREA}
72659243Sobrien	cp tcsh.man ${FTPAREA}
72759243Sobrien
72859243Sobrienautoconfigure: $(srcdir)/configure $(srcdir)/config.h.in
72959243Sobrien
730316957Sdchagin$(srcdir)/configure: $(srcdir)/configure.ac
73159243Sobrien	cd $(srcdir) && autoconf
73259243Sobrien
73359243Sobrien$(srcdir)/config.h.in: $(srcdir)/stamp-h.in
734316957Sdchagin$(srcdir)/stamp-h.in: $(srcdir)/configure.ac
73559243Sobrien	cd $(srcdir) && autoheader
73659243Sobrien	@echo timestamp > $(srcdir)/stamp-h.in
73759243Sobrien
738167465Smpcheck: atconfig $(srcdir)/tests/testsuite
739167465Smp	$(SHELL) $(srcdir)/tests/testsuite
740167465Smp
74159243Sobrien#
74259243Sobrien# Dependencies
74359243Sobrien#
74459243Sobrienconfig.h: config_f.h
74559243Sobrien
746145479SmpTCH=tc.h tc.const.h tc.decls.h tc.nls.h tc.os.h tc.sig.h
74759243SobrienSHH=sh.h sh.types.h sh.char.h sh.err.h sh.dir.h sh.proc.h pathnames.h \
74859243Sobrien    sh.decls.h ${TCH}
74959243SobrienTWH=tw.h tw.decls.h
75059243SobrienEDH=ed.h ed.decls.h
75159243Sobrien
75259243Sobrien# EDH
75359243SobrienEDINC=sh.${SUF} sh.func.${SUF} sh.lex.${SUF} sh.print.${SUF} sh.proc.${SUF} \
75459243Sobrien      sh.set.${SUF} tc.bind.${SUF} tc.os.${SUF} tc.prompt.${SUF} \
75559243Sobrien      tc.sched.${SUF} tw.parse.${SUF} tw.color.${SUF}
75659243Sobrien${EDOBJS} ${EDINC} : ${EDH}
75759243Sobrien
75859243Sobrien# SHH
75959243Sobrien${OBJS}: config.h ${SHH}
76059243Sobrien
76159243Sobrien# TWH
76259243SobrienTWINC=ed.chared.${SUF} ed.inputl.${SUF} sh.exec.${SUF} sh.func.${SUF} \
763145479Smp      sh.set.${SUF} tc.func.${SUF} tc.nls.${SUF} tw.color.${SUF}
76459243Sobrien${TWOBJS} ${TWINC}: ${TWH}
76559243Sobrien
76659243Sobrien# glob.h
76759243Sobrienglob.${SUF} sh.glob.${SUF}: glob.h
76859243Sobrien
769316957Sdchagin# dotlock.h
770316957Sdchagindotlock.${SUF}: dotlock.h
771316957Sdchagin
77259243Sobrien# ed.defns.h
77359243SobrienEDDINC=tc.bind.${SUF} tc.func.${SUF} tc.os.${SUF}
77459243Sobrien${EDOBJS} ${EDDINC}: ed.defns.h
77559243Sobrien
77659243Sobrien# tc.defs.o
77759243Sobrientc.defs.${SUF}:	tc.defs.c sh.h
778