Makefile revision 1.16.2.2
1# $NetBSD: Makefile,v 1.16.2.2 1998/05/08 22:20:20 mycroft Exp $ 2# @(#)Makefile 8.1 (Berkeley) 5/31/93 3# 4# C Shell with process control; VM/UNIX VAX Makefile 5# Bill Joy UC Berkeley; Jim Kulp IIASA, Austria 6# 7# To profile, put -DPROF in DFLAGS and -pg in CFLAGS, and recompile. 8 9PROG= csh 10DFLAGS=-DBUILTIN -DFILEC -DNLS -DSHORT_STRINGS 11CPPFLAGS+=-I${.CURDIR} -I. ${DFLAGS} 12SRCS= alloc.c char.c const.c csh.c dir.c dol.c err.c exec.c exp.c file.c \ 13 func.c glob.c hist.c init.c lex.c misc.c parse.c printf.c proc.c \ 14 sem.c set.c str.c strpct.c time.c 15.PATH: ${.CURDIR}/../../usr.bin/printf 16 17MLINKS= csh.1 limit.1 csh.1 alias.1 csh.1 bg.1 csh.1 dirs.1 csh.1 fg.1 \ 18 csh.1 foreach.1 csh.1 history.1 csh.1 jobs.1 csh.1 popd.1 \ 19 csh.1 pushd.1 csh.1 rehash.1 csh.1 repeat.1 csh.1 suspend.1 \ 20 csh.1 stop.1 csh.1 source.1 21CLEANFILES+=errnum.h const.h 22 23const.h: errnum.h 24 25errnum.h: err.c 26 @rm -f ${.TARGET} 27 @echo '/* Do not edit this file, make creates it. */' > ${.TARGET} 28 @echo '#ifndef _h_sh_errnum' >> ${.TARGET} 29 @echo '#define _h_sh_errnum' >> ${.TARGET} 30 egrep 'ERR_' ${.ALLSRC} | egrep '^#define' >> ${.TARGET} 31 @echo '#endif /* _h_sh_errnum */' >> ${.TARGET} 32 33const.h: const.c 34 @rm -f ${.TARGET} 35 @echo '/* Do not edit this file, make creates it. */' > ${.TARGET} 36 ${CC} -E ${CPPFLAGS} ${.ALLSRC} | egrep 'Char STR' | \ 37 sed -e 's/Char \([a-zA-Z0-9_]*\)\(.*\)/extern Char \1[];/' | \ 38 sort >> ${.TARGET} 39 40.depend alloc.o: const.h errnum.h 41 42alloc.o const.o csh.o dir.o dol.o err.o exec.o exp.o file.o func.o glob.o \ 43 hist.o init.o lex.o misc.o parse.o proc.o sem.o set.o str.o time.o: const.h 44 45.if make(install) 46SUBDIR+=USD.doc 47.endif 48 49.include <bsd.prog.mk> 50.include <bsd.subdir.mk> 51