Makefile revision 51090
150471Speter# $FreeBSD: head/bin/csh/Makefile 51090 1999-09-08 15:40:46Z sheldonh $ 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 1851090Ssheldonh# MLINKS for Shell built in commands for which there are no userland 1951090Ssheldonh# utilities of the same name are handled with the associated manpage, 2051090Ssheldonh# builtin.1 in share/man/man1/. 2151090Ssheldonh 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 3527969Ssteve @rm -f ${.TARGET} 3627969Ssteve @echo '/* Do not edit this file, make creates it. */' > ${.TARGET} 3727969Ssteve ${CC} -E ${CFLAGS} ${.ALLSRC} | egrep 'Char STR' | \ 381556Srgrimes sed -e 's/Char \([a-zA-Z0-9_]*\)\(.*\)/extern Char \1[];/' | \ 3927969Ssteve sort >> ${.TARGET} 401556Srgrimes 411556Srgrimes.include <bsd.prog.mk> 42