Makefile revision 1.36
11.36Schristos# $NetBSD: Makefile,v 1.36 2013/01/23 16:39:03 christos 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.36Schristos# - Editor history not always aligned with shell history, 141.36Schristos# should implement internally 151.34Schristos# - Does not handle escaped prompts. 161.34Schristos# - Does not do completion 171.36SchristosDFLAGS+=-DEDIT 181.15SchristosCPPFLAGS+=-I${.CURDIR} -I. ${DFLAGS} 191.1ScgdSRCS= alloc.c char.c const.c csh.c dir.c dol.c err.c exec.c exp.c file.c \ 201.6Smycroft func.c glob.c hist.c init.c lex.c misc.c parse.c printf.c proc.c \ 211.33Schristos sem.c set.c str.c time.c 221.20Slukem.PATH: ${NETBSDSRCDIR}/usr.bin/printf 231.1Scgd 241.1ScgdMLINKS= csh.1 limit.1 csh.1 alias.1 csh.1 bg.1 csh.1 dirs.1 csh.1 fg.1 \ 251.1Scgd csh.1 foreach.1 csh.1 history.1 csh.1 jobs.1 csh.1 popd.1 \ 261.1Scgd csh.1 pushd.1 csh.1 rehash.1 csh.1 repeat.1 csh.1 suspend.1 \ 271.1Scgd csh.1 stop.1 csh.1 source.1 281.1Scgd 291.23SlukemDPSRCS+= errnum.h const.h 301.23SlukemCLEANFILES+= errnum.h const.h 311.1Scgd 321.13Schristoserrnum.h: err.c 331.26Slukem ${_MKTARGET_CREATE} 341.24Slukem rm -f ${.TARGET} 351.24Slukem (\ 361.24Slukem echo '/* Do not edit this file, make creates it. */' ;\ 371.24Slukem echo '#ifndef _h_sh_errnum' ;\ 381.24Slukem echo '#define _h_sh_errnum' ;\ 391.24Slukem egrep 'ERR_' ${.ALLSRC} | egrep '^#define' ;\ 401.24Slukem echo '#endif /* _h_sh_errnum */' ;\ 411.24Slukem ) > ${.TARGET} 421.1Scgd 431.24Slukemconst.c: errnum.h 441.1Scgdconst.h: const.c 451.26Slukem ${_MKTARGET_CREATE} 461.24Slukem rm -f ${.TARGET} 471.24Slukem echo '/* Do not edit this file, make creates it. */' > ${.TARGET} 481.15Schristos ${CC} -E ${CPPFLAGS} ${.ALLSRC} | egrep 'Char STR' | \ 491.29Sapb ${TOOL_SED} -e 's/Char \([a-zA-Z0-9_]*\)\(.*\)/extern Char \1[];/' | \ 501.13Schristos sort >> ${.TARGET} 511.1Scgd 521.7Scgd.if make(install) 531.16SmycroftSUBDIR+=USD.doc 541.7Scgd.endif 551.1Scgd 561.30Smrg# XXX Only GCC 4.1 problem 571.28Sgmcgarry.if defined(HAVE_GCC) && ${HAVE_GCC} == 4 && ${MACHINE_ARCH} == "vax" 581.27SmrgCOPTS.parse.c+= -O0 591.27Smrg.endif 601.32SjoergCOPTS.err.c = -Wno-format-nonliteral 611.31SchristosCOPTS.printf.c = -Wno-format-nonliteral 621.31SchristosCOPTS.proc.c = -Wno-format-nonliteral 631.33Schristos 641.36Schristos.if !empty(DFLAGS:M*EDIT) 651.35SchristosLDADD+=-ledit -lutil 661.35SchristosDPADD+=${LIBEDIT} ${LIBUTIL} 671.35Schristos.else 681.33SchristosLDADD+=-lutil 691.33SchristosDPADD+=${LIBUTIL} 701.34Schristos.endif 711.27Smrg 721.1Scgd.include <bsd.prog.mk> 731.16Smycroft.include <bsd.subdir.mk> 74