Makefile revision 1864
1226031Sstas# @(#)Makefile 8.1 (Berkeley) 5/31/93 2226031Sstas# 3226031Sstas# C Shell with process control; VM/UNIX VAX Makefile 4226031Sstas# Bill Joy UC Berkeley; Jim Kulp IIASA, Austria 5226031Sstas# 6226031Sstas# To profile, put -DPROF in DEFS and -pg in CFLAGS, and recompile. 7226031Sstas 8226031SstasPROG= csh 9226031SstasDFLAGS=-DBUILTIN -DFILEC -DNLS -DSHORT_STRINGS 10226031Sstas#CFLAGS+=-g 11226031Sstas#CFLAGS+=-Wall -ansi -pedantic 12226031SstasCFLAGS+=-I${.CURDIR} -I. ${DFLAGS} 13226031SstasSRCS= alloc.c char.c const.c csh.c dir.c dol.c err.c exec.c exp.c file.c \ 14226031Sstas func.c glob.c hist.c init.c lex.c misc.c parse.c printf.c proc.c \ 15226031Sstas sem.c set.c str.c time.c 16226031Sstas.PATH: ${.CURDIR}/../../usr.bin/printf 17226031Sstas 18226031SstasMAN1= csh.1 19226031SstasMLINKS= csh.1 limit.1 csh.1 alias.1 csh.1 bg.1 csh.1 dirs.1 csh.1 fg.1 \ 20226031Sstas csh.1 foreach.1 csh.1 history.1 csh.1 jobs.1 csh.1 popd.1 \ 21226031Sstas csh.1 pushd.1 csh.1 rehash.1 csh.1 repeat.1 csh.1 suspend.1 \ 22226031Sstas csh.1 stop.1 csh.1 source.1 23226031SstasCLEANFILES+=err.h const.h 24226031Sstas 25226031Sstasconst.h: err.h 26226031Sstas 27226031Sstaserr.h: err.c 28226031Sstas @rm -f $@ 29226031Sstas @echo '/* Do not edit this file, make creates it. */' > $@ 30226031Sstas @echo '#ifndef _h_sh_err' >> $@ 31226031Sstas @echo '#define _h_sh_err' >> $@ 32226031Sstas egrep 'ERR_' ${.CURDIR}/$*.c | egrep '^#define' >> $@ 33226031Sstas @echo '#endif /* _h_sh_err */' >> $@ 34226031Sstas 35226031Sstasconst.h: const.c 36226031Sstas @rm -f $@ 37226031Sstas @echo '/* Do not edit this file, make creates it. */' > $@ 38226031Sstas ${CC} -E ${CFLAGS} ${.CURDIR}/$*.c | egrep 'Char STR' | \ 39226031Sstas sed -e 's/Char \([a-zA-Z0-9_]*\)\(.*\)/extern Char \1[];/' | \ 40226031Sstas sort >> $@ 41226031Sstas 42226031Sstas.depend: const.h err.h 43226031Sstas 44226031Sstas.include <bsd.prog.mk> 45226031Sstas