Makefile revision 1.12
11.12Sgwr#	$NetBSD: Makefile,v 1.12 1997/05/08 21:11:01 gwr 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.1ScgdPROG=	csh
101.6SmycroftDFLAGS=-DBUILTIN -DFILEC -DNLS -DSHORT_STRINGS
111.6Smycroft#CFLAGS+=-g
121.6Smycroft#CFLAGS+=-Wall -ansi -pedantic
131.6SmycroftCFLAGS+=-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.6Smycroft	sem.c set.c str.c time.c
171.12Sgwr.PATH:	${.CURDIR}/../../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.1ScgdCLEANFILES+=err.h const.h
241.1Scgd
251.1Scgdconst.h: err.h
261.1Scgd
271.1Scgderr.h: err.c
281.1Scgd	@rm -f $@
291.1Scgd	@echo '/* Do not edit this file, make creates it. */' > $@
301.1Scgd	@echo '#ifndef _h_sh_err' >> $@
311.1Scgd	@echo '#define _h_sh_err' >> $@
321.1Scgd	egrep 'ERR_' ${.CURDIR}/$*.c | egrep '^#define' >> $@
331.1Scgd	@echo '#endif /* _h_sh_err */' >> $@
341.1Scgd
351.1Scgdconst.h: const.c
361.1Scgd	@rm -f $@
371.1Scgd	@echo '/* Do not edit this file, make creates it. */' > $@
381.1Scgd	${CC} -E ${CFLAGS} ${.CURDIR}/$*.c | egrep 'Char STR' | \
391.1Scgd	    sed -e 's/Char \([a-zA-Z0-9_]*\)\(.*\)/extern Char \1[];/' | \
401.1Scgd	    sort >> $@
411.1Scgd
421.6Smycroft.depend alloc.o: const.h err.h 
431.7Scgd
441.7Scgd.if make(install)
451.7ScgdSUBDIR+= USD.doc
461.7Scgd.endif
471.1Scgd
481.1Scgd.include <bsd.prog.mk>
49