1 1.1 cgd # @(#)Makefile 5.24 (Berkeley) 7/1/91 2 1.1 cgd # 3 1.4 proven # $Header: /tank/opengrok/rsync2/NetBSD/src/bin/csh/Makefile,v 1.4 1993/05/26 19:05:47 proven Exp $ 4 1.2 cgd # 5 1.1 cgd # C Shell with process control; VM/UNIX VAX Makefile 6 1.1 cgd # Bill Joy UC Berkeley; Jim Kulp IIASA, Austria 7 1.1 cgd # 8 1.1 cgd # To profile, put -DPROF in DEFS and -pg in CFLAGS, and recompile. 9 1.1 cgd 10 1.1 cgd PROG= csh 11 1.4 proven CFLAGS+=-fstrength-reduce -DFILEC -DNLS -DSHORT_STRINGS -I. 12 1.1 cgd SRCS= alloc.c char.c const.c csh.c dir.c dol.c err.c exec.c exp.c file.c \ 13 1.1 cgd func.c glob.c hist.c init.c lex.c misc.c parse.c print.c printf.c \ 14 1.1 cgd proc.c sem.c set.c str.c time.c 15 1.1 cgd 16 1.1 cgd MAN1= csh.0 17 1.1 cgd MLINKS= csh.1 limit.1 csh.1 alias.1 csh.1 bg.1 csh.1 dirs.1 csh.1 fg.1 \ 18 1.1 cgd csh.1 foreach.1 csh.1 history.1 csh.1 jobs.1 csh.1 popd.1 \ 19 1.1 cgd csh.1 pushd.1 csh.1 rehash.1 csh.1 repeat.1 csh.1 suspend.1 \ 20 1.1 cgd csh.1 stop.1 csh.1 source.1 21 1.1 cgd CLEANFILES+=err.h const.h 22 1.1 cgd 23 1.1 cgd const.h: err.h 24 1.1 cgd 25 1.1 cgd err.h: err.c 26 1.1 cgd @rm -f $@ 27 1.1 cgd @echo '/* Do not edit this file, make creates it. */' > $@ 28 1.1 cgd @echo '#ifndef _h_sh_err' >> $@ 29 1.1 cgd @echo '#define _h_sh_err' >> $@ 30 1.1 cgd egrep 'ERR_' ${.CURDIR}/$*.c | egrep '^#define' >> $@ 31 1.1 cgd @echo '#endif /* _h_sh_err */' >> $@ 32 1.1 cgd 33 1.1 cgd const.h: const.c 34 1.1 cgd @rm -f $@ 35 1.1 cgd @echo '/* Do not edit this file, make creates it. */' > $@ 36 1.1 cgd ${CC} -E ${CFLAGS} ${.CURDIR}/$*.c | egrep 'Char STR' | \ 37 1.1 cgd sed -e 's/Char \([a-zA-Z0-9_]*\)\(.*\)/extern Char \1[];/' | \ 38 1.1 cgd sort >> $@ 39 1.1 cgd 40 1.1 cgd .depend alloc.o: const.h err.h 41 1.1 cgd 42 1.1 cgd .include <bsd.prog.mk> 43