xref: /freebsd/bin/csh/Makefile (revision 242fa23c)
1*242fa23cSSteve Price#	$Id: Makefile,v 1.8 1997/08/07 21:42:01 steve Exp $
24b88c807SRodney W. Grimes#	@(#)Makefile	8.1 (Berkeley) 5/31/93
34b88c807SRodney W. Grimes#
44b88c807SRodney W. Grimes# C Shell with process control; VM/UNIX VAX Makefile
54b88c807SRodney W. Grimes# Bill Joy UC Berkeley; Jim Kulp IIASA, Austria
64b88c807SRodney W. Grimes#
74b88c807SRodney W. Grimes# To profile, put -DPROF in DEFS and -pg in CFLAGS, and recompile.
84b88c807SRodney W. Grimes
94b88c807SRodney W. GrimesPROG=	csh
104b88c807SRodney W. GrimesDFLAGS=-DBUILTIN -DFILEC -DNLS -DSHORT_STRINGS
114b88c807SRodney W. GrimesCFLAGS+=-I${.CURDIR} -I. ${DFLAGS}
124b88c807SRodney W. GrimesSRCS=	alloc.c char.c const.c csh.c dir.c dol.c err.c exec.c exp.c file.c \
134b88c807SRodney W. Grimes	func.c glob.c hist.c init.c lex.c misc.c parse.c printf.c proc.c \
14380fdd7dSSteve Price	sem.c set.c str.c time.c const.h errnum.h
154b88c807SRodney W. Grimes.PATH:	${.CURDIR}/../../usr.bin/printf
164b88c807SRodney W. Grimes
1767c22e71SGarrett WollmanMAN1=	csh.1
184b88c807SRodney W. GrimesMLINKS=	csh.1 limit.1 csh.1 alias.1 csh.1 bg.1 csh.1 dirs.1 csh.1 fg.1 \
194b88c807SRodney W. Grimes	csh.1 foreach.1 csh.1 history.1 csh.1 jobs.1 csh.1 popd.1 \
204b88c807SRodney W. Grimes	csh.1 pushd.1 csh.1 rehash.1 csh.1 repeat.1 csh.1 suspend.1 \
214b88c807SRodney W. Grimes	csh.1 stop.1 csh.1 source.1
22380fdd7dSSteve PriceCLEANFILES+=const.h errnum.h
234b88c807SRodney W. Grimes
24380fdd7dSSteve Priceconst.h: errnum.h
254b88c807SRodney W. Grimes
26380fdd7dSSteve Priceerrnum.h: err.c
27380fdd7dSSteve Price	@rm -f ${.TARGET}
28380fdd7dSSteve Price	@echo '/* Do not edit this file, make creates it. */' > ${.TARGET}
29380fdd7dSSteve Price	@echo '#ifndef _h_sh_error' >> ${.TARGET}
30380fdd7dSSteve Price	@echo '#define _h_sh_error' >> ${.TARGET}
31380fdd7dSSteve Price	egrep 'ERR_' ${.ALLSRC} | egrep '^#define' >> ${.TARGET}
32380fdd7dSSteve Price	@echo '#endif /* _h_sh_error */' >> ${.TARGET}
334b88c807SRodney W. Grimes
344b88c807SRodney W. Grimesconst.h: const.c
35*242fa23cSSteve Price	@rm -f ${.TARGET}
36*242fa23cSSteve Price	@echo '/* Do not edit this file, make creates it. */' > ${.TARGET}
37*242fa23cSSteve Price	${CC} -E ${CFLAGS} ${.ALLSRC} | egrep 'Char STR' | \
384b88c807SRodney W. Grimes	    sed -e 's/Char \([a-zA-Z0-9_]*\)\(.*\)/extern Char \1[];/' | \
39*242fa23cSSteve Price	    sort >> ${.TARGET}
404b88c807SRodney W. Grimes
414b88c807SRodney W. Grimes.include <bsd.prog.mk>
42