# Copyright (c) 1980 Regents of the University of California.
# All rights reserved. The Berkeley Software License Agreement
# specifies the terms and conditions for redistribution.
# @(#)Makefile 5.5 (Berkeley) %G%
# C Shell with process control; VM/UNIX VAX Makefile
# Bill Joy UC Berkeley; Jim Kulp IIASA, Austria
# To profile, put -DPROF in DEFS and -pg in CFLAGS, and recompile.
DEFS
= -DTELL
-DVFORK
-DFILEC
OBJS
= alloc.o printf.o sh.o sh.char.o sh.
dir.o sh.dol.o sh.err.o \
sh.exec.o sh.exp.o sh.file.o sh.func.o sh.glob.o sh.hist.o sh.init.o \
sh.
lex.o sh.misc.o sh.parse.o sh.
print.o sh.proc.o sh.sem.o sh.set.o \
# Special massaging of C files for sharing of strings
${CC} -E
${CFLAGS} $*.c |
${XSTR} -c
-
# strings.o must be last since it can change when previous files compile
${CC} ${CFLAGS} ${OBJS} strings.o
-o csh
${LIBES}
# need an old doprnt, whose output we can trap
${CC} -E doprnt.c |
${AS} -o doprnt.o
# strings.o, sh.init.o, and sh.char.o are specially processed to be shared
${CC} -E
${CFLAGS} $*.c |
${XSTR} -c
-
${CC} ${CFLAGS} -c
-R x.c
lint
-z
${DEFS} sh
*.c alloc.c
@
(size
-l a.out
; size
*.o
) | pr
-h SIZES
@
${CXREF} sh
*.c | pr
-h XREF
@pr sh
*.h
[a-rt-z
]*.h sh
*.c alloc.c
@pr
-l84 Makefile Makefile.
*
@
(size
-l a.out
; size
*.o
) | pr
-l84
-h SIZES
@
${CXREF} sh
*.c | pr
-l84
-h XREF
@
${CXREF} sh
*.c | pr
-l84
-h XREF
@pr
-l84 sh
*.h
[a-rt-z
]*.h sh
*.c alloc.c
for i in
*.h
; do
${VGRIND} -t
-h
"C Shell" $$i >grind
/$$i.t
; done
for i in
*.c
; do
${VGRIND} -t
-h
"C Shell" $$i >grind
/$$i.t
; done
${VGRIND} -t
-x
-h Index index
>grind
/index.t
install -s csh
${DESTDIR}/bin
/csh
${RM} -f a.out strings x.c xs.c csh errs
sh.o
: sh.h sh.local.h sh.char.h
sh.
dir.o
: sh.h sh.local.h sh.
dir.h
sh.dol.o
: sh.h sh.local.h sh.char.h
sh.err.o
: sh.h sh.local.h sh.char.h
sh.exec.o
: sh.h sh.local.h sh.char.h
sh.exp.o
: sh.h sh.local.h sh.char.h
sh.file.o
: sh.h sh.local.h sh.char.h
sh.func.o
: sh.h sh.local.h sh.char.h
sh.glob.o
: sh.h sh.local.h sh.char.h
sh.hist.o
: sh.h sh.local.h sh.char.h
sh.
lex.o
: sh.h sh.local.h sh.char.h
sh.misc.o
: sh.h sh.local.h sh.char.h
sh.parse.o
: sh.h sh.local.h sh.char.h
sh.
print.o
: sh.h sh.local.h sh.char.h
sh.proc.o
: sh.h sh.local.h sh.
dir.h sh.proc.h sh.char.h
sh.sem.o
: sh.h sh.local.h sh.proc.h sh.char.h
sh.set.o
: sh.h sh.local.h sh.char.h
sh.time.o
: sh.h sh.local.h sh.char.h