Makefile revision 1556
11556Srgrimes# @(#)Makefile 8.1 (Berkeley) 5/31/93 21556Srgrimes# 31556Srgrimes# C Shell with process control; VM/UNIX VAX Makefile 41556Srgrimes# Bill Joy UC Berkeley; Jim Kulp IIASA, Austria 51556Srgrimes# 61556Srgrimes# To profile, put -DPROF in DEFS and -pg in CFLAGS, and recompile. 71556Srgrimes 81556SrgrimesPROG= csh 91556SrgrimesDFLAGS=-DBUILTIN -DFILEC -DNLS -DSHORT_STRINGS 101556Srgrimes#CFLAGS+=-g 111556Srgrimes#CFLAGS+=-Wall -ansi -pedantic 121556SrgrimesCFLAGS+=-I${.CURDIR} -I. ${DFLAGS} 131556SrgrimesSRCS= alloc.c char.c const.c csh.c dir.c dol.c err.c exec.c exp.c file.c \ 141556Srgrimes func.c glob.c hist.c init.c lex.c misc.c parse.c printf.c proc.c \ 151556Srgrimes sem.c set.c str.c time.c 161556Srgrimes.PATH: ${.CURDIR}/../../usr.bin/printf 171556Srgrimes 181556SrgrimesMAN1= csh.0 191556SrgrimesMLINKS= csh.1 limit.1 csh.1 alias.1 csh.1 bg.1 csh.1 dirs.1 csh.1 fg.1 \ 201556Srgrimes csh.1 foreach.1 csh.1 history.1 csh.1 jobs.1 csh.1 popd.1 \ 211556Srgrimes csh.1 pushd.1 csh.1 rehash.1 csh.1 repeat.1 csh.1 suspend.1 \ 221556Srgrimes csh.1 stop.1 csh.1 source.1 231556SrgrimesCLEANFILES+=err.h const.h 241556Srgrimes 251556Srgrimesconst.h: err.h 261556Srgrimes 271556Srgrimeserr.h: err.c 281556Srgrimes @rm -f $@ 291556Srgrimes @echo '/* Do not edit this file, make creates it. */' > $@ 301556Srgrimes @echo '#ifndef _h_sh_err' >> $@ 311556Srgrimes @echo '#define _h_sh_err' >> $@ 321556Srgrimes egrep 'ERR_' ${.CURDIR}/$*.c | egrep '^#define' >> $@ 331556Srgrimes @echo '#endif /* _h_sh_err */' >> $@ 341556Srgrimes 351556Srgrimesconst.h: const.c 361556Srgrimes @rm -f $@ 371556Srgrimes @echo '/* Do not edit this file, make creates it. */' > $@ 381556Srgrimes ${CC} -E ${CFLAGS} ${.CURDIR}/$*.c | egrep 'Char STR' | \ 391556Srgrimes sed -e 's/Char \([a-zA-Z0-9_]*\)\(.*\)/extern Char \1[];/' | \ 401556Srgrimes sort >> $@ 411556Srgrimes 421556Srgrimes.depend: const.h err.h 431556Srgrimes 441556Srgrimes.include <bsd.prog.mk> 45