Makefile revision 1.21
1# $NetBSD: Makefile,v 1.21 2003/07/28 15:25:02 lukem 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 COPTS, and recompile. 8 9.include <bsd.own.mk> 10 11PROG= csh 12DFLAGS=-DBUILTIN -DFILEC -DNLS -DSHORT_STRINGS 13CPPFLAGS+=-I${.CURDIR} -I. ${DFLAGS} 14SRCS= alloc.c char.c const.c csh.c dir.c dol.c err.c exec.c exp.c file.c \ 15 func.c glob.c hist.c init.c lex.c misc.c parse.c printf.c proc.c \ 16 sem.c set.c str.c strpct.c time.c 17.PATH: ${NETBSDSRCDIR}/usr.bin/printf 18 19MLINKS= csh.1 limit.1 csh.1 alias.1 csh.1 bg.1 csh.1 dirs.1 csh.1 fg.1 \ 20 csh.1 foreach.1 csh.1 history.1 csh.1 jobs.1 csh.1 popd.1 \ 21 csh.1 pushd.1 csh.1 rehash.1 csh.1 repeat.1 csh.1 suspend.1 \ 22 csh.1 stop.1 csh.1 source.1 23CLEANFILES+=errnum.h const.h 24 25const.h: errnum.h 26 27errnum.h: err.c 28 @rm -f ${.TARGET} 29 @echo '/* Do not edit this file, make creates it. */' > ${.TARGET} 30 @echo '#ifndef _h_sh_errnum' >> ${.TARGET} 31 @echo '#define _h_sh_errnum' >> ${.TARGET} 32 egrep 'ERR_' ${.ALLSRC} | egrep '^#define' >> ${.TARGET} 33 @echo '#endif /* _h_sh_errnum */' >> ${.TARGET} 34 35const.h: const.c 36 @rm -f ${.TARGET} 37 @echo '/* Do not edit this file, make creates it. */' > ${.TARGET} 38 ${CC} -E ${CPPFLAGS} ${.ALLSRC} | egrep 'Char STR' | \ 39 sed -e 's/Char \([a-zA-Z0-9_]*\)\(.*\)/extern Char \1[];/' | \ 40 sort >> ${.TARGET} 41 42${DEPENDSRCS} alloc.o: const.h errnum.h 43 44alloc.o const.o csh.o dir.o dol.o err.o exec.o exp.o file.o func.o glob.o \ 45 hist.o init.o lex.o misc.o parse.o proc.o sem.o set.o str.o time.o: const.h 46 47.if make(install) 48SUBDIR+=USD.doc 49.endif 50 51.include <bsd.prog.mk> 52.include <bsd.subdir.mk> 53