Makefile revision 1.13
11.13Schristos#	$NetBSD: Makefile,v 1.13 1997/07/04 21:23:50 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.1Scgd# To profile, put -DPROF in DEFS and -pg in CFLAGS, and recompile.
81.1Scgd
91.13SchristosWARNS=	1
101.1ScgdPROG=	csh
111.6SmycroftDFLAGS=-DBUILTIN -DFILEC -DNLS -DSHORT_STRINGS
121.6SmycroftCFLAGS+=-I${.CURDIR} -I. ${DFLAGS}
131.1ScgdSRCS=	alloc.c char.c const.c csh.c dir.c dol.c err.c exec.c exp.c file.c \
141.6Smycroft	func.c glob.c hist.c init.c lex.c misc.c parse.c printf.c proc.c \
151.6Smycroft	sem.c set.c str.c time.c
161.12Sgwr.PATH:	${.CURDIR}/../../usr.bin/printf
171.1Scgd
181.1ScgdMLINKS=	csh.1 limit.1 csh.1 alias.1 csh.1 bg.1 csh.1 dirs.1 csh.1 fg.1 \
191.1Scgd	csh.1 foreach.1 csh.1 history.1 csh.1 jobs.1 csh.1 popd.1 \
201.1Scgd	csh.1 pushd.1 csh.1 rehash.1 csh.1 repeat.1 csh.1 suspend.1 \
211.1Scgd	csh.1 stop.1 csh.1 source.1
221.13SchristosCLEANFILES+=errnum.h const.h
231.1Scgd
241.13Schristosconst.h: errnum.h
251.1Scgd
261.13Schristoserrnum.h: err.c
271.13Schristos	@rm -f ${.TARGET}
281.13Schristos	@echo '/* Do not edit this file, make creates it. */' > ${.TARGET}
291.13Schristos	@echo '#ifndef _h_sh_errnum' >> ${.TARGET}
301.13Schristos	@echo '#define _h_sh_errnum' >> ${.TARGET}
311.13Schristos	egrep 'ERR_' ${.ALLSRC} | egrep '^#define' >> ${.TARGET}
321.13Schristos	@echo '#endif /* _h_sh_errnum */' >> ${.TARGET}
331.1Scgd
341.1Scgdconst.h: const.c
351.13Schristos	@rm -f ${.TARGET}
361.13Schristos	@echo '/* Do not edit this file, make creates it. */' > ${.TARGET}
371.13Schristos	${CC} -E ${CFLAGS} ${.ALLSRC} | egrep 'Char STR' | \
381.1Scgd	    sed -e 's/Char \([a-zA-Z0-9_]*\)\(.*\)/extern Char \1[];/' | \
391.13Schristos	    sort >> ${.TARGET}
401.1Scgd
411.13Schristos.depend alloc.o: const.h errnum.h 
421.7Scgd
431.7Scgd.if make(install)
441.7ScgdSUBDIR+= USD.doc
451.7Scgd.endif
461.1Scgd
471.1Scgd.include <bsd.prog.mk>
48