Makefile revision 1.2
11.1Scgd# @(#)Makefile 5.24 (Berkeley) 7/1/91 21.1Scgd# 31.2Scgd# $Id: Makefile,v 1.2 1993/03/22 08:04:00 cgd Exp $ 41.2Scgd# 51.1Scgd# C Shell with process control; VM/UNIX VAX Makefile 61.1Scgd# Bill Joy UC Berkeley; Jim Kulp IIASA, Austria 71.1Scgd# 81.1Scgd# To profile, put -DPROF in DEFS and -pg in CFLAGS, and recompile. 91.1Scgd 101.1ScgdPROG= csh 111.1ScgdCFLAGS+=-fcombine-regs -fstrength-reduce -DFILEC -DNLS -DSHORT_STRINGS -I. 121.1ScgdSRCS= alloc.c char.c const.c csh.c dir.c dol.c err.c exec.c exp.c file.c \ 131.1Scgd func.c glob.c hist.c init.c lex.c misc.c parse.c print.c printf.c \ 141.1Scgd proc.c sem.c set.c str.c time.c 151.1Scgd 161.1ScgdMAN1= csh.0 171.1ScgdMLINKS= csh.1 limit.1 csh.1 alias.1 csh.1 bg.1 csh.1 dirs.1 csh.1 fg.1 \ 181.1Scgd csh.1 foreach.1 csh.1 history.1 csh.1 jobs.1 csh.1 popd.1 \ 191.1Scgd csh.1 pushd.1 csh.1 rehash.1 csh.1 repeat.1 csh.1 suspend.1 \ 201.1Scgd csh.1 stop.1 csh.1 source.1 211.1ScgdCLEANFILES+=err.h const.h 221.1Scgd 231.1Scgdconst.h: err.h 241.1Scgd 251.1Scgderr.h: err.c 261.1Scgd @rm -f $@ 271.1Scgd @echo '/* Do not edit this file, make creates it. */' > $@ 281.1Scgd @echo '#ifndef _h_sh_err' >> $@ 291.1Scgd @echo '#define _h_sh_err' >> $@ 301.1Scgd egrep 'ERR_' ${.CURDIR}/$*.c | egrep '^#define' >> $@ 311.1Scgd @echo '#endif /* _h_sh_err */' >> $@ 321.1Scgd 331.1Scgdconst.h: const.c 341.1Scgd @rm -f $@ 351.1Scgd @echo '/* Do not edit this file, make creates it. */' > $@ 361.1Scgd ${CC} -E ${CFLAGS} ${.CURDIR}/$*.c | egrep 'Char STR' | \ 371.1Scgd sed -e 's/Char \([a-zA-Z0-9_]*\)\(.*\)/extern Char \1[];/' | \ 381.1Scgd sort >> $@ 391.1Scgd 401.1Scgd.depend alloc.o: const.h err.h 411.1Scgd 421.1Scgd.include <bsd.prog.mk> 43