Makefile revision 27965
127965Ssteve# $Id: Makefile,v 1.7 1997/02/22 14:01:36 peter Exp $ 21556Srgrimes# @(#)Makefile 8.1 (Berkeley) 5/31/93 31556Srgrimes# 41556Srgrimes# C Shell with process control; VM/UNIX VAX Makefile 51556Srgrimes# Bill Joy UC Berkeley; Jim Kulp IIASA, Austria 61556Srgrimes# 71556Srgrimes# To profile, put -DPROF in DEFS and -pg in CFLAGS, and recompile. 81556Srgrimes 91556SrgrimesPROG= csh 101556SrgrimesDFLAGS=-DBUILTIN -DFILEC -DNLS -DSHORT_STRINGS 111556SrgrimesCFLAGS+=-I${.CURDIR} -I. ${DFLAGS} 121556SrgrimesSRCS= alloc.c char.c const.c csh.c dir.c dol.c err.c exec.c exp.c file.c \ 131556Srgrimes func.c glob.c hist.c init.c lex.c misc.c parse.c printf.c proc.c \ 1427965Ssteve sem.c set.c str.c time.c const.h errnum.h 151556Srgrimes.PATH: ${.CURDIR}/../../usr.bin/printf 161556Srgrimes 171864SwollmanMAN1= csh.1 181556SrgrimesMLINKS= csh.1 limit.1 csh.1 alias.1 csh.1 bg.1 csh.1 dirs.1 csh.1 fg.1 \ 191556Srgrimes csh.1 foreach.1 csh.1 history.1 csh.1 jobs.1 csh.1 popd.1 \ 201556Srgrimes csh.1 pushd.1 csh.1 rehash.1 csh.1 repeat.1 csh.1 suspend.1 \ 211556Srgrimes csh.1 stop.1 csh.1 source.1 2227965SsteveCLEANFILES+=const.h errnum.h 231556Srgrimes 2427965Ssteveconst.h: errnum.h 251556Srgrimes 2627965Ssteveerrnum.h: err.c 2727965Ssteve @rm -f ${.TARGET} 2827965Ssteve @echo '/* Do not edit this file, make creates it. */' > ${.TARGET} 2927965Ssteve @echo '#ifndef _h_sh_error' >> ${.TARGET} 3027965Ssteve @echo '#define _h_sh_error' >> ${.TARGET} 3127965Ssteve egrep 'ERR_' ${.ALLSRC} | egrep '^#define' >> ${.TARGET} 3227965Ssteve @echo '#endif /* _h_sh_error */' >> ${.TARGET} 331556Srgrimes 341556Srgrimesconst.h: const.c 351556Srgrimes @rm -f $@ 361556Srgrimes @echo '/* Do not edit this file, make creates it. */' > $@ 371556Srgrimes ${CC} -E ${CFLAGS} ${.CURDIR}/$*.c | egrep 'Char STR' | \ 381556Srgrimes sed -e 's/Char \([a-zA-Z0-9_]*\)\(.*\)/extern Char \1[];/' | \ 391556Srgrimes sort >> $@ 401556Srgrimes 411556Srgrimes.include <bsd.prog.mk> 42