source: trunk/third/tcsh/Makefile.in @ 13553

Revision 13553, 19.8 KB checked in by ghudson, 25 years ago (diff)
Create install directories.
Line 
1# $Id: Makefile.in,v 1.4 1999-09-02 14:44:49 ghudson Exp $
2#       Makefile.in     4.3     6/11/83
3#
4# C Shell with process control; VM/UNIX VAX Makefile
5# Bill Joy UC Berkeley; Jim Kulp IIASA, Austria
6#
7# With an input editor, command completion, etc. and ported to all sorts of
8# things; Paul Placeway, CIS Dept., Ohio State University
9#
10SHELL=/bin/sh
11VERSION=6.08
12BUILD=tcsh
13VPATH=@srcdir@
14srcdir=@srcdir@
15
16################################################################
17## CFLAGS.  For various -D things, see config.h
18################################################################
19#
20# These are the default suffixes from .c to .o and -c to get there
21# but to use the global optimizer on the mips boxes, see below
22#
23SUF=o
24CF=-c
25
26INCLUDES=-I. -I$(srcdir)
27
28LFLAGS=$(INCLUDES)
29#LFLAGS=$(INCLUDES) -Zn10000            # hpux lint
30
31
32CFLAGS = $(INCLUDES) @CFLAGS@           # This is set by autoconf.
33#CFLAGS= $(INCLUDES) -g                 # debug
34#CFLAGS= $(INCLUDES) -O                 # production
35#CFLAGS= $(INCLUDES)                    # Broken optimizers....
36
37#CFLAGS= -g -pg $(INCLUDES) -DPROF
38#CFLAGS= -O -pg $(INCLUDES) -DPROF
39
40# gcc 1.00-1.37
41#CFLAGS=-O $(INCLUDES) -finline-functions -fstrength-reduce
42
43# gcc 1.37-1.40
44#CFLAGS=-O $(INCLUDES) -fcombine-regs -finline-functions -fstrength-reduce
45# add -msoft-float for 68881 machines.
46
47# gcc 2.0
48# On the sparc, don't use -O2; it breaks setjmp() and vfork()
49#CFLAGS=-O $(INCLUDES)
50
51# gcc-2.1+
52#CFLAGS=-O2 $(INCLUDES)
53
54# lucid c on suns
55#CFLAGS=-O5 $(INCLUDES)
56
57# gcc 2.1 on linux
58#CFLAGS=-O6 -fomit-frame-pointer $(INCLUDES)
59
60# HP/UX 8.0, 9.0
61#CFLAGS= $(INCLUDES) +O3 -Aa
62
63# Ultrix 4.2a
64#CFLAGS= $(INCLUDES) -O -Olimit 2000
65
66# Intel Paragon OSF/1 with PGI compilers
67#CFLAGS=-O -Mnodebug -Mnoperfmon $(INCLUDES)
68
69# DEC Alpha OSF/1
70#CFLAGS= -O2 $(INCLUDES) -Olimit 2000   ## Normal Optimization
71#CFLAGS= -O3 $(INCLUDES) -Olimit 2000   ## Full Optimization - may not work
72#CF=-j
73#SUF=u
74#.SUFFIXES: .u
75
76# for silicon graphics (and other mips compilers) -- use the
77# global optimizer! (-O3).
78# On SGI 4.0+ you need to add -D__STDC__ too.
79#CFLAGS= -O3 $(INCLUDES)
80#CFLAGS= -O3 $(INCLUDES) -Olimit 2000   ## Ultrix 4.2a
81#CF=-j
82#SUF=u
83#.SUFFIXES: .u                          ## Ultrix and gnu-make need that
84
85# mips systems
86# CFLAGS= $(INCLUDES) -O -systype bsd43 -Wf,-XNd5000 -Wf,-XNp6000 -Olimit 2000
87
88# for at&t machines
89#CFLAGS= -O -Ksd $(INCLUDES)
90
91# Stardent Titan
92#CFLAGS = $(INCLUDES) -O -43
93
94# Stardent Stellar or sunos4 /bin/cc or Solaris2.1 /opt/SUNWspro/bin/cc
95#CFLAGS = $(INCLUDES) -O4
96
97# Intergraph clipper CLIX 3.1
98#CFLAGS= -w -O2 $(INCLUDES)
99
100# Dnix 5.3
101#CFLAGS = -O -X7
102
103# Pyramid OS/x
104#CFLAGS = -OG
105
106# Multiflow (5M binary... if you choose -O5!)
107#CFLAGS = -O5 -sb_trace 0
108
109# DDE Supermax Unix SYSV Rel III.
110# CFLAGS= -O3
111
112# SINIX RMx00
113#CFLAGS= -O # -D_POSIX_SOURCE # -kansi
114
115# Apollo's with cc [apollo builtins don't work with gcc]
116# and apollo should not define __STDC__ if it does not have
117# the standard header files. RT's (aos4.3) need that too;
118# you might want to skip the -O on the rt's... Not very wise.
119# AIX/ESA needs -D_IBMESA on command line (this may disappear by GA)
120#DFLAGS=-U__STDC__
121#DFLAGS=-D_IBMESA
122# On aix2.2.1 we need more compiler space.
123#DFLAGS=-Nd4000 -Nn3000
124# AU/X 2.0 needs a flag for POSIX (read the config file)
125#DFLAGS=-Zp
126# Tektronix 4300 running UTek 4.0 (BSD 4.2) needs:
127#DFLAGS = -DUTek -DBSD
128# VMS_POSIX needs:
129#DFLAGS=-D_VMS_POSIX
130# Multiflow and PCC compilers don't like void typedefs.
131# You may also need -U__STDC__ if you use pcc (i.e. ibmrt aos4.3).
132#DFLAGS=-DMULTIFLOW
133#DFLAGS=-DPCC
134# DELL SVR4
135#DFLAGS=-DDELL
136#DFLAGS=
137#DFLAGS=-D_PATH_TCSHELL='"${DESTBIN}/tcsh"'
138## The following is set by autoconf.
139DFLAGS = -D_PATH_TCSHELL='"${DESTBIN}/tcsh"' @DFLAGS@ @CPPFLAGS@
140
141
142################################################################
143## LDFLAGS.  Define something here if you need to
144################################################################
145LDFLAGS= @LDFLAGS@              ## This is set by autoconf.
146#LDFLAGS=                       ## The simplest, suitable for all.
147#LDFLAGS= -s                    ## Stripped. Takes less space on disk.
148#LDFLAGS= -s -n                 ## Pure executable. Spares paging over
149#                               ## the network for machines with local
150#                               ## swap but external /usr/local/bin .
151#LDFLAGS= -s -n -Bstatic        ## Without dynamic linking. (SunOS/cc)
152#LDFLAGS= -s -n -static         ## Without dynamic linking. (SunOS/gcc)
153#LDFLAGS= -Wl,-s,-n             ## Stripped, shared text (Unicos)
154#LDFLAGS= -s -static            ## Link statically. (linux)
155#LDFLAGS= -s -N                 ## Impure executable (linux)
156
157################################################################
158## LIBES.  Pick one, or roll your own.
159################################################################
160LIBES= @LIBS@                            ## This is set by autoconf.
161#LIBES= -ltermcap                        ## BSD style things
162#LIBES= -ltermcap                        ## SunOS, HP-UX, pyramid
163#LIBES= -ltermcap                        ## Linux
164#LIBES= -ltermcap -lshadow               ## Linux with PW_SHADOW
165#LIBES= -ltermcap -lsec                  ## Tek XD88/10 (UTekV) with PW_SHADOW
166#LIBES= -ltermcap -lsec                  ## Motorola MPC (sysV88) with PW_SHADOW
167#LIBES= -ltermcap -lcs                   ## Mach
168#LIBES= -ltermcap -lbsd                  ## DEC osf1 on the alpha
169#LIBES= -ltermcap -lbsd                  ## Intel paragon
170#LIBES= -ltermcap -lbsd                  ## Clipper intergraph
171#LIBES= -ltermcap -lseq                  ## Sequent's Dynix
172#LIBES= -ltermcap -lauth                 ## Ultrix with Enhanced Security
173#LIBES= -ltermcap -ldir -lx              ## Xenix 386 style things
174#LIBES= -ltermcap -lndir -lsocket -ljobs ## masscomp RTU6.0
175#LIBES= -lcurses                         ## AIX on the rt
176#LIBES= -lcurses                         ## TitanOS on the stellar
177#LIBES= -ltermlib -lsocket -lnsl         ## SysV4 w/o BSDTIMES or Solaris 2
178#LIBES= -lcurses                         ## SysV3 w/o networking
179#LIBES= -lcurses -lnet                   ## SysV3 with networking
180#LIBES= -lcurses -ldir                   ## SysV2 w/o networking & dirlib
181#LIBES= -lcurses -ldir -lnet             ## SysV2 with networking & dirlib
182#LIBES= -lcurses -lbsd                   ## AIX on the IBM 370 or rs6000 or ps2
183#LIBES= -lcurses -lbsd                   ## ETA10
184#LIBES= -lcurses -lbsd                   ## Irix3.1 on the SGI-IRIS4D
185#LIBES= -lcurses -lbsd -lc_s             ## Irix3.3 on the SGI-IRIS4D w/o yp
186#LIBES= -lcurses -lsun -lbsd -lc_s       ## Irix3.3 on the SGI-IRIS4D with yp
187#LIBES= -lcurses -lsocket -lbsd          ## Amdahl UTS 2.1
188#LIBES= -lcurses -lsocket                ## Intel's hypercube.
189#LIBES= -lcurses -lsocket                ## ns32000 based Opus.
190#LIBES= -lcurses -lcposix                ## ISC 2.2 without networking
191#LIBES= -lcposix -lc_s -lcurses -linet   ## ISC 2.2 with networking
192#LIBES= -lcurses -lsec -lc_s             ## ISC 2.0.2 without networking
193#LIBES= -lcurses -linet -lsec -lc_s      ## ISC 2.0.2 with networking
194#LIBES= -lcurses -lintl -lcrypt          ## SCO SysVR3.2v2.0
195#LIBES= -lcurses -lintl -lsocket -lcrypt ## SCO+ODT1.1
196#LIBES= -lposix -ltermcap                ## A/UX 2.0
197#LIBES= -lposix -ltermcap -lc_s          ## A/UX 3.0
198#LIBES= -ldirent -lcurses                ## att3b1 cc w/o shared lib & dirlib
199#LIBES= -shlib -ldirent -lcurses         ## att3b1 gcc with shared lib & dirlib
200#LIBES= -ltermlib -lsocket -lnsl -lc /usr/ucblib/libucb.a ## SysV4 with BSDTIMES
201#LIBES= -lcurses -lnsl -lsocket -lc /usr/ucblib/libucb.a ## Stardent Vistra
202#LIBES= -ltermc                          ## emx under OS/2
203#LIBES=                                  ## Minix, VMS_POSIX
204#LIBES= -ltermcap -lcrypt                ## Multiflow
205#LIBES= -ltermcap -lcrypt                ## NetBSD
206#LIBES= -lcurses                         ## DDE Supermax
207
208################################################################
209## EXTRAFLAGS and EXTRALIBS
210################################################################
211# Compiling for HESIOD
212HESDEF = -DHESIOD -I$(ATHTOOLROOT)/usr/athena/include
213HESLIB = -L$(ATHTOOLROOT)/usr/athena/lib -lhesiod @HES_RES_LIB@
214#
215# Compiling for AFS with kerberos authentication
216#AFSLIBDIR = /usr/afsws/lib
217#AFSDEF = -DAFS -I/usr/afsws/include
218#AFS33LIB = -laudit
219#
220#Solaris and HPUX require the BSD libraries with AFS.
221#We use -lc to use only what we require.
222#AFSAUXLIB = -lsocket -lnsl -lc -lucb                    # Solaris
223#AFSAUXLIB = -lc -lBSD                                   # HPUX   
224#
225#AFSLIB = -L$(AFSLIBDIR) -L$(AFSLIBDIR)/afs -lkauth -lprot -lubik\
226#         -lauth -lrxkad -lsys -ldes -lrx -llwp -lcom_err\
227#         $(AFSLIBDIR)/afs/util.a $(AFS33LIB) $(AFSAUXLIB)
228#
229
230EXTRAFLAGS = $(HESDEF) $(AFSDEF)
231EXTRALIBS = $(HESLIB) $(AFSLIB)
232
233
234# The difficult choice of a c-compiler...
235# First, you should try your own c-compiler.
236# Gcc -traditional is also a safe choice.
237# If you think that you have good include files try gcc -Wall...
238# If you want to take out -traditional, make sure that your sys/ioctl.h
239# is fixed correctly, otherwise you'll be stopped for tty input, or you
240# will lose the editor and job control.
241
242# This is for setting your C preprocessor value.
243CPP = @CPP@ # This is set by autoconf.
244# The -B tells gcc to use /bin/ld. This is to avoid using the gnu ld, which
245# on the suns does not know how to make dynamically linked binaries.
246CC = @CC@ # This is set by autoconf.
247#CC=    gcc -Wall -pipe -B/bin/ # -ansi -pedantic
248#CC=    gcc -m486 -pipe -Wall # Generate code for Intel 486 (linux)
249#CC=    shlicc  # BSDI2.1 w/ shared libraries
250#CC=    cc
251#CC=    occ
252#CC=    acc
253#CC=    pcc
254#CC=    hc -w
255#CC=    c89     # For VMS/POSIX
256#CC=    /bin/cc # For suns, w/o gcc and SVR4
257#CC=    /usr/lib/sun.compile/cc  # FPS 500 (+FPX) with Sun C compiler
258#CC=    /opt/SUNWspro/bin/cc    # Solaris 2.1
259#CC=    scc     # Alliant fx2800
260#CC=    lcc     -wa
261ED=     ed
262AS=     as
263RM=     rm
264CXREF=  /usr/ucb/cxref
265VGRIND= csh /usr/ucb/vgrind
266CTAGS=  /usr/ucb/ctags
267#XSTR= /usr/ucb/xstr
268SCCS=   /usr/local/sccs
269PARALLEL=12                             # Make the multi-max run fast.
270#P=&                                    # Use Sequent's parallel make
271P=
272prefix=@prefix@
273exec_prefix=@exec_prefix@
274bindir=@bindir@
275lbindir=@lbindir@
276MANSECT=1
277DESTBIN=${DESTDIR}${lbindir}
278DESTMAN=${DESTDIR}${prefix}/man/man${MANSECT}
279# DESTMAN=${DESTDIR}/catman/man${MANSECT}        # A/UX
280# DESTMAN=${DESTDIR}/usr/share/man/man${MANSECT} # Stardent Vistra (SysVR4)
281# DESTMAN=/usr/catman/1l                         # Amiga unix (SysVR4)
282FTPAREA=/usr/spool/ftp
283
284ASSRCS= sh.c sh.dir.c sh.dol.c sh.err.c sh.exec.c sh.char.c \
285        sh.exp.c sh.file.c sh.func.c sh.glob.c sh.hist.c sh.init.c \
286        sh.lex.c sh.misc.c sh.parse.c sh.print.c sh.proc.c sh.sem.c \
287        sh.set.c sh.time.c sh.char.h sh.dir.h sh.proc.h sh.h \
288        tw.color.c
289PSSRCS= sh.decls.h glob.c glob.h mi.termios.c mi.wait.h mi.varargs.h ma.setp.c \
290        vms.termcap.c
291SHSRCS= ${ASSRCS} ${PSSRCS}
292SHOBJS= sh.${SUF} sh.dir.${SUF} sh.dol.${SUF} sh.err.${SUF} sh.exec.${SUF} \
293        sh.char.${SUF} sh.exp.${SUF} sh.func.${SUF} sh.glob.${SUF} \
294        sh.hist.${SUF} sh.init.${SUF} sh.lex.${SUF} sh.misc.${SUF} \
295        sh.parse.${SUF} sh.print.${SUF} sh.proc.${SUF} sh.sem.${SUF} \
296        sh.set.${SUF} sh.time.${SUF} glob.${SUF} mi.termios.${SUF} \
297        ma.setp.${SUF} vms.termcap.${SUF}
298
299TWSRCS= tw.decls.h tw.h tw.help.c tw.init.c tw.parse.c tw.spell.c \
300        tw.comp.c tw.color.c
301TWOBJS= tw.help.${SUF} tw.init.${SUF} tw.parse.${SUF} tw.spell.${SUF} \
302        tw.comp.${SUF} tw.color.${SUF}
303
304EDSRCS= ed.chared.c ed.decls.h ed.defns.c ed.h ed.init.c ed.inputl.c \
305        ed.refresh.c ed.screen.c ed.xmap.c ed.term.c ed.term.h
306EDOBJS= ed.chared.${SUF} ed.refresh.${SUF} ed.screen.${SUF} ed.init.${SUF} \
307        ed.inputl.${SUF} ed.defns.${SUF} ed.xmap.${SUF} ed.term.${SUF}
308
309TCSRCS= tc.alloc.c tc.bind.c tc.const.c tc.decls.h tc.disc.c \
310        tc.func.c tc.os.c tc.os.h tc.printf.c tc.prompt.c \
311        tc.sched.c tc.sig.c tc.sig.h tc.str.c sh.types.h tc.vers.c tc.wait.h \
312        tc.who.c tc.h
313TCOBJS= tc.alloc.${SUF} tc.bind.${SUF} tc.const.${SUF} tc.defs.${SUF} \
314        tc.disc.${SUF} tc.func.${SUF} tc.os.${SUF} tc.printf.${SUF} \
315        tc.prompt.${SUF} tc.sched.${SUF} tc.sig.${SUF} tc.str.${SUF} \
316        tc.vers.${SUF} tc.who.${SUF}
317
318PVSRCS= Makefile.std Makefile.vms Makefile.in Makefile.win32
319AVSRCS= Fixes MAKEDIFFS MAKESHAR NewThings README FAQ \
320        WishList config_f.h eight-bit.me glob.3 patchlevel.h \
321        pathnames.h tcsh.man Ported src.desc Imakefile imake.config \
322        README.imake complete.tcsh vmsreadme.txt termcap.vms snames.h \
323        host.defs gethost.c tcsh.man2html configure.in configure config.h.in
324
325VHSRCS=${PVSRCS} ${AVSRCS}
326
327CONFSRCS=config/*
328
329ALLSRCS=  ${SHSRCS} ${TWSRCS} ${EDSRCS} ${TCSRCS} ${VHSRCS}
330DISTSRCS= ${PSSRCS} ${TWSRCS} ${EDSRCS} ${TCSRCS} ${AVSRCS}
331
332
333OBJS= ${SHOBJS} ${TWOBJS} ${EDOBJS} ${TCOBJS}
334
335
336all: ${BUILD}
337
338tcsh:$(P) ${OBJS}
339        rm -f tcsh core
340        ${CC} -o tcsh ${LDFLAGS} ${CFLAGS} ${OBJS} ${LIBES} ${EXTRALIBS}
341
342# Purify
343pure:$(P) ${OBJS}
344        rm -f tcsh core
345        purify `echo ${CC} | sed -e s,-B/bin/,,` -o tcsh ${LDFLAGS} ${CFLAGS} ${OBJS} ${LIBES} ${EXTRALIBS}
346# OS/2
347tcsh.exe: tcsh
348        emxbind tcsh
349
350gethost:  gethost.c sh.err.h tc.const.h sh.h
351        rm -f gethost
352        ${CC} -o gethost ${LDFLAGS} ${CFLAGS} ${DFLAGS} $(srcdir)/gethost.c ${LIBES} ${EXTRALIBS}
353
354tc.defs.c:      gethost host.defs
355        @rm -f $@
356        @echo "/* Do not edit this file, make creates it */" > $@
357        ./gethost $(srcdir)/host.defs >> $@
358
359tcsh.ps: tcsh.man
360        rm -f tcsh.ps
361        -ptroff -t -man $(srcdir)/tcsh.man > tcsh.ps
362
363
364.c.${SUF}:
365        ${CC} ${CF} ${CFLAGS} ${DFLAGS} ${EXTRAFLAGS} $<
366
367# _VMS_POSIX #module addition
368#.c.${SUF}:
369#       @(echo '#module '`echo $< | sed -e 's/\./_/g'`; cat $<) > $*..c
370#       @echo ${CC} ${CF} ${CFLAGS} ${DFLAGS} ${EXTRAFLAGS} $*.c
371#       @${CC} ${CF} ${CFLAGS} ${DFLAGS} ${EXTRAFLAGS} $*..c
372#       @mv $*..o $*.o
373#       @rm -f $*..c
374
375
376# Don't do any special massaging of C files for sharing of strings!!
377# it causes weird segmentation faults on some systems.
378#.c.o:
379#       ${CPP} ${CFLAGS} $*.c | ${XSTR} -c -
380#       ${CC} ${CF} ${CFLAGS} x.c
381#       mv -f x.o $*.o
382#       rm -f x.c
383
384#ed.init.o: ed.init.c
385#       ${CPP} ${CFLAGS} $*.c | ${XSTR} -c -
386#       ${CC} -R ${CF} ${CF} x.c
387#       mv -f x.o $*.o
388#       rm -f x.c
389
390#strings.o: strings
391#       ${XSTR}
392#       ${CC} -c -R xs.c
393#       mv -f xs.o strings.o
394#       rm -f xs.c
395
396##.DEFAULT:
397##      ${SCCS} get $<
398
399##.DEFAULT:
400##      co $<
401
402ed.defns.h: ed.defns.c
403        @rm -f $@
404        @echo '/* Do not edit this file, make creates it. */' > $@
405        @echo '#ifndef _h_ed_defns' >> $@
406        @echo '#define _h_ed_defns' >> $@
407        grep '[FV]_' $(srcdir)/ed.defns.c | grep '^#define' >> $@
408        @echo '#endif /* _h_ed_defns */' >> $@
409
410sh.err.h: sh.err.c
411        @rm -f $@
412        @echo '/* Do not edit this file, make creates it. */' > $@
413        @echo '#ifndef _h_sh_err' >> $@
414        @echo '#define _h_sh_err' >> $@
415        grep 'ERR_' $(srcdir)/sh.err.c | grep '^#define' >> $@
416        @echo '#endif /* _h_sh_err */' >> $@
417
418tc.const.h: tc.const.c sh.char.h config.h config_f.h sh.types.h sh.err.h
419        @rm -f $@
420        @echo '/* Do not edit this file, make creates it. */' > $@
421        @echo '#ifndef _h_tc_const' >> $@
422        @echo '#define _h_tc_const' >> $@
423        ${CPP} $(INCLUDES) ${DFLAGS} ${EXTRAFLAGS} -D_h_tc_const\
424            $(srcdir)/tc.const.c | grep 'Char STR' | \
425            sed -e 's/Char \([a-zA-Z0-9_]*\)\[\].*/extern Char \1[];/' | \
426            sort >> $@
427        @echo '#endif /* _h_tc_const */' >> $@
428
429csh.prof: ${OBJS} sh.prof.${SUF} mcrt0.${SUF}
430        rm -f csh.prof
431        ld -X mcrt0.${SUF} ${OBJS} -o csh.prof ${LIBES} -lc
432
433sh.prof.${SUF}:
434        cp sh.c sh.prof.c
435        ${CC} ${CF} ${CFLAGS} -DPROF sh.prof.c
436
437lint: tc.const.h ed.defns.h
438        lint ${DFLAGS} ${LFLAGS} sh*.c tw*.c ed*.c tc.*.c ${LIBES}
439
440alint: tc.const.h ed.defns.h
441        alint ${DFLAGS} ${LFLAGS} sh*.c tw*.c ed*.c tc.*.c ${LIBES}
442
443print:
444        @pr READ_ME
445        @pr makefile makefile.*
446        @(size -l a.out; size *.${SUF}) | pr -h SIZES
447        @${CXREF} sh*.c | pr -h XREF
448        @ls -l | pr
449        @pr sh*.h [a-rt-z]*.h sh*.c alloc.c
450
451vprint:
452        @pr -l84 READ_ME TODO
453        @pr -l84 makefile makefile.*
454        @(size -l a.out; size *.${SUF}) | pr -l84 -h SIZES
455        @${CXREF} sh*.c | pr -l84 -h XREF
456        @ls -l | pr -l84
457        @${CXREF} sh*.c | pr -l84 -h XREF
458        @pr -l84 sh*.h [a-rt-z]*.h sh*.c alloc.c
459
460vgrind:
461        @cp /dev/null index
462        @for i in *.h; do vgrind -t -h "C Shell" $$i >/crp/bill/csh/$$i.t; done
463        @for i in *.c; do vgrind -t -h "C Shell" $$i >/crp/bill/csh/$$i.t; done
464        @vgrind -t -x -h Index index >/crp/bill/csh/index.t
465
466install: tcsh
467        mkdir -p ${DESTBIN}
468        mkdir -p ${DESTMAN}
469        -rm -f ${DESTBIN}/tcsh
470        cp tcsh ${DESTBIN}/tcsh
471        chmod 555 ${DESTBIN}/tcsh
472        -rm -f ${DESTMAN}/tcsh.${MANSECT}
473        cp $(srcdir)/tcsh.man ${DESTMAN}/tcsh.${MANSECT}
474        chmod 444 ${DESTMAN}/tcsh.${MANSECT}
475
476# Amiga Unix
477#install.man: tcsh.man
478#        compress tcsh.man
479#       cp tcsh.man.Z ${DESTMAN}/tcsh.Z
480#       chmod 444 ${DESTMAN}/tcsh.Z
481
482# Apple A/UX
483#install.man: tcsh.man
484#       -rm -f ${DESTMAN}/tcsh.${MANSECT}.Z
485#       nroff -man tcsh.man | compress > ${DESTMAN}/tcsh.${MANSECT}.Z
486#       chmod 444 ${DESTMAN}/tcsh.${MANSECT}.Z
487
488clean:
489        ${RM} -f a.out strings x.c xs.c tcsh tcsh.a _MAKE_LOG core gethost
490        ${RM} -f *.${SUF} sh.prof.c ed.defns.h tc.const.h sh.err.h tc.defs.c
491        ${RM} -f tcsh.*.m tcsh.*.cat
492
493veryclean: clean
494        ${RM} -f config.h config.status config.cache config.log Makefile tcsh.ps
495        ${RM} -f *~ #*
496
497distclean: veryclean
498
499tags:   /tmp
500        ${CTAGS} sh*.c
501
502tar.Z:
503        rm -f tcsh-${VERSION}.tar.Z
504        rm -rf tcsh-${VERSION}
505        mkdir tcsh-${VERSION} tcsh-${VERSION}/config
506        cp ${ALLSRCS} tcsh-${VERSION}
507        cp ${CONFSRCS} tcsh-${VERSION}/config
508        tar cf - nls/Makefile nls/?*/set?* | (cd tcsh-${VERSION}; tar xpf -)
509        tar cvf - tcsh-${VERSION} | compress > tcsh-${VERSION}.tar.Z
510        rm -rf tcsh-${VERSION}
511
512tar.gz:
513        rm -f tcsh-${VERSION}.tar.gz
514        rm -rf tcsh-${VERSION}
515        mkdir tcsh-${VERSION} tcsh-${VERSION}/config
516        cp ${ALLSRCS} tcsh-${VERSION}
517        cp ${CONFSRCS} tcsh-${VERSION}/config
518        tar cf - nls/Makefile nls/?*/set?* | (cd tcsh-${VERSION}; tar xpf -)
519        tar cvf - tcsh-${VERSION} | gzip > tcsh-${VERSION}.tar.gz
520        rm -rf tcsh-${VERSION}
521
522shar:
523        rm -f tcsh-*.shar
524        rm -rf tcsh-${VERSION}
525        mkdir tcsh-${VERSION} tcsh-${VERSION}/config
526        cp ${ALLSRCS} tcsh-${VERSION}
527        cp ${CONFSRCS} tcsh-${VERSION}/config
528        tar cf - nls/Makefile nls/?*/set?* | (cd tcsh-${VERSION}; tar xpf -)
529        MAKESHAR -v -n tcsh-${VERSION} tcsh-${VERSION} \
530                 tcsh-${VERSION}/?* tcsh-${VERSION}/config/?* \
531                 tcsh-${VERSION}/?*/set?*
532        rm -rf tcsh-${VERSION}
533
534catalogs:
535        @(cd nls; make catalogs)
536
537tcsh-${VERSION}.tar.Z:
538        rm -rf tcsh-${VERSION}
539        rm -f tcsh-${VERSION}.tar tcsh-${VERSION}.tar.Z DIFFS.[123]
540        mkdir tcsh-${VERSION}
541        ./MAKEDIFFS bsd
542        mv DIFFS.1 DIFFS.2 DIFFS.3 tcsh-${VERSION}
543        cp ${DISTSRCS} tcsh-${VERSION}
544        mkdir tcsh-${VERSION}/config
545        cp ${CONFSRCS} tcsh-${VERSION}/config
546        cp Makefile tcsh-${VERSION}/Makefile.new
547        tar cf - nls/Makefile nls/?*/set?* | (cd tcsh-${VERSION}; tar xpf -)
548        tar cvf - tcsh-${VERSION} | compress > tcsh-${VERSION}.tar.Z
549        rm -rf tcsh-${VERSION}
550
551tcsh.tahoe-${VERSION}.tar.Z:
552        rm -rf tcsh.tahoe-${VERSION}
553        rm -f tcsh.tahoe-${VERSION}.tar tcsh.tahoe-${VERSION}.tar.Z DIFFS.[123]
554        mkdir tcsh.tahoe-${VERSION}
555        ./MAKEDIFFS tahoe
556        mv DIFFS.1 DIFFS.2 DIFFS.3 tcsh.tahoe-${VERSION}
557        cp ${DISTSRCS} tcsh.tahoe-${VERSION}
558        mkdir tcsh.tahoe-${VERSION}/config
559        cp ${CONFSRCS} tcsh.tahoe-${VERSION}/config
560        cp Makefile tcsh.tahoe-${VERSION}/Makefile.new
561        tar cf - nls/Makefile nls/?*/set?* | (cd tcsh-${VERSION}; tar xpf -)
562        tar cvf - tcsh.tahoe-${VERSION} | compress > tcsh.tahoe-${VERSION}.tar.Z
563        rm -rf tcsh.tahoe-${VERSION}
564
565tcsh.reno-${VERSION}.tar.Z:
566        rm -rf tcsh.reno-${VERSION}
567        rm -f tcsh.reno-${VERSION}.tar tcsh.reno-${VERSION}.tar.Z DIFFS.[123]
568        mkdir tcsh.reno-${VERSION}
569        ./MAKEDIFFS reno
570        mv DIFFS.1 DIFFS.2 DIFFS.3 tcsh.reno-${VERSION}
571        cp ${DISTSRCS} tcsh.reno-${VERSION}
572        mkdir tcsh.reno-${VERSION}/config
573        cp ${CONFSRCS} tcsh.reno-${VERSION}/config
574        cp Makefile tcsh.reno-${VERSION}/Makefile.new
575        tar cf - nls/Makefile nls/?*/set?* | (cd tcsh-${VERSION}; tar xpf -)
576        tar cvf - tcsh.reno-${VERSION} | compress > tcsh.reno-${VERSION}.tar.Z
577        rm -rf tcsh.reno-${VERSION}
578
579ftp: tcsh-${VERSION}.tar.Z tcsh.tahoe-${VERSION}.tar.Z
580        cp tcsh-${VERSION}.tar.Z tcsh.tahoe-${VERSION}.tar.Z ${FTPAREA}
581        cp tcsh.man ${FTPAREA}
582
583autoconfigure: $(srcdir)/configure $(srcdir)/config.h.in
584
585$(srcdir)/configure: $(srcdir)/configure.in
586        cd $(srcdir) && autoconf
587
588$(srcdir)/config.h.in: $(srcdir)/stamp-h.in
589$(srcdir)/stamp-h.in: $(srcdir)/configure.in
590        cd $(srcdir) && autoheader
591        @echo timestamp > $(srcdir)/stamp-h.in
592
593#
594# Dependencies
595#
596config.h: config_f.h
597
598TCH=tc.h tc.const.h tc.decls.h tc.os.h tc.sig.h
599SHH=sh.h sh.types.h sh.char.h sh.err.h sh.dir.h sh.proc.h pathnames.h \
600    sh.decls.h ${TCH}
601TWH=tw.h tw.decls.h
602EDH=ed.h ed.decls.h
603
604# EDH
605EDINC=sh.${SUF} sh.func.${SUF} sh.lex.${SUF} sh.print.${SUF} sh.proc.${SUF} \
606      sh.set.${SUF} tc.bind.${SUF} tc.os.${SUF} tc.prompt.${SUF} \
607      tc.sched.${SUF} tw.parse.${SUF} tw.color.${SUF}
608${EDOBJS} ${EDINC} : ${EDH}
609
610# SHH
611${OBJS}: config.h ${SHH}
612
613# TWH
614TWINC=ed.chared.${SUF} ed.inputl.${SUF} sh.exec.${SUF} sh.func.${SUF} \
615      sh.set.${SUF} tc.func.${SUF} tw.color.${SUF}
616${TWOBJS} ${TWINC}: ${TWH}
617
618# glob.h
619glob.${SUF} sh.glob.${SUF}: glob.h
620
621# ed.defns.h
622EDDINC=tc.bind.${SUF} tc.func.${SUF} tc.os.${SUF}
623${EDOBJS} ${EDDINC}: ed.defns.h
624
625# tc.defs.o
626tc.defs.${SUF}: tc.defs.c sh.h
Note: See TracBrowser for help on using the repository browser.