Makefile revision 1.30
11.30Smrg# $NetBSD: Makefile,v 1.30 2011/07/01 03:58:10 mrg Exp $ 21.9Scgd# @(#)Makefile 8.1 (Berkeley) 5/31/93 31.6Smycroft# 41.1Scgd# C Shell with process control; VM/UNIX VAX Makefile 51.1Scgd# Bill Joy UC Berkeley; Jim Kulp IIASA, Austria 61.1Scgd# 71.19Slukem# To profile, put -DPROF in DFLAGS and -pg in COPTS, and recompile. 81.1Scgd 91.20Slukem.include <bsd.own.mk> 101.20Slukem 111.1ScgdPROG= csh 121.6SmycroftDFLAGS=-DBUILTIN -DFILEC -DNLS -DSHORT_STRINGS 131.15SchristosCPPFLAGS+=-I${.CURDIR} -I. ${DFLAGS} 141.1ScgdSRCS= alloc.c char.c const.c csh.c dir.c dol.c err.c exec.c exp.c file.c \ 151.6Smycroft func.c glob.c hist.c init.c lex.c misc.c parse.c printf.c proc.c \ 161.18Sfair sem.c set.c str.c strpct.c time.c 171.20Slukem.PATH: ${NETBSDSRCDIR}/usr.bin/printf 181.1Scgd 191.1ScgdMLINKS= csh.1 limit.1 csh.1 alias.1 csh.1 bg.1 csh.1 dirs.1 csh.1 fg.1 \ 201.1Scgd csh.1 foreach.1 csh.1 history.1 csh.1 jobs.1 csh.1 popd.1 \ 211.1Scgd csh.1 pushd.1 csh.1 rehash.1 csh.1 repeat.1 csh.1 suspend.1 \ 221.1Scgd csh.1 stop.1 csh.1 source.1 231.1Scgd 241.23SlukemDPSRCS+= errnum.h const.h 251.23SlukemCLEANFILES+= errnum.h const.h 261.1Scgd 271.13Schristoserrnum.h: err.c 281.26Slukem ${_MKTARGET_CREATE} 291.24Slukem rm -f ${.TARGET} 301.24Slukem (\ 311.24Slukem echo '/* Do not edit this file, make creates it. */' ;\ 321.24Slukem echo '#ifndef _h_sh_errnum' ;\ 331.24Slukem echo '#define _h_sh_errnum' ;\ 341.24Slukem egrep 'ERR_' ${.ALLSRC} | egrep '^#define' ;\ 351.24Slukem echo '#endif /* _h_sh_errnum */' ;\ 361.24Slukem ) > ${.TARGET} 371.1Scgd 381.24Slukemconst.c: errnum.h 391.1Scgdconst.h: const.c 401.26Slukem ${_MKTARGET_CREATE} 411.24Slukem rm -f ${.TARGET} 421.24Slukem echo '/* Do not edit this file, make creates it. */' > ${.TARGET} 431.15Schristos ${CC} -E ${CPPFLAGS} ${.ALLSRC} | egrep 'Char STR' | \ 441.29Sapb ${TOOL_SED} -e 's/Char \([a-zA-Z0-9_]*\)\(.*\)/extern Char \1[];/' | \ 451.13Schristos sort >> ${.TARGET} 461.1Scgd 471.7Scgd.if make(install) 481.16SmycroftSUBDIR+=USD.doc 491.7Scgd.endif 501.1Scgd 511.30Smrg# XXX Only GCC 4.1 problem 521.28Sgmcgarry.if defined(HAVE_GCC) && ${HAVE_GCC} == 4 && ${MACHINE_ARCH} == "vax" 531.27SmrgCOPTS.parse.c+= -O0 541.27Smrg.endif 551.27Smrg 561.1Scgd.include <bsd.prog.mk> 571.16Smycroft.include <bsd.subdir.mk> 58