Makefile.in revision 256281
1274955Ssvnmir# $tcsh: Makefile.in,v 3.49 2011/02/05 17:35:31 christos Exp $ 2274955Ssvnmir# Makefile.in 4.3 6/11/83 3274955Ssvnmir# 4274955Ssvnmir# C Shell with process control; VM/UNIX VAX Makefile 5274955Ssvnmir# Bill Joy UC Berkeley; Jim Kulp IIASA, Austria 6274955Ssvnmir# 7274955Ssvnmir# With an input editor, command completion, etc. and ported to all sorts of 8274955Ssvnmir# things; Paul Placeway, CIS Dept., Ohio State University 9274955Ssvnmir# 10274955SsvnmirSHELL=/bin/sh 11274955SsvnmirVERSION=@PACKAGE_VERSION@ 12274955SsvnmirBUILD=tcsh$(EXEEXT) 13274955SsvnmirVPATH=@srcdir@ 14274955Ssvnmirsrcdir=@srcdir@ 15274955Ssvnmir 16274955Ssvnmir################################################################ 17274955Ssvnmir## CFLAGS. For various -D things, see config.h 18274955Ssvnmir################################################################ 19274955Ssvnmir# 20274955Ssvnmir# These are the default suffixes from .c to .o and -c to get there 21274955Ssvnmir# but to use the global optimizer on the mips boxes, see below 22274955Ssvnmir# 23274955SsvnmirSUF=o 24274955SsvnmirCF=-c 25274955Ssvnmir 26274955SsvnmirCPPFLAGS=-I. -I$(srcdir) 27274955Ssvnmir 28274955SsvnmirLFLAGS= 29274955Ssvnmir# hpux lint 30274955Ssvnmir#LFLAGS= -Zn10000 31274955Ssvnmir 32274955Ssvnmir 33274955Ssvnmir# This is set by autoconf: 34274955SsvnmirCFLAGS = @CFLAGS@ 35274955Ssvnmir# debug: 36280031Sdim#CFLAGS= -g 37280031Sdim# production: 38274955Ssvnmir#CFLAGS= -O 39274955Ssvnmir# Broken optimizers.... 40274955Ssvnmir#CFLAGS= 41274955Ssvnmir 42274955Ssvnmir#CFLAGS= -g -pg -DPROF 43274955Ssvnmir#CFLAGS= -O -pg -DPROF 44280031Sdim 45280031Sdim# gcc 1.00-1.37 46274955Ssvnmir#CFLAGS= -O -finline-functions -fstrength-reduce 47274955Ssvnmir 48274955Ssvnmir# gcc 1.37-1.40 49274955Ssvnmir#CFLAGS= -O -fcombine-regs -finline-functions -fstrength-reduce 50274955Ssvnmir# add -msoft-float for 68881 machines. 51274955Ssvnmir 52274955Ssvnmir# gcc 2.0 53274955Ssvnmir# On the sparc, don't use -O2; it breaks setjmp() and vfork() 54274955Ssvnmir#CFLAGS= -O 55296417Sdim 56296417Sdim# gcc-2.1+ 57296417Sdim#CFLAGS= -O2 58296417Sdim 59296417Sdim# lucid c on suns 60296417Sdim#CFLAGS= -O5 61296417Sdim 62296417Sdim# gcc 2.1 on linux 63296417Sdim#CFLAGS= -O6 -fomit-frame-pointer 64274955Ssvnmir 65274955Ssvnmir# HP/UX 8.0, 9.0 66274955Ssvnmir#CFLAGS= +O3 -Aa 67274955Ssvnmir 68280031Sdim# Ultrix 4.2a 69274955Ssvnmir#CFLAGS= -O -Olimit 2000 70274955Ssvnmir 71274955Ssvnmir# Intel Paragon OSF/1 with PGI compilers 72280031Sdim#CFLAGS= -O -Mnodebug -Mnoperfmon 73274955Ssvnmir 74280031Sdim# DEC Alpha OSF/1 75280031Sdim## Normal Optimization 76274955Ssvnmir#CFLAGS= -O2 -Olimit 2000 77274955Ssvnmir## Full Optimization - may not work 78296417Sdim#CFLAGS= -O3 -Olimit 2000 79274955Ssvnmir#CF=-j 80280031Sdim#SUF=u 81274955Ssvnmir#.SUFFIXES: .u 82274955Ssvnmir 83274955Ssvnmir# for silicon graphics (and other mips compilers) -- use the 84274955Ssvnmir# global optimizer! (-O3). 85280031Sdim# On SGI 4.0+ you need to add -D__STDC__ too. 86280031Sdim#CFLAGS= -O3 87280031Sdim## Ultrix 4.2a 88280031Sdim#CFLAGS= -O3 -Olimit 2000 89274955Ssvnmir#CF=-j 90274955Ssvnmir#SUF=u 91274955Ssvnmir#.SUFFIXES: .u ## Ultrix and gnu-make need that 92274955Ssvnmir 93280031Sdim# mips systems 94280031Sdim# CFLAGS= -O -systype bsd43 -Wf,-XNd5000 -Wf,-XNp6000 -Olimit 2000 95280031Sdim 96280031Sdim# for at&t machines 97280031Sdim#CFLAGS= -O -Ksd 98274955Ssvnmir 99274955Ssvnmir# Stardent Titan 100280031Sdim#CFLAGS = -O -43 101280031Sdim 102274955Ssvnmir# Stardent Stellar or sunos4 /bin/cc or Solaris2.1 /opt/SUNWspro/bin/cc 103274955Ssvnmir#CFLAGS = -O4 104280031Sdim 105274955Ssvnmir# Intergraph clipper CLIX 3.1 106274955Ssvnmir#CFLAGS= -w -O2 107274955Ssvnmir 108274955Ssvnmir# Dnix 5.3 109274955Ssvnmir#CFLAGS = -O -X7 110274955Ssvnmir 111274955Ssvnmir# Pyramid OS/x 112274955Ssvnmir#CFLAGS = -OG 113274955Ssvnmir 114274955Ssvnmir# Multiflow (5M binary... if you choose -O5!) 115274955Ssvnmir#CFLAGS = -O5 -sb_trace 0 116274955Ssvnmir 117274955Ssvnmir# DDE Supermax Unix SYSV Rel III. 118274955Ssvnmir# CFLAGS= -O3 119274955Ssvnmir 120274955Ssvnmir# SINIX RMx00 121274955Ssvnmir#CFLAGS= -O# -D_POSIX_SOURCE# -kansi 122274955Ssvnmir 123280031Sdim# Apollo's with cc [apollo builtins don't work with gcc] 124280031Sdim# and apollo should not define __STDC__ if it does not have 125274955Ssvnmir# the standard header files. RT's (aos4.3) need that too; 126274955Ssvnmir# you might want to skip the -O on the rt's... Not very wise. 127274955Ssvnmir# AIX/ESA needs -D_IBMESA on command line (this may disappear by GA) 128274955Ssvnmir#DFLAGS=-U__STDC__ 129280031Sdim#DFLAGS=-D_IBMESA 130274955Ssvnmir# On aix2.2.1 we need more compiler space. 131274955Ssvnmir#DFLAGS=-Nd4000 -Nn3000 132280031Sdim# AU/X 2.0 needs a flag for POSIX (read the config file) 133274955Ssvnmir#DFLAGS=-Zp 134280031Sdim# Tektronix 4300 running UTek 4.0 (BSD 4.2) needs: 135274955Ssvnmir#DFLAGS = -DUTek -DBSD 136274955Ssvnmir# VMS_POSIX needs: 137274955Ssvnmir#DFLAGS=-D_VMS_POSIX 138280031Sdim# Multiflow and PCC compilers don't like void typedefs. 139280031Sdim# You may also need -U__STDC__ if you use pcc (i.e. ibmrt aos4.3). 140280031Sdim#DFLAGS=-DMULTIFLOW 141280031Sdim#DFLAGS=-DPCC 142280031Sdim# DELL SVR4 143280031Sdim#DFLAGS=-DDELL 144280031Sdim#DFLAGS= 145274955Ssvnmir#DFLAGS=-D_PATH_TCSHELL='"${DESTBIN}/tcsh"' 146274955Ssvnmir## The following is set by autoconf. 147274955SsvnmirDFLAGS = -D_PATH_TCSHELL='"${bindir}/tcsh"' @DFLAGS@ @CPPFLAGS@ 148274955Ssvnmir 149274955Ssvnmir 150274955Ssvnmir################################################################ 151274955Ssvnmir## LDFLAGS. Define something here if you need to 152296417Sdim################################################################ 153296417Sdim## This is set by autoconf: 154274955SsvnmirLDFLAGS= @LDFLAGS@ 155274955Ssvnmir## The simplest, suitable for all. 156274955Ssvnmir#LDFLAGS= 157274955Ssvnmir## Stripped. Takes less space on disk. 158274955Ssvnmir#LDFLAGS= -s 159274955Ssvnmir## Pure executable. Spares paging over the network for machines with 160274955Ssvnmir## local swap but external /usr/local/bin . 161274955Ssvnmir#LDFLAGS= -s -n 162274955Ssvnmir## Without dynamic linking. (SunOS/cc) 163274955Ssvnmir#LDFLAGS= -s -n -Bstatic 164274955Ssvnmir## Without dynamic linking. (SunOS/gcc) 165274955Ssvnmir#LDFLAGS= -s -n -static 166274955Ssvnmir## Stripped, shared text (Unicos) 167274955Ssvnmir#LDFLAGS= -Wl,-s,-n 168288943Sdim## Link statically. (linux) 169288943Sdim#LDFLAGS= -s -static 170288943Sdim## Impure executable (linux) 171274955Ssvnmir#LDFLAGS= -s -N 172288943Sdim 173288943Sdim################################################################ 174288943Sdim## SBINLDFLAGS. Flags to build a tcsh suitable for installation in 175288943Sdim## in /sbin under Solaris with gcc. See the "tcsh.sbin" 176274955Ssvnmir## target. 177280031Sdim################################################################ 178274955SsvnmirSBINLDFLAGS=-Wl,-R/etc/lib,-I/etc/lib/ld.so.1,-ldl,-Bstatic 179280031Sdim 180280031Sdim################################################################ 181280031Sdim## LIBES. Pick one, or roll your own. 182280031Sdim################################################################ 183280031Sdim## This is set by autoconf. 184280031SdimLIBES= @LIBS@ 185280031Sdim## BSD style things 186280031Sdim#LIBES= -ltermcap 187280031Sdim## SunOS, HP-UX, pyramid 188274955Ssvnmir#LIBES= -ltermcap 189274955Ssvnmir## Linux 190274955Ssvnmir#LIBES= -ltermcap 191274955Ssvnmir## Linux with PW_SHADOW 192274955Ssvnmir#LIBES= -ltermcap -lshadow 193274955Ssvnmir## Tek XD88/10 (UTekV) with PW_SHADOW 194274955Ssvnmir#LIBES= -ltermcap -lsec 195274955Ssvnmir## Motorola MPC (sysV88) with PW_SHADOW 196274955Ssvnmir#LIBES= -ltermcap -lsec 197274955Ssvnmir## Mach 198280031Sdim#LIBES= -ltermcap -lcs 199274955Ssvnmir## DEC osf1 on the alpha 200274955Ssvnmir#LIBES= -ltermcap -lbsd 201280031Sdim## Intel paragon 202280031Sdim#LIBES= -ltermcap -lbsd 203274955Ssvnmir## Clipper intergraph 204280031Sdim#LIBES= -ltermcap -lbsd 205280031Sdim## Sequent's Dynix 206280031Sdim#LIBES= -ltermcap -lseq 207274955Ssvnmir## Ultrix with Enhanced Security 208280031Sdim#LIBES= -ltermcap -lauth 209274955Ssvnmir## Xenix 386 style things 210274955Ssvnmir#LIBES= -ltermcap -ldir -lx 211274955Ssvnmir## masscomp RTU6.0 212280031Sdim#LIBES= -ltermcap -lndir -lsocket -ljobs 213280031Sdim## AIX on the rt 214280031Sdim#LIBES= -lcurses 215274955Ssvnmir## TitanOS on the stellar 216274955Ssvnmir#LIBES= -lcurses 217274955Ssvnmir## SysV4 w/o BSDTIMES or Solaris 2 218274955Ssvnmir#LIBES= -ltermlib -lsocket -lnsl 219274955Ssvnmir## SysV3 w/o networking 220274955Ssvnmir#LIBES= -lcurses 221274955Ssvnmir## SysV3 with networking 222280031Sdim#LIBES= -lcurses -lnet 223274955Ssvnmir## SysV2 w/o networking & dirlib 224274955Ssvnmir#LIBES= -lcurses -ldir 225274955Ssvnmir## SysV2 with networking & dirlib 226274955Ssvnmir#LIBES= -lcurses -ldir -lnet 227274955Ssvnmir## AIX on the IBM 370 or rs6000 or ps2 228274955Ssvnmir#LIBES= -lcurses -lbsd 229274955Ssvnmir## ETA10 230274955Ssvnmir#LIBES= -lcurses -lbsd 231274955Ssvnmir## Irix3.1 on the SGI-IRIS4D 232274955Ssvnmir#LIBES= -lcurses -lbsd 233274955Ssvnmir## Irix3.3 on the SGI-IRIS4D w/o yp 234274955Ssvnmir#LIBES= -lcurses -lbsd -lc_s 235274955Ssvnmir## Irix3.3 on the SGI-IRIS4D with yp 236274955Ssvnmir#LIBES= -lcurses -lsun -lbsd -lc_s 237274955Ssvnmir## Amdahl UTS 2.1 238274955Ssvnmir#LIBES= -lcurses -lsocket -lbsd 239274955Ssvnmir## Intel's hypercube. 240274955Ssvnmir#LIBES= -lcurses -lsocket 241274955Ssvnmir## ns32000 based Opus. 242274955Ssvnmir#LIBES= -lcurses -lsocket 243274955Ssvnmir## ISC 2.2 without networking 244274955Ssvnmir#LIBES= -lcurses -lcposix 245274955Ssvnmir## ISC 2.2 with networking 246280031Sdim#LIBES= -lcposix -lc_s -lcurses -linet 247280031Sdim## ISC 2.0.2 without networking 248280031Sdim#LIBES= -lcurses -lsec -lc_s 249274955Ssvnmir## ISC 2.0.2 with networking 250280031Sdim#LIBES= -lcurses -linet -lsec -lc_s 251280031Sdim## SCO SysVR3.2v2.0 252280031Sdim#LIBES= -lcurses -lintl -lcrypt 253280031Sdim## SCO+ODT1.1 254274955Ssvnmir#LIBES= -lcurses -lintl -lsocket -lcrypt 255274955Ssvnmir## A/UX 2.0 256280031Sdim#LIBES= -lposix -ltermcap 257274955Ssvnmir## A/UX 3.0 258274955Ssvnmir#LIBES= -lposix -ltermcap -lc_s 259280031Sdim## att3b1 cc w/o shared lib & dirlib 260280031Sdim#LIBES= -ldirent -lcurses 261274955Ssvnmir## att3b1 gcc with shared lib & dirlib 262274955Ssvnmir#LIBES= -shlib -ldirent -lcurses 263280031Sdim## SysV4 with BSDTIMES 264274955Ssvnmir#LIBES= -ltermlib -lsocket -lnsl -lc /usr/ucblib/libucb.a 265274955Ssvnmir## Stardent Vistra 266274955Ssvnmir#LIBES= -lcurses -lnsl -lsocket -lc /usr/ucblib/libucb.a 267274955Ssvnmir## emx under OS/2 268274955Ssvnmir#LIBES= -ltermc 269274955Ssvnmir## Minix, VMS_POSIX 270274955Ssvnmir#LIBES= 271274955Ssvnmir## Multiflow 272274955Ssvnmir#LIBES= -ltermcap -lcrypt 273274955Ssvnmir## NetBSD 274280031Sdim#LIBES= -ltermcap -lcrypt 275274955Ssvnmir## DDE Supermax 276274955Ssvnmir#LIBES= -lcurses 277274955Ssvnmir 278274955Ssvnmir################################################################ 279274955Ssvnmir## EXTRAFLAGS and EXTRALIBS 280274955Ssvnmir################################################################ 281274955Ssvnmir# Compiling for AFS with kerberos authentication 282274955Ssvnmir#AFSLIBDIR = /usr/afsws/lib 283274955Ssvnmir#AFSDEF = -DAFS -I/usr/afsws/include 284274955Ssvnmir#AFS33LIB = -laudit 285274955Ssvnmir# 286274955Ssvnmir#Solaris and HPUX require the BSD libraries with AFS. 287274955Ssvnmir#We use -lc to use only what we require. 288274955Ssvnmir# Solaris 289274955Ssvnmir#AFSAUXLIB = -lsocket -lnsl -lc -lucb 290274955Ssvnmir# HPUX 291274955Ssvnmir#AFSAUXLIB = -lc -lBSD 292274955Ssvnmir# 293274955Ssvnmir#AFSLIB = -L$(AFSLIBDIR) -L$(AFSLIBDIR)/afs -lkauth -lprot -lubik\ 294274955Ssvnmir# -lauth -lrxkad -lsys -ldes -lrx -llwp -lcom_err\ 295274955Ssvnmir# $(AFSLIBDIR)/afs/util.a $(AFS33LIB) $(AFSAUXLIB) 296274955Ssvnmir# 297274955Ssvnmir 298274955SsvnmirEXTRAFLAGS = @HESDEF@ $(AFSDEF) 299274955SsvnmirEXTRALIBS = @HESLIB@ $(AFSLIB) @LIBICONV@ 300274955Ssvnmir 301274955Ssvnmir 302274955Ssvnmir 303274955Ssvnmir# The difficult choice of a c-compiler... 304274955Ssvnmir# First, you should try your own c-compiler. 305274955Ssvnmir# Gcc -traditional is also a safe choice. 306274955Ssvnmir# If you think that you have good include files try gcc -Wall... 307274955Ssvnmir# If you want to take out -traditional, make sure that your sys/ioctl.h 308274955Ssvnmir# is fixed correctly, otherwise you'll be stopped for tty input, or you 309274955Ssvnmir# will lose the editor and job control. 310274955Ssvnmir 311274955Ssvnmir# This is for setting your C preprocessor value. 312274955Ssvnmir# This is set by autoconf. 313274955SsvnmirCPP = @CPP@ 314274955Ssvnmir# The -B tells gcc to use /bin/ld. This is to avoid using the gnu ld, which 315274955Ssvnmir# on the suns does not know how to make dynamically linked binaries. 316274955Ssvnmir# This is set by autoconf. 317274955SsvnmirCC = @CC@ 318274955Ssvnmir#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 319274955Ssvnmir# -ansi -pedantic 320274955Ssvnmir#CC= gcc -Wall -pipe -B/bin/ 321274955Ssvnmir# Generate code for Intel 486 (linux) 322274955Ssvnmir#CC= gcc -m486 -pipe -Wall 323274955Ssvnmir# BSDI2.1 w/ shared libraries 324274955Ssvnmir#CC= shlicc 325274955Ssvnmir#CC= cc 326274955Ssvnmir#CC= occ 327274955Ssvnmir#CC= acc 328274955Ssvnmir#CC= pcc 329274955Ssvnmir#CC= hc -w 330274955Ssvnmir# For VMS/POSIX 331274955Ssvnmir#CC= c89 332274955Ssvnmir# For suns, w/o gcc and SVR4 333274955Ssvnmir#CC= /bin/cc 334274955Ssvnmir# FPS 500 (+FPX) with Sun C compiler 335274955Ssvnmir#CC= /usr/lib/sun.compile/cc 336274955Ssvnmir# Solaris 2.1 337280031Sdim#CC= /opt/SUNWspro/bin/cc 338280031Sdim# Alliant fx2800 339280031Sdim#CC= scc 340280031Sdim# for NEC SX-4 341280031Sdim#CC= cc -h0,ansi,novector,float0 342280031Sdim#CC= lcc -wa 343296417SdimCC_FOR_GETHOST = @CC_FOR_GETHOST@ 344274955SsvnmirED= ed 345274955SsvnmirAS= as 346274955SsvnmirRM= rm 347296417SdimCXREF= /usr/ucb/cxref 348296417SdimVGRIND= csh /usr/ucb/vgrind 349296417SdimCTAGS= /usr/ucb/ctags 350274955Ssvnmir#XSTR= /usr/ucb/xstr 351274955SsvnmirSCCS= /usr/local/sccs 352274955Ssvnmir# Make the multi-max run fast. 353274955SsvnmirPARALLEL=12 354274955Ssvnmir# Use Sequent's parallel make 355274955Ssvnmir#P=& 356274955SsvnmirP= 357274955Ssvnmirprefix=@prefix@ 358274955Ssvnmirexec_prefix=@exec_prefix@ 359274955Ssvnmirbindir=@bindir@ 360274955Ssvnmirmandir=@datarootdir@/man 361274955SsvnmirMANSECT=1 362274955SsvnmirDESTBIN=${DESTDIR}${bindir} 363280031SdimDESTMAN=${DESTDIR}${mandir}/man${MANSECT} 364274955Ssvnmir# A/UX 365280031Sdim# DESTMAN=${DESTDIR}/catman/man${MANSECT} 366280031Sdim# Stardent Vistra (SysVR4) 367280031Sdim# DESTMAN=${DESTDIR}/usr/share/man/man${MANSECT} 368280031Sdim# Amiga unix (SysVR4) 369280031Sdim# DESTMAN=/usr/catman/1l 370280031SdimEXEEXT=@EXEEXT@ 371274955SsvnmirFTPAREA=/usr/spool/ftp 372274955Ssvnmir 373274955SsvnmirBUILD_CATALOGS = @BUILD_CATALOGS@ 374274955Ssvnmir 375280031SdimASSRCS= sh.c sh.dir.c sh.dol.c sh.err.c sh.exec.c sh.char.c \ 376280031Sdim sh.exp.c sh.file.c sh.func.c sh.glob.c sh.hist.c sh.init.c \ 377274955Ssvnmir sh.lex.c sh.misc.c sh.parse.c sh.print.c sh.proc.c sh.sem.c \ 378274955Ssvnmir sh.set.c sh.time.c sh.char.h sh.dir.h sh.proc.h sh.h \ 379274955Ssvnmir tw.color.c 380274955SsvnmirPSSRCS= sh.decls.h glob.c glob.h mi.termios.c mi.wait.h mi.varargs.h ma.setp.c \ 381274955Ssvnmir vms.termcap.c 382274955SsvnmirSHSRCS= ${ASSRCS} ${PSSRCS} 383274955SsvnmirSHOBJS= sh.${SUF} sh.dir.${SUF} sh.dol.${SUF} sh.err.${SUF} sh.exec.${SUF} \ 384274955Ssvnmir sh.char.${SUF} sh.exp.${SUF} sh.file.${SUF} sh.func.${SUF} \ 385274955Ssvnmir sh.glob.${SUF} sh.hist.${SUF} sh.init.${SUF} sh.lex.${SUF} \ 386274955Ssvnmir sh.misc.${SUF} sh.parse.${SUF} sh.print.${SUF} sh.proc.${SUF} \ 387 sh.sem.${SUF} sh.set.${SUF} sh.time.${SUF} glob.${SUF} \ 388 mi.termios.${SUF} ma.setp.${SUF} vms.termcap.${SUF} 389 390TWSRCS= tw.decls.h tw.h tw.help.c tw.init.c tw.parse.c tw.spell.c \ 391 tw.comp.c tw.color.c 392TWOBJS= tw.help.${SUF} tw.init.${SUF} tw.parse.${SUF} tw.spell.${SUF} \ 393 tw.comp.${SUF} tw.color.${SUF} 394 395EDSRCS= ed.chared.c ed.decls.h ed.defns.c ed.h ed.init.c ed.inputl.c \ 396 ed.refresh.c ed.screen.c ed.xmap.c ed.term.c ed.term.h 397EDOBJS= ed.chared.${SUF} ed.refresh.${SUF} ed.screen.${SUF} ed.init.${SUF} \ 398 ed.inputl.${SUF} ed.defns.${SUF} ed.xmap.${SUF} ed.term.${SUF} 399 400TCSRCS= tc.alloc.c tc.bind.c tc.const.c tc.decls.h tc.disc.c \ 401 tc.func.c tc.nls.c tc.os.c tc.os.h tc.printf.c tc.prompt.c \ 402 tc.sched.c tc.sig.c tc.sig.h tc.str.c sh.types.h tc.vers.c tc.wait.h \ 403 tc.who.c tc.h 404TCOBJS= tc.alloc.${SUF} tc.bind.${SUF} tc.const.${SUF} tc.defs.${SUF} \ 405 tc.disc.${SUF} tc.func.${SUF} tc.nls.${SUF} tc.os.${SUF} tc.printf.${SUF} \ 406 tc.prompt.${SUF} tc.sched.${SUF} tc.sig.${SUF} tc.str.${SUF} \ 407 tc.vers.${SUF} tc.who.${SUF} 408 409PVSRCS= Makefile.std Makefile.vms Makefile.in Makefile.win32 410AVSRCS= Fixes MAKEDIFFS MAKESHAR NewThings README FAQ \ 411 WishList config_f.h eight-bit.me glob.3 patchlevel.h \ 412 pathnames.h tcsh.man Ported src.desc Imakefile imake.config \ 413 README.imake complete.tcsh vmsreadme.txt termcap.vms snames.h \ 414 host.defs gethost.c tcsh.man2html configure.in configure config.h.in \ 415 tests/testsuite.at 416TESTFILES= tests/aliases.at tests/arguments.at tests/commands.at \ 417 tests/expr.at tests/lexical.at tests/mb-eucjp.at \ 418 tests/mb-utf8.at tests/noexec.at tests/syntax.at tests/subst.at \ 419 tests/variables.at tests/sh.dol.at 420 421VHSRCS=${PVSRCS} ${AVSRCS} 422 423CONFSRCS=config/* 424 425ALLSRCS= ${SHSRCS} ${TWSRCS} ${EDSRCS} ${TCSRCS} ${VHSRCS} 426DISTSRCS= ${PSSRCS} ${TWSRCS} ${EDSRCS} ${TCSRCS} ${AVSRCS} $(TESTFILES) 427 428 429OBJS= ${SHOBJS} ${TWOBJS} ${EDOBJS} ${TCOBJS} 430 431 432all: ${BUILD} catalogs 433 434tcsh$(EXEEXT):$(P) ${OBJS} 435 rm -f tcsh$(EXEEXT) core 436 ${CC} -o tcsh$(EXEEXT) ${LDFLAGS} ${CFLAGS} ${CPPFLAGS} ${OBJS} ${LIBES} ${EXTRALIBS} 437 438tcsh.sbin:$(P) ${OBJS} 439 rm -f tcsh.sbin core 440 ${CC} -o tcsh.sbin ${SBINLDFLAGS} ${LDFLAGS} ${CFLAGS} ${CPPFLAGS} ${OBJS} ${LIBES} ${EXTRALIBS} 441 442# Purify 443pure:$(P) ${OBJS} 444 rm -f tcsh$(EXEEXT) core 445 purify `echo ${CC} | sed -e s,-B/bin/,,` -o tcsh$(EXEEXT) ${LDFLAGS} ${CFLAGS} ${CPPFLAGS} ${OBJS} ${LIBES} ${EXTRALIBS} 446# OS/2 447#tcsh.exe: tcsh 448# emxbind tcsh 449 450gethost: gethost.c sh.err.h tc.const.h sh.h 451 rm -f gethost 452 ${CC_FOR_GETHOST} -o gethost ${CPPFLAGS} $(srcdir)/gethost.c 453 454tc.defs.c: gethost host.defs 455 @rm -f $@.tmp 456 @echo "/* Do not edit this file, make creates it */" > $@.tmp 457 ./gethost $(srcdir)/host.defs >> $@.tmp 458 @if [ -f $@ ] && cmp -s $@.tmp $@; then echo $@ unchanged.; rm -f $@.tmp; else mv -f $@.tmp $@; echo $@ recreated.; fi 459 460tcsh.ps: tcsh.man 461 rm -f tcsh.ps 462 -ptroff -t -man $(srcdir)/tcsh.man > tcsh.ps 463 464.c.${SUF}: 465 ${CC} ${CF} ${CFLAGS} ${CPPFLAGS} ${DFLAGS} ${EXTRAFLAGS} $< 466 467.SUFFIXES: .s .i 468 469.c.i: 470 ${CC} -E ${CFLAGS} ${CPPFLAGS} ${DFLAGS} ${EXTRAFLAGS} $< | cat -s > $@ 471 472.c.s: 473 ${CC} -S ${CFLAGS} ${CPPFLAGS} ${DFLAGS} ${EXTRAFLAGS} $< 474 475# _VMS_POSIX #module addition 476#.c.${SUF}: 477# @(echo '#module '`echo $< | sed -e 's/\./_/g'`; cat $<) > $*..c 478# @echo ${CC} ${CF} ${CFLAGS} ${CPPFLAGS} ${DFLAGS} ${EXTRAFLAGS} $*.c 479# @${CC} ${CF} ${CFLAGS} ${CPPFLAGS} ${DFLAGS} ${EXTRAFLAGS} $*..c 480# @mv $*..o $*.o 481# @rm -f $*..c 482 483 484# Don't do any special massaging of C files for sharing of strings!! 485# it causes weird segmentation faults on some systems. 486#.c.o: 487# ${CPP} ${CFLAGS} ${CPPFLAGS} $*.c | ${XSTR} -c - 488# ${CC} ${CF} ${CFLAGS} ${CPPFLAGS} x.c 489# mv -f x.o $*.o 490# rm -f x.c 491 492#ed.init.o: ed.init.c 493# ${CPP} ${CFLAGS} ${CPPFLAGS} $*.c | ${XSTR} -c - 494# ${CC} -R ${CF} ${CFLAGS} ${CPPFLAGS} x.c 495# mv -f x.o $*.o 496# rm -f x.c 497 498#strings.o: strings 499# ${XSTR} 500# ${CC} -c -R xs.c 501# mv -f xs.o strings.o 502# rm -f xs.c 503 504##.DEFAULT: 505## ${SCCS} get $< 506 507##.DEFAULT: 508## co $< 509 510ed.defns.h: ed.defns.c 511 @rm -f $@.tmp 512 @echo '/* Do not edit this file, make creates it. */' > $@.tmp 513 @echo '#ifndef _h_ed_defns' >> $@.tmp 514 @echo '#define _h_ed_defns' >> $@.tmp 515 grep '[FV]_' $(srcdir)/ed.defns.c | grep '^#define' >> $@.tmp 516 @echo '#endif /* _h_ed_defns */' >> $@.tmp 517 @if [ -f $@ ] && cmp -s $@.tmp $@; then echo $@ unchanged.; rm -f $@.tmp; else mv -f $@.tmp $@; echo $@ recreated.; fi 518 519sh.err.h: sh.err.c 520 @rm -f $@.tmp 521 @echo '/* Do not edit this file, make creates it. */' > $@.tmp 522 @echo '#ifndef _h_sh_err' >> $@.tmp 523 @echo '#define _h_sh_err' >> $@.tmp 524 grep 'ERR_' $(srcdir)/sh.err.c | grep '^#define' >> $@.tmp 525 @echo '#endif /* _h_sh_err */' >> $@.tmp 526 @if [ -f $@ ] && cmp -s $@.tmp $@; then echo $@ unchanged.; rm -f $@.tmp; else mv -f $@.tmp $@; echo $@ recreated.; fi 527 528tc.const.h: tc.const.c sh.char.h config.h config_f.h sh.types.h sh.err.h 529 @rm -f $@.tmp 530 @echo '/* Do not edit this file, make creates it. */' > $@.tmp 531 @echo '#ifndef _h_tc_const' >> $@.tmp 532 @echo '#define _h_tc_const' >> $@.tmp 533 ${CPP} $(CPPFLAGS) ${DFLAGS} ${EXTRAFLAGS} -D_h_tc_const\ 534 $(srcdir)/tc.const.c | \ 535 sed -n -e 's/^\(Char STR[a-zA-Z0-9_]*\) *\[ *\].*/extern \1[];/p' | \ 536 sort >> $@.tmp 537 @echo '#endif /* _h_tc_const */' >> $@.tmp 538 @if [ -f $@ ] && cmp -s $@.tmp $@; then echo $@ unchanged.; rm -f $@.tmp; else mv -f $@.tmp $@; echo $@ recreated.; fi 539 540$(srcdir)/tests/package.m4: $(srcdir)/configure.in 541 { \ 542 echo '# Signature of the current package.'; \ 543 echo 'm4_define([AT_PACKAGE_NAME], [@PACKAGE_NAME@])'; \ 544 echo 'm4_define([AT_PACKAGE_TARNAME], [@PACKAGE_TARNAME@])'; \ 545 echo 'm4_define([AT_PACKAGE_VERSION], [@PACKAGE_VERSION@])'; \ 546 echo 'm4_define([AT_PACKAGE_STRING], [@PACKAGE_STRING@])'; \ 547 echo 'm4_define([AT_PACKAGE_BUGREPORT], [@PACKAGE_BUGREPORT@])'; \ 548 } >$(srcdir)/tests/package.m4 549 550$(srcdir)/tests/testsuite: $(srcdir)/tests/package.m4 $(srcdir)/tests/testsuite.at $(TESTFILES) 551 autom4te --language=autotest -I $(srcdir)/tests \ 552 $(srcdir)/tests/testsuite.at -o $@.tmp 553 mv $@.tmp $@ 554 555atconfig: config.status 556 $(SHELL) ./config.status ./atconfig 557 558 559csh.prof: ${OBJS} sh.prof.${SUF} mcrt0.${SUF} 560 rm -f csh.prof 561 ld -X mcrt0.${SUF} ${OBJS} -o csh.prof ${LIBES} -lc 562 563sh.prof.${SUF}: 564 cp sh.c sh.prof.c 565 ${CC} ${CF} ${CFLAGS} ${CPPFLAGS} -DPROF sh.prof.c 566 567lint: tc.const.h ed.defns.h 568 lint ${DFLAGS} ${CPPFLAGS} ${LFLAGS} sh*.c tw*.c ed*.c tc.*.c ${LIBES} 569 570alint: tc.const.h ed.defns.h 571 alint ${DFLAGS} ${CPPFLAGS} ${LFLAGS} sh*.c tw*.c ed*.c tc.*.c ${LIBES} 572 573print: 574 @pr READ_ME 575 @pr makefile makefile.* 576 @(size -l a.out; size *.${SUF}) | pr -h SIZES 577 @${CXREF} sh*.c | pr -h XREF 578 @ls -l | pr 579 @pr sh*.h [a-rt-z]*.h sh*.c alloc.c 580 581vprint: 582 @pr -l84 READ_ME TODO 583 @pr -l84 makefile makefile.* 584 @(size -l a.out; size *.${SUF}) | pr -l84 -h SIZES 585 @${CXREF} sh*.c | pr -l84 -h XREF 586 @ls -l | pr -l84 587 @${CXREF} sh*.c | pr -l84 -h XREF 588 @pr -l84 sh*.h [a-rt-z]*.h sh*.c alloc.c 589 590vgrind: 591 @cp /dev/null index 592 @for i in *.h; do vgrind -t -h "C Shell" $$i >/crp/bill/csh/$$i.t; done 593 @for i in *.c; do vgrind -t -h "C Shell" $$i >/crp/bill/csh/$$i.t; done 594 @vgrind -t -x -h Index index >/crp/bill/csh/index.t 595 596install-strip: install 597 598install: tcsh$(EXEEXT) install.catalogs install.man 599 -mkdir -p ${DESTBIN} 600 -mv -f ${DESTBIN}/tcsh$(EXEEXT) ${DESTBIN}/tcsh.old 601 cp tcsh$(EXEEXT) ${DESTBIN}/tcsh$(EXEEXT) 602 -strip ${DESTBIN}/tcsh$(EXEEXT) 603 chmod 755 ${DESTBIN}/tcsh$(EXEEXT) 604 605install.catalogs: 606 @test "x${BUILD_CATALOGS}" = "xyes" && (cd nls; ${MAKE} install DESTDIR=${DESTDIR}) || exit 0 607 608install.man: tcsh.man 609 -mkdir -p ${DESTMAN} 610 -rm -f ${DESTMAN}/tcsh.${MANSECT} 611 cp $(srcdir)/tcsh.man ${DESTMAN}/tcsh.${MANSECT} 612 chmod 444 ${DESTMAN}/tcsh.${MANSECT} 613 614# Amiga Unix 615#install.man: tcsh.man 616# compress tcsh.man 617# cp tcsh.man.Z ${DESTMAN}/tcsh.Z 618# chmod 444 ${DESTMAN}/tcsh.Z 619 620# Apple A/UX 621#install.man: tcsh.man 622# -rm -f ${DESTMAN}/tcsh.${MANSECT}.Z 623# nroff -man tcsh.man | compress > ${DESTMAN}/tcsh.${MANSECT}.Z 624# chmod 444 ${DESTMAN}/tcsh.${MANSECT}.Z 625 626install.cygwin: install 627 -gzip ${DESTMAN}/tcsh.${MANSECT} 628 -mkdir -p ${DESTDIR}${prefix}/share/doc/tcsh 629 cp ${srcdir}/FAQ ${srcdir}/Fixes ${DESTDIR}${prefix}/share/doc/tcsh 630 cp ${srcdir}/NewThings ${srcdir}/README ${DESTDIR}${prefix}/share/doc/tcsh 631 cp ${srcdir}/WishList ${srcdir}/Y2K ${DESTDIR}${prefix}/share/doc/tcsh 632 perl ${srcdir}/tcsh.man2html ${srcdir}/tcsh.man 633 cp -rp tcsh.html ${DESTDIR}${prefix}/share/doc/tcsh 634 -mkdir -p ${DESTDIR}/etc/defaults/etc/profile.d 635 -mkdir -p ${DESTDIR}/etc/profile.d 636 -mkdir -p ${DESTDIR}/etc/postinstall 637 -mkdir -p ${DESTDIR}/etc/preremove 638 cp -p ${srcdir}/cygwin/csh.cshrc ${DESTDIR}/etc/defaults/etc 639 cp -p ${srcdir}/cygwin/csh.login ${DESTDIR}/etc/defaults/etc 640 cp -p ${srcdir}/cygwin/bindkey.tcsh ${DESTDIR}/etc/defaults/etc/profile.d 641 cp -p ${srcdir}/complete.tcsh ${DESTDIR}/etc/defaults/etc/profile.d 642 cp -p ${srcdir}/cygwin/postinstall.sh ${DESTDIR}/etc/postinstall/tcsh.sh 643 cp -p ${srcdir}/cygwin/preremove.sh ${DESTDIR}/etc/preremove/tcsh.sh 644 645clean: clean.catalogs 646 ${RM} -f a.out strings x.c xs.c tcsh$(EXEEXT) tcsh.a _MAKE_LOG gethost 647 ${RM} -f *.${SUF} *.i *.s 648 ${RM} -f sh.prof.c ed.defns.h tc.const.h sh.err.h tc.defs.c 649 ${RM} -f tcsh.*.m tcsh.*.cat 650 651clean.catalogs: 652 @test "x${BUILD_CATALOGS}" = "xyes" && (cd nls; ${MAKE} clean) || exit 0 653 654veryclean: clean 655 ${RM} -f Makefile config.h config_p.h 656 ${RM} -f config.status config.cache config.log tcsh.ps 657 ${RM} -f missing 658 ${RM} -rf autom4te.cache 659 ${RM} -f *~ #* 660 661distclean: veryclean 662 663cleandir: veryclean 664 665tags: /tmp 666 ${CTAGS} sh*.c 667 668tar.Z: 669 rm -f tcsh-${VERSION}.tar.Z 670 rm -rf tcsh-${VERSION} 671 -mkdir tcsh-${VERSION} tcsh-${VERSION}/config tcsh-${VERSION}/tests 672 cp ${ALLSRCS} tcsh-${VERSION} 673 cp ${CONFSRCS} tcsh-${VERSION}/config 674 tar cf - nls/Makefile nls/?*/set?* | (cd tcsh-${VERSION}; tar xpf -) 675 tar cvf - tcsh-${VERSION} | compress > tcsh-${VERSION}.tar.Z 676 rm -rf tcsh-${VERSION} 677 678tar.gz: 679 rm -f tcsh-${VERSION}.tar.gz 680 rm -rf tcsh-${VERSION} 681 -mkdir tcsh-${VERSION} tcsh-${VERSION}/config tcsh-${VERSION}/tests 682 cp ${ALLSRCS} tcsh-${VERSION} 683 cp ${CONFSRCS} tcsh-${VERSION}/config 684 tar cf - nls/Makefile nls/?*/set?* | (cd tcsh-${VERSION}; tar xpf -) 685 tar cvf - tcsh-${VERSION} | gzip > tcsh-${VERSION}.tar.gz 686 rm -rf tcsh-${VERSION} 687 688shar: 689 rm -f tcsh-*.shar 690 rm -rf tcsh-${VERSION} 691 -mkdir tcsh-${VERSION} tcsh-${VERSION}/config tcsh-${VERSION}/tests 692 cp ${ALLSRCS} tcsh-${VERSION} 693 cp ${CONFSRCS} tcsh-${VERSION}/config 694 tar cf - nls/Makefile nls/?*/set?* | (cd tcsh-${VERSION}; tar xpf -) 695 MAKESHAR -v -n tcsh-${VERSION} tcsh-${VERSION} \ 696 tcsh-${VERSION}/?* tcsh-${VERSION}/config/?* \ 697 tcsh-${VERSION}/?*/set?* 698 rm -rf tcsh-${VERSION} 699 700catalogs: 701 @test "x${BUILD_CATALOGS}" = "xyes" && (cd nls; ${MAKE} catalogs) || exit 0 702 703tcsh-${VERSION}.tar.Z: 704 rm -rf tcsh-${VERSION} 705 rm -f tcsh-${VERSION}.tar tcsh-${VERSION}.tar.Z DIFFS.[123] 706 -mkdir tcsh-${VERSION} tcsh-${VERSION}/tests 707 ./MAKEDIFFS bsd 708 mv DIFFS.1 DIFFS.2 DIFFS.3 tcsh-${VERSION} 709 cp ${DISTSRCS} tcsh-${VERSION} 710 -mkdir tcsh-${VERSION}/config 711 cp ${CONFSRCS} tcsh-${VERSION}/config 712 cp Makefile tcsh-${VERSION}/Makefile.new 713 tar cf - nls/Makefile nls/?*/set?* | (cd tcsh-${VERSION}; tar xpf -) 714 tar cvf - tcsh-${VERSION} | compress > tcsh-${VERSION}.tar.Z 715 rm -rf tcsh-${VERSION} 716 717tcsh.tahoe-${VERSION}.tar.Z: 718 rm -rf tcsh.tahoe-${VERSION} 719 rm -f tcsh.tahoe-${VERSION}.tar tcsh.tahoe-${VERSION}.tar.Z DIFFS.[123] 720 -mkdir tcsh.tahoe-${VERSION} 721 ./MAKEDIFFS tahoe 722 mv DIFFS.1 DIFFS.2 DIFFS.3 tcsh.tahoe-${VERSION} 723 cp ${DISTSRCS} tcsh.tahoe-${VERSION} 724 -mkdir tcsh.tahoe-${VERSION}/config 725 cp ${CONFSRCS} tcsh.tahoe-${VERSION}/config 726 cp Makefile tcsh.tahoe-${VERSION}/Makefile.new 727 tar cf - nls/Makefile nls/?*/set?* | (cd tcsh-${VERSION}; tar xpf -) 728 tar cvf - tcsh.tahoe-${VERSION} | compress > tcsh.tahoe-${VERSION}.tar.Z 729 rm -rf tcsh.tahoe-${VERSION} 730 731tcsh.reno-${VERSION}.tar.Z: 732 rm -rf tcsh.reno-${VERSION} 733 rm -f tcsh.reno-${VERSION}.tar tcsh.reno-${VERSION}.tar.Z DIFFS.[123] 734 -mkdir tcsh.reno-${VERSION} 735 ./MAKEDIFFS reno 736 mv DIFFS.1 DIFFS.2 DIFFS.3 tcsh.reno-${VERSION} 737 cp ${DISTSRCS} tcsh.reno-${VERSION} 738 -mkdir tcsh.reno-${VERSION}/config 739 cp ${CONFSRCS} tcsh.reno-${VERSION}/config 740 cp Makefile tcsh.reno-${VERSION}/Makefile.new 741 tar cf - nls/Makefile nls/?*/set?* | (cd tcsh-${VERSION}; tar xpf -) 742 tar cvf - tcsh.reno-${VERSION} | compress > tcsh.reno-${VERSION}.tar.Z 743 rm -rf tcsh.reno-${VERSION} 744 745ftp: tcsh-${VERSION}.tar.Z tcsh.tahoe-${VERSION}.tar.Z 746 cp tcsh-${VERSION}.tar.Z tcsh.tahoe-${VERSION}.tar.Z ${FTPAREA} 747 cp tcsh.man ${FTPAREA} 748 749autoconfigure: $(srcdir)/configure $(srcdir)/config.h.in 750 751$(srcdir)/configure: $(srcdir)/configure.in 752 cd $(srcdir) && autoconf 753 754$(srcdir)/config.h.in: $(srcdir)/stamp-h.in 755$(srcdir)/stamp-h.in: $(srcdir)/configure.in 756 cd $(srcdir) && autoheader 757 @echo timestamp > $(srcdir)/stamp-h.in 758 759check: atconfig $(srcdir)/tests/testsuite 760 $(SHELL) $(srcdir)/tests/testsuite 761 762# 763# Dependencies 764# 765config.h: config_f.h 766 767TCH=tc.h tc.const.h tc.decls.h tc.nls.h tc.os.h tc.sig.h 768SHH=sh.h sh.types.h sh.char.h sh.err.h sh.dir.h sh.proc.h pathnames.h \ 769 sh.decls.h ${TCH} 770TWH=tw.h tw.decls.h 771EDH=ed.h ed.decls.h 772 773# EDH 774EDINC=sh.${SUF} sh.func.${SUF} sh.lex.${SUF} sh.print.${SUF} sh.proc.${SUF} \ 775 sh.set.${SUF} tc.bind.${SUF} tc.os.${SUF} tc.prompt.${SUF} \ 776 tc.sched.${SUF} tw.parse.${SUF} tw.color.${SUF} 777${EDOBJS} ${EDINC} : ${EDH} 778 779# SHH 780${OBJS}: config.h ${SHH} 781 782# TWH 783TWINC=ed.chared.${SUF} ed.inputl.${SUF} sh.exec.${SUF} sh.func.${SUF} \ 784 sh.set.${SUF} tc.func.${SUF} tc.nls.${SUF} tw.color.${SUF} 785${TWOBJS} ${TWINC}: ${TWH} 786 787# glob.h 788glob.${SUF} sh.glob.${SUF}: glob.h 789 790# ed.defns.h 791EDDINC=tc.bind.${SUF} tc.func.${SUF} tc.os.${SUF} 792${EDOBJS} ${EDDINC}: ed.defns.h 793 794# tc.defs.o 795tc.defs.${SUF}: tc.defs.c sh.h 796