Makefile.in revision 167465
1167465Smp# $tcsh: Makefile.in,v 3.36 2006/08/24 20:56:31 christos Exp $ 259243Sobrien# Makefile.in 4.3 6/11/83 359243Sobrien# 459243Sobrien# C Shell with process control; VM/UNIX VAX Makefile 559243Sobrien# Bill Joy UC Berkeley; Jim Kulp IIASA, Austria 659243Sobrien# 759243Sobrien# With an input editor, command completion, etc. and ported to all sorts of 859243Sobrien# things; Paul Placeway, CIS Dept., Ohio State University 959243Sobrien# 1059243SobrienSHELL=/bin/sh 11167465SmpVERSION=@PACKAGE_VERSION@ 12131962SmpBUILD=tcsh$(EXEEXT) 1359243SobrienVPATH=@srcdir@ 1459243Sobriensrcdir=@srcdir@ 1559243Sobrien 1659243Sobrien################################################################ 1759243Sobrien## CFLAGS. For various -D things, see config.h 1859243Sobrien################################################################ 1959243Sobrien# 2059243Sobrien# These are the default suffixes from .c to .o and -c to get there 2159243Sobrien# but to use the global optimizer on the mips boxes, see below 2259243Sobrien# 2359243SobrienSUF=o 2459243SobrienCF=-c 2559243Sobrien 2659243SobrienCPPFLAGS=-I. -I$(srcdir) 2759243Sobrien 2859243SobrienLFLAGS= 2959243Sobrien#LFLAGS= -Zn10000 # hpux lint 3059243Sobrien 3159243Sobrien 3259243SobrienCFLAGS = @CFLAGS@ # This is set by autoconf. 3359243Sobrien#CFLAGS= -g # debug 3459243Sobrien#CFLAGS= -O # production 3559243Sobrien#CFLAGS= # Broken optimizers.... 3659243Sobrien 3759243Sobrien#CFLAGS= -g -pg -DPROF 3859243Sobrien#CFLAGS= -O -pg -DPROF 3959243Sobrien 4059243Sobrien# gcc 1.00-1.37 4159243Sobrien#CFLAGS= -O -finline-functions -fstrength-reduce 4259243Sobrien 4359243Sobrien# gcc 1.37-1.40 4459243Sobrien#CFLAGS= -O -fcombine-regs -finline-functions -fstrength-reduce 4559243Sobrien# add -msoft-float for 68881 machines. 4659243Sobrien 4759243Sobrien# gcc 2.0 4859243Sobrien# On the sparc, don't use -O2; it breaks setjmp() and vfork() 4959243Sobrien#CFLAGS= -O 5059243Sobrien 5159243Sobrien# gcc-2.1+ 5259243Sobrien#CFLAGS= -O2 5359243Sobrien 5459243Sobrien# lucid c on suns 5559243Sobrien#CFLAGS= -O5 5659243Sobrien 5759243Sobrien# gcc 2.1 on linux 5859243Sobrien#CFLAGS= -O6 -fomit-frame-pointer 5959243Sobrien 6059243Sobrien# HP/UX 8.0, 9.0 6159243Sobrien#CFLAGS= +O3 -Aa 6259243Sobrien 6359243Sobrien# Ultrix 4.2a 6459243Sobrien#CFLAGS= -O -Olimit 2000 6559243Sobrien 6659243Sobrien# Intel Paragon OSF/1 with PGI compilers 6759243Sobrien#CFLAGS= -O -Mnodebug -Mnoperfmon 6859243Sobrien 6959243Sobrien# DEC Alpha OSF/1 7059243Sobrien#CFLAGS= -O2 -Olimit 2000 ## Normal Optimization 7159243Sobrien#CFLAGS= -O3 -Olimit 2000 ## Full Optimization - may not work 7259243Sobrien#CF=-j 7359243Sobrien#SUF=u 7459243Sobrien#.SUFFIXES: .u 7559243Sobrien 7659243Sobrien# for silicon graphics (and other mips compilers) -- use the 7759243Sobrien# global optimizer! (-O3). 7859243Sobrien# On SGI 4.0+ you need to add -D__STDC__ too. 7959243Sobrien#CFLAGS= -O3 8059243Sobrien#CFLAGS= -O3 -Olimit 2000 ## Ultrix 4.2a 8159243Sobrien#CF=-j 8259243Sobrien#SUF=u 8359243Sobrien#.SUFFIXES: .u ## Ultrix and gnu-make need that 8459243Sobrien 8559243Sobrien# mips systems 8659243Sobrien# CFLAGS= -O -systype bsd43 -Wf,-XNd5000 -Wf,-XNp6000 -Olimit 2000 8759243Sobrien 8859243Sobrien# for at&t machines 8959243Sobrien#CFLAGS= -O -Ksd 9059243Sobrien 9159243Sobrien# Stardent Titan 9259243Sobrien#CFLAGS = -O -43 9359243Sobrien 9459243Sobrien# Stardent Stellar or sunos4 /bin/cc or Solaris2.1 /opt/SUNWspro/bin/cc 9559243Sobrien#CFLAGS = -O4 9659243Sobrien 9759243Sobrien# Intergraph clipper CLIX 3.1 9859243Sobrien#CFLAGS= -w -O2 9959243Sobrien 10059243Sobrien# Dnix 5.3 10159243Sobrien#CFLAGS = -O -X7 10259243Sobrien 10359243Sobrien# Pyramid OS/x 10459243Sobrien#CFLAGS = -OG 10559243Sobrien 10659243Sobrien# Multiflow (5M binary... if you choose -O5!) 10759243Sobrien#CFLAGS = -O5 -sb_trace 0 10859243Sobrien 10959243Sobrien# DDE Supermax Unix SYSV Rel III. 11059243Sobrien# CFLAGS= -O3 11159243Sobrien 11259243Sobrien# SINIX RMx00 11359243Sobrien#CFLAGS= -O # -D_POSIX_SOURCE # -kansi 11459243Sobrien 11559243Sobrien# Apollo's with cc [apollo builtins don't work with gcc] 11659243Sobrien# and apollo should not define __STDC__ if it does not have 11759243Sobrien# the standard header files. RT's (aos4.3) need that too; 11859243Sobrien# you might want to skip the -O on the rt's... Not very wise. 11959243Sobrien# AIX/ESA needs -D_IBMESA on command line (this may disappear by GA) 12059243Sobrien#DFLAGS=-U__STDC__ 12159243Sobrien#DFLAGS=-D_IBMESA 12259243Sobrien# On aix2.2.1 we need more compiler space. 12359243Sobrien#DFLAGS=-Nd4000 -Nn3000 12459243Sobrien# AU/X 2.0 needs a flag for POSIX (read the config file) 12559243Sobrien#DFLAGS=-Zp 12659243Sobrien# Tektronix 4300 running UTek 4.0 (BSD 4.2) needs: 12759243Sobrien#DFLAGS = -DUTek -DBSD 12859243Sobrien# VMS_POSIX needs: 12959243Sobrien#DFLAGS=-D_VMS_POSIX 13059243Sobrien# Multiflow and PCC compilers don't like void typedefs. 13159243Sobrien# You may also need -U__STDC__ if you use pcc (i.e. ibmrt aos4.3). 13259243Sobrien#DFLAGS=-DMULTIFLOW 13359243Sobrien#DFLAGS=-DPCC 13459243Sobrien# DELL SVR4 13559243Sobrien#DFLAGS=-DDELL 13659243Sobrien#DFLAGS= 13759243Sobrien#DFLAGS=-D_PATH_TCSHELL='"${DESTBIN}/tcsh"' 13859243Sobrien## The following is set by autoconf. 139131962SmpDFLAGS = -D_PATH_TCSHELL='"${bindir}/tcsh"' @DFLAGS@ @CPPFLAGS@ 14059243Sobrien 14159243Sobrien 14259243Sobrien################################################################ 14359243Sobrien## LDFLAGS. Define something here if you need to 14459243Sobrien################################################################ 14559243SobrienLDFLAGS= @LDFLAGS@ ## This is set by autoconf. 14659243Sobrien#LDFLAGS= ## The simplest, suitable for all. 14759243Sobrien#LDFLAGS= -s ## Stripped. Takes less space on disk. 14859243Sobrien#LDFLAGS= -s -n ## Pure executable. Spares paging over 14959243Sobrien# ## the network for machines with local 15059243Sobrien# ## swap but external /usr/local/bin . 15159243Sobrien#LDFLAGS= -s -n -Bstatic ## Without dynamic linking. (SunOS/cc) 15259243Sobrien#LDFLAGS= -s -n -static ## Without dynamic linking. (SunOS/gcc) 15359243Sobrien#LDFLAGS= -Wl,-s,-n ## Stripped, shared text (Unicos) 15459243Sobrien#LDFLAGS= -s -static ## Link statically. (linux) 15559243Sobrien#LDFLAGS= -s -N ## Impure executable (linux) 15659243Sobrien 15759243Sobrien################################################################ 15859415Sobrien## SBINLDFLAGS. Flags to build a tcsh suitable for installation in 15959415Sobrien## in /sbin under Solaris with gcc. See the "tcsh.sbin" 16059415Sobrien## target. 16159415Sobrien################################################################ 16259415SobrienSBINLDFLAGS=-Wl,-R/etc/lib,-I/etc/lib/ld.so.1,-ldl,-Bstatic 16359415Sobrien 16459415Sobrien################################################################ 16559243Sobrien## LIBES. Pick one, or roll your own. 16659243Sobrien################################################################ 16759243SobrienLIBES= @LIBS@ ## This is set by autoconf. 16859243Sobrien#LIBES= -ltermcap ## BSD style things 16959243Sobrien#LIBES= -ltermcap ## SunOS, HP-UX, pyramid 17059243Sobrien#LIBES= -ltermcap ## Linux 17159243Sobrien#LIBES= -ltermcap -lshadow ## Linux with PW_SHADOW 17259243Sobrien#LIBES= -ltermcap -lsec ## Tek XD88/10 (UTekV) with PW_SHADOW 17359243Sobrien#LIBES= -ltermcap -lsec ## Motorola MPC (sysV88) with PW_SHADOW 17459243Sobrien#LIBES= -ltermcap -lcs ## Mach 17559243Sobrien#LIBES= -ltermcap -lbsd ## DEC osf1 on the alpha 17659243Sobrien#LIBES= -ltermcap -lbsd ## Intel paragon 17759243Sobrien#LIBES= -ltermcap -lbsd ## Clipper intergraph 17859243Sobrien#LIBES= -ltermcap -lseq ## Sequent's Dynix 17959243Sobrien#LIBES= -ltermcap -lauth ## Ultrix with Enhanced Security 18059243Sobrien#LIBES= -ltermcap -ldir -lx ## Xenix 386 style things 18159243Sobrien#LIBES= -ltermcap -lndir -lsocket -ljobs ## masscomp RTU6.0 18259243Sobrien#LIBES= -lcurses ## AIX on the rt 18359243Sobrien#LIBES= -lcurses ## TitanOS on the stellar 18459243Sobrien#LIBES= -ltermlib -lsocket -lnsl ## SysV4 w/o BSDTIMES or Solaris 2 18559243Sobrien#LIBES= -lcurses ## SysV3 w/o networking 18659243Sobrien#LIBES= -lcurses -lnet ## SysV3 with networking 18759243Sobrien#LIBES= -lcurses -ldir ## SysV2 w/o networking & dirlib 18859243Sobrien#LIBES= -lcurses -ldir -lnet ## SysV2 with networking & dirlib 18959243Sobrien#LIBES= -lcurses -lbsd ## AIX on the IBM 370 or rs6000 or ps2 19059243Sobrien#LIBES= -lcurses -lbsd ## ETA10 19159243Sobrien#LIBES= -lcurses -lbsd ## Irix3.1 on the SGI-IRIS4D 19259243Sobrien#LIBES= -lcurses -lbsd -lc_s ## Irix3.3 on the SGI-IRIS4D w/o yp 19359243Sobrien#LIBES= -lcurses -lsun -lbsd -lc_s ## Irix3.3 on the SGI-IRIS4D with yp 19459243Sobrien#LIBES= -lcurses -lsocket -lbsd ## Amdahl UTS 2.1 19559243Sobrien#LIBES= -lcurses -lsocket ## Intel's hypercube. 19659243Sobrien#LIBES= -lcurses -lsocket ## ns32000 based Opus. 19759243Sobrien#LIBES= -lcurses -lcposix ## ISC 2.2 without networking 19859243Sobrien#LIBES= -lcposix -lc_s -lcurses -linet ## ISC 2.2 with networking 19959243Sobrien#LIBES= -lcurses -lsec -lc_s ## ISC 2.0.2 without networking 20059243Sobrien#LIBES= -lcurses -linet -lsec -lc_s ## ISC 2.0.2 with networking 20159243Sobrien#LIBES= -lcurses -lintl -lcrypt ## SCO SysVR3.2v2.0 20259243Sobrien#LIBES= -lcurses -lintl -lsocket -lcrypt ## SCO+ODT1.1 20359243Sobrien#LIBES= -lposix -ltermcap ## A/UX 2.0 20459243Sobrien#LIBES= -lposix -ltermcap -lc_s ## A/UX 3.0 20559243Sobrien#LIBES= -ldirent -lcurses ## att3b1 cc w/o shared lib & dirlib 20659243Sobrien#LIBES= -shlib -ldirent -lcurses ## att3b1 gcc with shared lib & dirlib 20759243Sobrien#LIBES= -ltermlib -lsocket -lnsl -lc /usr/ucblib/libucb.a ## SysV4 with BSDTIMES 20859243Sobrien#LIBES= -lcurses -lnsl -lsocket -lc /usr/ucblib/libucb.a ## Stardent Vistra 20959243Sobrien#LIBES= -ltermc ## emx under OS/2 21059243Sobrien#LIBES= ## Minix, VMS_POSIX 21159243Sobrien#LIBES= -ltermcap -lcrypt ## Multiflow 21259243Sobrien#LIBES= -ltermcap -lcrypt ## NetBSD 21359243Sobrien#LIBES= -lcurses ## DDE Supermax 21459243Sobrien 21559243Sobrien################################################################ 21659243Sobrien## EXTRAFLAGS and EXTRALIBS 21759243Sobrien################################################################ 21859243Sobrien# Compiling for AFS with kerberos authentication 21959243Sobrien#AFSLIBDIR = /usr/afsws/lib 22059243Sobrien#AFSDEF = -DAFS -I/usr/afsws/include 22159243Sobrien#AFS33LIB = -laudit 22259243Sobrien# 22359243Sobrien#Solaris and HPUX require the BSD libraries with AFS. 22459243Sobrien#We use -lc to use only what we require. 22559243Sobrien#AFSAUXLIB = -lsocket -lnsl -lc -lucb # Solaris 22659243Sobrien#AFSAUXLIB = -lc -lBSD # HPUX 22759243Sobrien# 22859243Sobrien#AFSLIB = -L$(AFSLIBDIR) -L$(AFSLIBDIR)/afs -lkauth -lprot -lubik\ 22959243Sobrien# -lauth -lrxkad -lsys -ldes -lrx -llwp -lcom_err\ 23059243Sobrien# $(AFSLIBDIR)/afs/util.a $(AFS33LIB) $(AFSAUXLIB) 23159243Sobrien# 23259243Sobrien 23359243SobrienEXTRAFLAGS = @HESDEF@ $(AFSDEF) 234167465SmpEXTRALIBS = @HESLIB@ $(AFSLIB) @LIBICONV@ 23559243Sobrien 23659243Sobrien 237167465Smp 23859243Sobrien# The difficult choice of a c-compiler... 23959243Sobrien# First, you should try your own c-compiler. 24059243Sobrien# Gcc -traditional is also a safe choice. 24159243Sobrien# If you think that you have good include files try gcc -Wall... 24259243Sobrien# If you want to take out -traditional, make sure that your sys/ioctl.h 24359243Sobrien# is fixed correctly, otherwise you'll be stopped for tty input, or you 24459243Sobrien# will lose the editor and job control. 24559243Sobrien 24659243Sobrien# This is for setting your C preprocessor value. 24759243SobrienCPP = @CPP@ # This is set by autoconf. 24859243Sobrien# The -B tells gcc to use /bin/ld. This is to avoid using the gnu ld, which 24959243Sobrien# on the suns does not know how to make dynamically linked binaries. 25059243SobrienCC = @CC@ # This is set by autoconf. 251145479Smp#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 25259243Sobrien#CC= gcc -Wall -pipe -B/bin/ # -ansi -pedantic 25359243Sobrien#CC= gcc -m486 -pipe -Wall # Generate code for Intel 486 (linux) 25459243Sobrien#CC= shlicc # BSDI2.1 w/ shared libraries 25559243Sobrien#CC= cc 25659243Sobrien#CC= occ 25759243Sobrien#CC= acc 25859243Sobrien#CC= pcc 25959243Sobrien#CC= hc -w 26059243Sobrien#CC= c89 # For VMS/POSIX 26159243Sobrien#CC= /bin/cc # For suns, w/o gcc and SVR4 26259243Sobrien#CC= /usr/lib/sun.compile/cc # FPS 500 (+FPX) with Sun C compiler 26359243Sobrien#CC= /opt/SUNWspro/bin/cc # Solaris 2.1 26459243Sobrien#CC= scc # Alliant fx2800 26559243Sobrien#CC= cc -h0,ansi,novector,float0 # for NEC SX-4 26659243Sobrien#CC= lcc -wa 26759243SobrienED= ed 26859243SobrienAS= as 26959243SobrienRM= rm 27059243SobrienCXREF= /usr/ucb/cxref 27159243SobrienVGRIND= csh /usr/ucb/vgrind 27259243SobrienCTAGS= /usr/ucb/ctags 27359243Sobrien#XSTR= /usr/ucb/xstr 27459243SobrienSCCS= /usr/local/sccs 27559243SobrienPARALLEL=12 # Make the multi-max run fast. 27659243Sobrien#P=& # Use Sequent's parallel make 27759243SobrienP= 27859243Sobrienprefix=@prefix@ 27959243Sobrienexec_prefix=@exec_prefix@ 28059243Sobrienbindir=@bindir@ 28159243Sobrienmandir=@mandir@ 28259243SobrienMANSECT=1 28359243SobrienDESTBIN=${DESTDIR}${bindir} 28459243SobrienDESTMAN=${DESTDIR}${mandir}/man${MANSECT} 28559243Sobrien# DESTMAN=${DESTDIR}/catman/man${MANSECT} # A/UX 28659243Sobrien# DESTMAN=${DESTDIR}/usr/share/man/man${MANSECT} # Stardent Vistra (SysVR4) 28759243Sobrien# DESTMAN=/usr/catman/1l # Amiga unix (SysVR4) 288131962SmpEXEEXT=@EXEEXT@ 28959243SobrienFTPAREA=/usr/spool/ftp 29059243Sobrien 29159243SobrienASSRCS= sh.c sh.dir.c sh.dol.c sh.err.c sh.exec.c sh.char.c \ 29259243Sobrien sh.exp.c sh.file.c sh.func.c sh.glob.c sh.hist.c sh.init.c \ 29359243Sobrien sh.lex.c sh.misc.c sh.parse.c sh.print.c sh.proc.c sh.sem.c \ 29459243Sobrien sh.set.c sh.time.c sh.char.h sh.dir.h sh.proc.h sh.h \ 29559243Sobrien tw.color.c 29659243SobrienPSSRCS= sh.decls.h glob.c glob.h mi.termios.c mi.wait.h mi.varargs.h ma.setp.c \ 29759243Sobrien vms.termcap.c 29859243SobrienSHSRCS= ${ASSRCS} ${PSSRCS} 29959243SobrienSHOBJS= sh.${SUF} sh.dir.${SUF} sh.dol.${SUF} sh.err.${SUF} sh.exec.${SUF} \ 300100616Smp sh.char.${SUF} sh.exp.${SUF} sh.file.${SUF} sh.func.${SUF} \ 301100616Smp sh.glob.${SUF} sh.hist.${SUF} sh.init.${SUF} sh.lex.${SUF} \ 302100616Smp sh.misc.${SUF} sh.parse.${SUF} sh.print.${SUF} sh.proc.${SUF} \ 303100616Smp sh.sem.${SUF} sh.set.${SUF} sh.time.${SUF} glob.${SUF} \ 304100616Smp mi.termios.${SUF} ma.setp.${SUF} vms.termcap.${SUF} 30559243Sobrien 30659243SobrienTWSRCS= tw.decls.h tw.h tw.help.c tw.init.c tw.parse.c tw.spell.c \ 30759243Sobrien tw.comp.c tw.color.c 30859243SobrienTWOBJS= tw.help.${SUF} tw.init.${SUF} tw.parse.${SUF} tw.spell.${SUF} \ 30959243Sobrien tw.comp.${SUF} tw.color.${SUF} 31059243Sobrien 31159243SobrienEDSRCS= ed.chared.c ed.decls.h ed.defns.c ed.h ed.init.c ed.inputl.c \ 31259243Sobrien ed.refresh.c ed.screen.c ed.xmap.c ed.term.c ed.term.h 31359243SobrienEDOBJS= ed.chared.${SUF} ed.refresh.${SUF} ed.screen.${SUF} ed.init.${SUF} \ 31459243Sobrien ed.inputl.${SUF} ed.defns.${SUF} ed.xmap.${SUF} ed.term.${SUF} 31559243Sobrien 31659243SobrienTCSRCS= tc.alloc.c tc.bind.c tc.const.c tc.decls.h tc.disc.c \ 317145479Smp tc.func.c tc.nls.c tc.os.c tc.os.h tc.printf.c tc.prompt.c \ 31859243Sobrien tc.sched.c tc.sig.c tc.sig.h tc.str.c sh.types.h tc.vers.c tc.wait.h \ 31959243Sobrien tc.who.c tc.h 32059243SobrienTCOBJS= tc.alloc.${SUF} tc.bind.${SUF} tc.const.${SUF} tc.defs.${SUF} \ 321145479Smp tc.disc.${SUF} tc.func.${SUF} tc.nls.${SUF} tc.os.${SUF} tc.printf.${SUF} \ 32259243Sobrien tc.prompt.${SUF} tc.sched.${SUF} tc.sig.${SUF} tc.str.${SUF} \ 32359243Sobrien tc.vers.${SUF} tc.who.${SUF} 32459243Sobrien 32559243SobrienPVSRCS= Makefile.std Makefile.vms Makefile.in Makefile.win32 32659243SobrienAVSRCS= Fixes MAKEDIFFS MAKESHAR NewThings README FAQ \ 32759243Sobrien WishList config_f.h eight-bit.me glob.3 patchlevel.h \ 32859243Sobrien pathnames.h tcsh.man Ported src.desc Imakefile imake.config \ 32959243Sobrien README.imake complete.tcsh vmsreadme.txt termcap.vms snames.h \ 330167465Smp host.defs gethost.c tcsh.man2html configure.in configure config.h.in \ 331167465Smp tests/testsuite.at 332167465SmpTESTFILES= tests/aliases.at tests/arguments.at tests/commands.at \ 333167465Smp tests/expr.at tests/lexical.at tests/mb-eucjp.at tests/mb-utf8.at \ 334167465Smp tests/noexec.at tests/syntax.at tests/subst.at tests/variables.at \ 335167465Smp tests/sh.dol.at 33659243Sobrien 33759243SobrienVHSRCS=${PVSRCS} ${AVSRCS} 33859243Sobrien 33959243SobrienCONFSRCS=config/* 34059243Sobrien 34159243SobrienALLSRCS= ${SHSRCS} ${TWSRCS} ${EDSRCS} ${TCSRCS} ${VHSRCS} 342167465SmpDISTSRCS= ${PSSRCS} ${TWSRCS} ${EDSRCS} ${TCSRCS} ${AVSRCS} $(TESTFILES) 34359243Sobrien 34459243Sobrien 34559243SobrienOBJS= ${SHOBJS} ${TWOBJS} ${EDOBJS} ${TCOBJS} 34659243Sobrien 34759243Sobrien 34859243Sobrienall: ${BUILD} 34959243Sobrien 350131962Smptcsh$(EXEEXT):$(P) ${OBJS} 351131962Smp rm -f tcsh$(EXEEXT) core 352131962Smp ${CC} -o tcsh$(EXEEXT) ${LDFLAGS} ${CFLAGS} ${CPPFLAGS} ${OBJS} ${LIBES} ${EXTRALIBS} 35359243Sobrien 35459415Sobrientcsh.sbin:$(P) ${OBJS} 35559415Sobrien rm -f tcsh.sbin core 35659415Sobrien ${CC} -o tcsh.sbin ${SBINLDFLAGS} ${LDFLAGS} ${CFLAGS} ${CPPFLAGS} ${OBJS} ${LIBES} ${EXTRALIBS} 35759415Sobrien 35859243Sobrien# Purify 35959243Sobrienpure:$(P) ${OBJS} 360131962Smp rm -f tcsh$(EXEEXT) core 361131962Smp purify `echo ${CC} | sed -e s,-B/bin/,,` -o tcsh$(EXEEXT) ${LDFLAGS} ${CFLAGS} ${CPPFLAGS} ${OBJS} ${LIBES} ${EXTRALIBS} 36259243Sobrien# OS/2 363131962Smp#tcsh.exe: tcsh 364131962Smp# emxbind tcsh 36559243Sobrien 36659243Sobriengethost: gethost.c sh.err.h tc.const.h sh.h 36759243Sobrien rm -f gethost 36859243Sobrien ${CC} -o gethost ${LDFLAGS} ${CFLAGS} ${CPPFLAGS} ${DFLAGS} $(srcdir)/gethost.c ${LIBES} ${EXTRALIBS} 36959243Sobrien 37059243Sobrientc.defs.c: gethost host.defs 371167465Smp @rm -f $@.tmp 372167465Smp @echo "/* Do not edit this file, make creates it */" > $@.tmp 373167465Smp ./gethost $(srcdir)/host.defs >> $@.tmp 374167465Smp @if [ -f $@ ] && cmp -s $@.tmp $@; then echo $@ unchanged.; rm -f $@.tmp; else mv -f $@.tmp $@; echo $@ recreated.; fi 37559243Sobrien 37659243Sobrientcsh.ps: tcsh.man 37759243Sobrien rm -f tcsh.ps 37859243Sobrien -ptroff -t -man $(srcdir)/tcsh.man > tcsh.ps 37959243Sobrien 38059243Sobrien.c.${SUF}: 38159243Sobrien ${CC} ${CF} ${CFLAGS} ${CPPFLAGS} ${DFLAGS} ${EXTRAFLAGS} $< 38259243Sobrien 383167465Smp.SUFFIXES: .s .i 384167465Smp 385167465Smp.c.i: 386167465Smp ${CC} -E ${CFLAGS} ${CPPFLAGS} ${DFLAGS} ${EXTRAFLAGS} $< | cat -s > $@ 387167465Smp 388167465Smp.c.s: 389167465Smp ${CC} -S ${CFLAGS} ${CPPFLAGS} ${DFLAGS} ${EXTRAFLAGS} $< 390167465Smp 39159243Sobrien# _VMS_POSIX #module addition 39259243Sobrien#.c.${SUF}: 39359243Sobrien# @(echo '#module '`echo $< | sed -e 's/\./_/g'`; cat $<) > $*..c 39459243Sobrien# @echo ${CC} ${CF} ${CFLAGS} ${CPPFLAGS} ${DFLAGS} ${EXTRAFLAGS} $*.c 39559243Sobrien# @${CC} ${CF} ${CFLAGS} ${CPPFLAGS} ${DFLAGS} ${EXTRAFLAGS} $*..c 39659243Sobrien# @mv $*..o $*.o 39759243Sobrien# @rm -f $*..c 39859243Sobrien 39959243Sobrien 40059243Sobrien# Don't do any special massaging of C files for sharing of strings!! 40159243Sobrien# it causes weird segmentation faults on some systems. 40259243Sobrien#.c.o: 40359243Sobrien# ${CPP} ${CFLAGS} ${CPPFLAGS} $*.c | ${XSTR} -c - 40459243Sobrien# ${CC} ${CF} ${CFLAGS} ${CPPFLAGS} x.c 40559243Sobrien# mv -f x.o $*.o 40659243Sobrien# rm -f x.c 40759243Sobrien 40859243Sobrien#ed.init.o: ed.init.c 40959243Sobrien# ${CPP} ${CFLAGS} ${CPPFLAGS} $*.c | ${XSTR} -c - 41059243Sobrien# ${CC} -R ${CF} ${CFLAGS} ${CPPFLAGS} x.c 41159243Sobrien# mv -f x.o $*.o 41259243Sobrien# rm -f x.c 41359243Sobrien 41459243Sobrien#strings.o: strings 41559243Sobrien# ${XSTR} 41659243Sobrien# ${CC} -c -R xs.c 41759243Sobrien# mv -f xs.o strings.o 41859243Sobrien# rm -f xs.c 41959243Sobrien 42059243Sobrien##.DEFAULT: 42159243Sobrien## ${SCCS} get $< 42259243Sobrien 42359243Sobrien##.DEFAULT: 42459243Sobrien## co $< 42559243Sobrien 42659243Sobriened.defns.h: ed.defns.c 427167465Smp @rm -f $@.tmp 428167465Smp @echo '/* Do not edit this file, make creates it. */' > $@.tmp 429167465Smp @echo '#ifndef _h_ed_defns' >> $@.tmp 430167465Smp @echo '#define _h_ed_defns' >> $@.tmp 431167465Smp grep '[FV]_' $(srcdir)/ed.defns.c | grep '^#define' >> $@.tmp 432167465Smp @echo '#endif /* _h_ed_defns */' >> $@.tmp 433167465Smp @if [ -f $@ ] && cmp -s $@.tmp $@; then echo $@ unchanged.; rm -f $@.tmp; else mv -f $@.tmp $@; echo $@ recreated.; fi 43459243Sobrien 43559243Sobriensh.err.h: sh.err.c 436167465Smp @rm -f $@.tmp 437167465Smp @echo '/* Do not edit this file, make creates it. */' > $@.tmp 438167465Smp @echo '#ifndef _h_sh_err' >> $@.tmp 439167465Smp @echo '#define _h_sh_err' >> $@.tmp 440167465Smp grep 'ERR_' $(srcdir)/sh.err.c | grep '^#define' >> $@.tmp 441167465Smp @echo '#endif /* _h_sh_err */' >> $@.tmp 442167465Smp @if [ -f $@ ] && cmp -s $@.tmp $@; then echo $@ unchanged.; rm -f $@.tmp; else mv -f $@.tmp $@; echo $@ recreated.; fi 44359243Sobrien 44459243Sobrientc.const.h: tc.const.c sh.char.h config.h config_f.h sh.types.h sh.err.h 445167465Smp @rm -f $@.tmp 446167465Smp @echo '/* Do not edit this file, make creates it. */' > $@.tmp 447167465Smp @echo '#ifndef _h_tc_const' >> $@.tmp 448167465Smp @echo '#define _h_tc_const' >> $@.tmp 44959243Sobrien ${CPP} $(CPPFLAGS) ${DFLAGS} ${EXTRAFLAGS} -D_h_tc_const\ 450145479Smp $(srcdir)/tc.const.c | \ 451145479Smp sed -n -e 's/^\(Char STR[a-zA-Z0-9_]*\) *\[ *\].*/extern \1[];/p' | \ 452167465Smp sort >> $@.tmp 453167465Smp @echo '#endif /* _h_tc_const */' >> $@.tmp 454167465Smp @if [ -f $@ ] && cmp -s $@.tmp $@; then echo $@ unchanged.; rm -f $@.tmp; else mv -f $@.tmp $@; echo $@ recreated.; fi 45559243Sobrien 456167465Smp$(srcdir)/tests/package.m4: $(srcdir)/configure.in 457167465Smp { \ 458167465Smp echo '# Signature of the current package.'; \ 459167465Smp echo 'm4_define([AT_PACKAGE_NAME], [@PACKAGE_NAME@])'; \ 460167465Smp echo 'm4_define([AT_PACKAGE_TARNAME], [@PACKAGE_TARNAME@])'; \ 461167465Smp echo 'm4_define([AT_PACKAGE_VERSION], [@PACKAGE_VERSION@])'; \ 462167465Smp echo 'm4_define([AT_PACKAGE_STRING], [@PACKAGE_STRING@])'; \ 463167465Smp echo 'm4_define([AT_PACKAGE_BUGREPORT], [@PACKAGE_BUGREPORT@])'; \ 464167465Smp } >$(srcdir)/tests/package.m4 465167465Smp 466167465Smp$(srcdir)/tests/testsuite: tests/package.m4 tests/testsuite.at $(TESTFILES) 467167465Smp autom4te --language=autotest -I $(srcdir)/tests \ 468167465Smp $(srcdir)/tests/testsuite.at -o $@.tmp 469167465Smp mv $@.tmp $@ 470167465Smp 471167465Smpatconfig: config.status 472167465Smp $(SHELL) ./config.status ./atconfig 473167465Smp 474167465Smp 47559243Sobriencsh.prof: ${OBJS} sh.prof.${SUF} mcrt0.${SUF} 47659243Sobrien rm -f csh.prof 47759243Sobrien ld -X mcrt0.${SUF} ${OBJS} -o csh.prof ${LIBES} -lc 47859243Sobrien 47959243Sobriensh.prof.${SUF}: 48059243Sobrien cp sh.c sh.prof.c 48159243Sobrien ${CC} ${CF} ${CFLAGS} ${CPPFLAGS} -DPROF sh.prof.c 48259243Sobrien 48359243Sobrienlint: tc.const.h ed.defns.h 48459243Sobrien lint ${DFLAGS} ${CPPFLAGS} ${LFLAGS} sh*.c tw*.c ed*.c tc.*.c ${LIBES} 48559243Sobrien 48659243Sobrienalint: tc.const.h ed.defns.h 48759243Sobrien alint ${DFLAGS} ${CPPFLAGS} ${LFLAGS} sh*.c tw*.c ed*.c tc.*.c ${LIBES} 48859243Sobrien 48959243Sobrienprint: 49059243Sobrien @pr READ_ME 49159243Sobrien @pr makefile makefile.* 49259243Sobrien @(size -l a.out; size *.${SUF}) | pr -h SIZES 49359243Sobrien @${CXREF} sh*.c | pr -h XREF 49459243Sobrien @ls -l | pr 49559243Sobrien @pr sh*.h [a-rt-z]*.h sh*.c alloc.c 49659243Sobrien 49759243Sobrienvprint: 49859243Sobrien @pr -l84 READ_ME TODO 49959243Sobrien @pr -l84 makefile makefile.* 50059243Sobrien @(size -l a.out; size *.${SUF}) | pr -l84 -h SIZES 50159243Sobrien @${CXREF} sh*.c | pr -l84 -h XREF 50259243Sobrien @ls -l | pr -l84 50359243Sobrien @${CXREF} sh*.c | pr -l84 -h XREF 50459243Sobrien @pr -l84 sh*.h [a-rt-z]*.h sh*.c alloc.c 50559243Sobrien 50659243Sobrienvgrind: 50759243Sobrien @cp /dev/null index 50859243Sobrien @for i in *.h; do vgrind -t -h "C Shell" $$i >/crp/bill/csh/$$i.t; done 50959243Sobrien @for i in *.c; do vgrind -t -h "C Shell" $$i >/crp/bill/csh/$$i.t; done 51059243Sobrien @vgrind -t -x -h Index index >/crp/bill/csh/index.t 51159243Sobrien 51259243Sobrieninstall-strip: install 51359243Sobrien 514131962Smpinstall: tcsh$(EXEEXT) 51569408Sache -mkdir -p ${DESTBIN} 516131962Smp -mv -f ${DESTBIN}/tcsh$(EXEEXT) ${DESTBIN}/tcsh.old 517131962Smp cp tcsh$(EXEEXT) ${DESTBIN}/tcsh$(EXEEXT) 518131962Smp -strip ${DESTBIN}/tcsh$(EXEEXT) 519131962Smp chmod 755 ${DESTBIN}/tcsh$(EXEEXT) 52059243Sobrien 52159243Sobrieninstall.man: tcsh.man 52269408Sache -mkdir -p ${DESTMAN} 52359243Sobrien -rm -f ${DESTMAN}/tcsh.${MANSECT} 52459243Sobrien cp $(srcdir)/tcsh.man ${DESTMAN}/tcsh.${MANSECT} 52559243Sobrien chmod 444 ${DESTMAN}/tcsh.${MANSECT} 52659243Sobrien 527131962Smpinstall.cygwin: install install.man 528167465Smp -mkdir -p ${DESTDIR}${prefix}/share/doc/tcsh 529167465Smp cp ${srcdir}/FAQ ${srcdir}/Fixes ${DESTDIR}${prefix}/share/doc/tcsh 530167465Smp cp ${srcdir}/NewThings ${srcdir}/README ${DESTDIR}${prefix}/share/doc/tcsh 531167465Smp cp ${srcdir}/WishList ${srcdir}/Y2K ${DESTDIR}${prefix}/share/doc/tcsh 532131962Smp perl ${srcdir}/tcsh.man2html ${srcdir}/tcsh.man 533167465Smp cp -rp tcsh.html ${DESTDIR}${prefix}/share/doc/tcsh 534131962Smp -mkdir -p ${DESTDIR}/etc/profile.d 535131962Smp -mkdir -p ${DESTDIR}/etc/postinstall 536131962Smp cp -p ${srcdir}/cygwin/etc/csh.* ${DESTDIR}/etc 537131962Smp cp -p ${srcdir}/cygwin/etc/profile.d/*.tcsh ${DESTDIR}/etc/profile.d 538131962Smp cp -p ${srcdir}/cygwin/etc/postinstall/tcsh.sh ${DESTDIR}/etc/postinstall 539131962Smp 54059243Sobrien# Amiga Unix 54159243Sobrien#install.man: tcsh.man 54259243Sobrien# compress tcsh.man 54359243Sobrien# cp tcsh.man.Z ${DESTMAN}/tcsh.Z 54459243Sobrien# chmod 444 ${DESTMAN}/tcsh.Z 54559243Sobrien 54659243Sobrien# Apple A/UX 54759243Sobrien#install.man: tcsh.man 54859243Sobrien# -rm -f ${DESTMAN}/tcsh.${MANSECT}.Z 54959243Sobrien# nroff -man tcsh.man | compress > ${DESTMAN}/tcsh.${MANSECT}.Z 55059243Sobrien# chmod 444 ${DESTMAN}/tcsh.${MANSECT}.Z 55159243Sobrien 55259243Sobrienclean: 553145479Smp ${RM} -f a.out strings x.c xs.c tcsh$(EXEEXT) tcsh.a _MAKE_LOG gethost 554167465Smp ${RM} -f *.${SUF} *.i *.s 555167465Smp ${RM} -f sh.prof.c ed.defns.h tc.const.h sh.err.h tc.defs.c 55659243Sobrien ${RM} -f tcsh.*.m tcsh.*.cat 55759243Sobrien 55859243Sobrienveryclean: clean 559145479Smp ${RM} -f Makefile config.h config_p.h 560145479Smp ${RM} -f config.status config.cache config.log tcsh.ps 561145479Smp ${RM} -f missing 562145479Smp ${RM} -rf autom4te.cache 56359243Sobrien ${RM} -f *~ #* 56459243Sobrien 56559243Sobriendistclean: veryclean 56659243Sobrien 567167465Smpcleandir: veryclean 568167465Smp 56959243Sobrientags: /tmp 57059243Sobrien ${CTAGS} sh*.c 57159243Sobrien 57259243Sobrientar.Z: 57359243Sobrien rm -f tcsh-${VERSION}.tar.Z 57459243Sobrien rm -rf tcsh-${VERSION} 575167465Smp -mkdir tcsh-${VERSION} tcsh-${VERSION}/config tcsh-${VERSION}/tests 57659243Sobrien cp ${ALLSRCS} tcsh-${VERSION} 57759243Sobrien cp ${CONFSRCS} tcsh-${VERSION}/config 57859243Sobrien tar cf - nls/Makefile nls/?*/set?* | (cd tcsh-${VERSION}; tar xpf -) 57959243Sobrien tar cvf - tcsh-${VERSION} | compress > tcsh-${VERSION}.tar.Z 58059243Sobrien rm -rf tcsh-${VERSION} 58159243Sobrien 58259243Sobrientar.gz: 58359243Sobrien rm -f tcsh-${VERSION}.tar.gz 58459243Sobrien rm -rf tcsh-${VERSION} 585167465Smp -mkdir tcsh-${VERSION} tcsh-${VERSION}/config tcsh-${VERSION}/tests 58659243Sobrien cp ${ALLSRCS} tcsh-${VERSION} 58759243Sobrien cp ${CONFSRCS} tcsh-${VERSION}/config 58859243Sobrien tar cf - nls/Makefile nls/?*/set?* | (cd tcsh-${VERSION}; tar xpf -) 58959243Sobrien tar cvf - tcsh-${VERSION} | gzip > tcsh-${VERSION}.tar.gz 59059243Sobrien rm -rf tcsh-${VERSION} 59159243Sobrien 59259243Sobrienshar: 59359243Sobrien rm -f tcsh-*.shar 59459243Sobrien rm -rf tcsh-${VERSION} 595167465Smp -mkdir tcsh-${VERSION} tcsh-${VERSION}/config tcsh-${VERSION}/tests 59659243Sobrien cp ${ALLSRCS} tcsh-${VERSION} 59759243Sobrien cp ${CONFSRCS} tcsh-${VERSION}/config 59859243Sobrien tar cf - nls/Makefile nls/?*/set?* | (cd tcsh-${VERSION}; tar xpf -) 59959243Sobrien MAKESHAR -v -n tcsh-${VERSION} tcsh-${VERSION} \ 60059243Sobrien tcsh-${VERSION}/?* tcsh-${VERSION}/config/?* \ 60159243Sobrien tcsh-${VERSION}/?*/set?* 60259243Sobrien rm -rf tcsh-${VERSION} 60359243Sobrien 60459243Sobriencatalogs: 60559243Sobrien @(cd nls; make catalogs) 60659243Sobrien 60759243Sobrientcsh-${VERSION}.tar.Z: 60859243Sobrien rm -rf tcsh-${VERSION} 60959243Sobrien rm -f tcsh-${VERSION}.tar tcsh-${VERSION}.tar.Z DIFFS.[123] 610167465Smp -mkdir tcsh-${VERSION} tcsh-${VERSION}/tests 61159243Sobrien ./MAKEDIFFS bsd 61259243Sobrien mv DIFFS.1 DIFFS.2 DIFFS.3 tcsh-${VERSION} 61359243Sobrien cp ${DISTSRCS} tcsh-${VERSION} 61469408Sache -mkdir tcsh-${VERSION}/config 61559243Sobrien cp ${CONFSRCS} tcsh-${VERSION}/config 61659243Sobrien cp Makefile tcsh-${VERSION}/Makefile.new 61759243Sobrien tar cf - nls/Makefile nls/?*/set?* | (cd tcsh-${VERSION}; tar xpf -) 61859243Sobrien tar cvf - tcsh-${VERSION} | compress > tcsh-${VERSION}.tar.Z 61959243Sobrien rm -rf tcsh-${VERSION} 62059243Sobrien 62159243Sobrientcsh.tahoe-${VERSION}.tar.Z: 62259243Sobrien rm -rf tcsh.tahoe-${VERSION} 62359243Sobrien rm -f tcsh.tahoe-${VERSION}.tar tcsh.tahoe-${VERSION}.tar.Z DIFFS.[123] 62469408Sache -mkdir tcsh.tahoe-${VERSION} 62559243Sobrien ./MAKEDIFFS tahoe 62659243Sobrien mv DIFFS.1 DIFFS.2 DIFFS.3 tcsh.tahoe-${VERSION} 62759243Sobrien cp ${DISTSRCS} tcsh.tahoe-${VERSION} 62869408Sache -mkdir tcsh.tahoe-${VERSION}/config 62959243Sobrien cp ${CONFSRCS} tcsh.tahoe-${VERSION}/config 63059243Sobrien cp Makefile tcsh.tahoe-${VERSION}/Makefile.new 63159243Sobrien tar cf - nls/Makefile nls/?*/set?* | (cd tcsh-${VERSION}; tar xpf -) 63259243Sobrien tar cvf - tcsh.tahoe-${VERSION} | compress > tcsh.tahoe-${VERSION}.tar.Z 63359243Sobrien rm -rf tcsh.tahoe-${VERSION} 63459243Sobrien 63559243Sobrientcsh.reno-${VERSION}.tar.Z: 63659243Sobrien rm -rf tcsh.reno-${VERSION} 63759243Sobrien rm -f tcsh.reno-${VERSION}.tar tcsh.reno-${VERSION}.tar.Z DIFFS.[123] 63869408Sache -mkdir tcsh.reno-${VERSION} 63959243Sobrien ./MAKEDIFFS reno 64059243Sobrien mv DIFFS.1 DIFFS.2 DIFFS.3 tcsh.reno-${VERSION} 64159243Sobrien cp ${DISTSRCS} tcsh.reno-${VERSION} 64269408Sache -mkdir tcsh.reno-${VERSION}/config 64359243Sobrien cp ${CONFSRCS} tcsh.reno-${VERSION}/config 64459243Sobrien cp Makefile tcsh.reno-${VERSION}/Makefile.new 64559243Sobrien tar cf - nls/Makefile nls/?*/set?* | (cd tcsh-${VERSION}; tar xpf -) 64659243Sobrien tar cvf - tcsh.reno-${VERSION} | compress > tcsh.reno-${VERSION}.tar.Z 64759243Sobrien rm -rf tcsh.reno-${VERSION} 64859243Sobrien 64959243Sobrienftp: tcsh-${VERSION}.tar.Z tcsh.tahoe-${VERSION}.tar.Z 65059243Sobrien cp tcsh-${VERSION}.tar.Z tcsh.tahoe-${VERSION}.tar.Z ${FTPAREA} 65159243Sobrien cp tcsh.man ${FTPAREA} 65259243Sobrien 65359243Sobrienautoconfigure: $(srcdir)/configure $(srcdir)/config.h.in 65459243Sobrien 65559243Sobrien$(srcdir)/configure: $(srcdir)/configure.in 65659243Sobrien cd $(srcdir) && autoconf 65759243Sobrien 65859243Sobrien$(srcdir)/config.h.in: $(srcdir)/stamp-h.in 65959243Sobrien$(srcdir)/stamp-h.in: $(srcdir)/configure.in 66059243Sobrien cd $(srcdir) && autoheader 66159243Sobrien @echo timestamp > $(srcdir)/stamp-h.in 66259243Sobrien 663167465Smpcheck: atconfig $(srcdir)/tests/testsuite 664167465Smp $(SHELL) $(srcdir)/tests/testsuite 665167465Smp 66659243Sobrien# 66759243Sobrien# Dependencies 66859243Sobrien# 66959243Sobrienconfig.h: config_f.h 67059243Sobrien 671145479SmpTCH=tc.h tc.const.h tc.decls.h tc.nls.h tc.os.h tc.sig.h 67259243SobrienSHH=sh.h sh.types.h sh.char.h sh.err.h sh.dir.h sh.proc.h pathnames.h \ 67359243Sobrien sh.decls.h ${TCH} 67459243SobrienTWH=tw.h tw.decls.h 67559243SobrienEDH=ed.h ed.decls.h 67659243Sobrien 67759243Sobrien# EDH 67859243SobrienEDINC=sh.${SUF} sh.func.${SUF} sh.lex.${SUF} sh.print.${SUF} sh.proc.${SUF} \ 67959243Sobrien sh.set.${SUF} tc.bind.${SUF} tc.os.${SUF} tc.prompt.${SUF} \ 68059243Sobrien tc.sched.${SUF} tw.parse.${SUF} tw.color.${SUF} 68159243Sobrien${EDOBJS} ${EDINC} : ${EDH} 68259243Sobrien 68359243Sobrien# SHH 68459243Sobrien${OBJS}: config.h ${SHH} 68559243Sobrien 68659243Sobrien# TWH 68759243SobrienTWINC=ed.chared.${SUF} ed.inputl.${SUF} sh.exec.${SUF} sh.func.${SUF} \ 688145479Smp sh.set.${SUF} tc.func.${SUF} tc.nls.${SUF} tw.color.${SUF} 68959243Sobrien${TWOBJS} ${TWINC}: ${TWH} 69059243Sobrien 69159243Sobrien# glob.h 69259243Sobrienglob.${SUF} sh.glob.${SUF}: glob.h 69359243Sobrien 69459243Sobrien# ed.defns.h 69559243SobrienEDDINC=tc.bind.${SUF} tc.func.${SUF} tc.os.${SUF} 69659243Sobrien${EDOBJS} ${EDDINC}: ed.defns.h 69759243Sobrien 69859243Sobrien# tc.defs.o 69959243Sobrientc.defs.${SUF}: tc.defs.c sh.h 700