~ubuntu-branches/ubuntu/utopic/gridengine/utopic

« back to all changes in this revision

Viewing changes to source/3rdparty/qtcsh/ALPHA5/Makefile

  • Committer: Bazaar Package Importer
  • Author(s): Mark Hymers
  • Date: 2008-06-25 22:36:13 UTC
  • Revision ID: james.westby@ubuntu.com-20080625223613-tvd9xlhuoct9kyhm
Tags: upstream-6.2~beta2
ImportĀ upstreamĀ versionĀ 6.2~beta2

Show diffs side-by-side

added added

removed removed

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