1# $FreeBSD: head/bin/csh/Makefile 59355 2000-04-18 07:31:36Z obrien $
| 1# $FreeBSD: head/bin/csh/Makefile 59393 2000-04-19 15:15:19Z obrien $
|
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 DEFS and -pg in CFLAGS, and recompile. 8 9TCSHDIR= ${.CURDIR}/../../contrib/tcsh 10.PATH: ${TCSHDIR} 11 12PROG= csh 13DFLAGS= -D_PATH_TCSHELL='"${DESTDIR}/bin/${PROG}"' 14CFLAGS+= -I${TCSHDIR} -I${.CURDIR} -I. ${DFLAGS} 15SRCS= sh.c sh.dir.c sh.dol.c sh.err.c sh.exec.c sh.char.c \ 16 sh.exp.c sh.file.c sh.func.c sh.glob.c sh.hist.c sh.init.c \ 17 sh.lex.c sh.misc.c sh.parse.c sh.print.c sh.proc.c sh.sem.c \ 18 sh.set.c sh.time.c sh.h sh.char.h sh.dir.h sh.proc.h 19SRCS+= sh.decls.h glob.c glob.h mi.termios.c mi.wait.h mi.varargs.h 20SRCS+= tw.decls.h tw.h tw.help.c tw.init.c tw.parse.c tw.spell.c \ 21 tw.comp.c tw.color.c 22SRCS+= ed.chared.c ed.decls.h ed.defns.c ed.h ed.init.c ed.inputl.c \ 23 ed.refresh.c ed.screen.c ed.xmap.c ed.term.c ed.term.h 24SRCS+= tc.alloc.c tc.bind.c tc.const.c tc.decls.h tc.disc.c \ 25 tc.func.c tc.os.c tc.os.h tc.printf.c tc.prompt.c \ 26 tc.sched.c tc.sig.c tc.sig.h tc.str.c sh.types.h tc.vers.c tc.wait.h \ 27 tc.who.c tc.h 28SRCS+= tc.defs.c 29 30MAN1= csh.1 31# MLINKS for Shell built in commands for which there are no userland 32# utilities of the same name are handled with the associated manpage, 33# builtin.1 in share/man/man1/. 34 35DPADD+= ${LIBNCURSES} ${LIBCRYPT} 36LDADD+= -lncurses -lcrypt 37
| 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 DEFS and -pg in CFLAGS, and recompile. 8 9TCSHDIR= ${.CURDIR}/../../contrib/tcsh 10.PATH: ${TCSHDIR} 11 12PROG= csh 13DFLAGS= -D_PATH_TCSHELL='"${DESTDIR}/bin/${PROG}"' 14CFLAGS+= -I${TCSHDIR} -I${.CURDIR} -I. ${DFLAGS} 15SRCS= sh.c sh.dir.c sh.dol.c sh.err.c sh.exec.c sh.char.c \ 16 sh.exp.c sh.file.c sh.func.c sh.glob.c sh.hist.c sh.init.c \ 17 sh.lex.c sh.misc.c sh.parse.c sh.print.c sh.proc.c sh.sem.c \ 18 sh.set.c sh.time.c sh.h sh.char.h sh.dir.h sh.proc.h 19SRCS+= sh.decls.h glob.c glob.h mi.termios.c mi.wait.h mi.varargs.h 20SRCS+= tw.decls.h tw.h tw.help.c tw.init.c tw.parse.c tw.spell.c \ 21 tw.comp.c tw.color.c 22SRCS+= ed.chared.c ed.decls.h ed.defns.c ed.h ed.init.c ed.inputl.c \ 23 ed.refresh.c ed.screen.c ed.xmap.c ed.term.c ed.term.h 24SRCS+= tc.alloc.c tc.bind.c tc.const.c tc.decls.h tc.disc.c \ 25 tc.func.c tc.os.c tc.os.h tc.printf.c tc.prompt.c \ 26 tc.sched.c tc.sig.c tc.sig.h tc.str.c sh.types.h tc.vers.c tc.wait.h \ 27 tc.who.c tc.h 28SRCS+= tc.defs.c 29 30MAN1= csh.1 31# MLINKS for Shell built in commands for which there are no userland 32# utilities of the same name are handled with the associated manpage, 33# builtin.1 in share/man/man1/. 34 35DPADD+= ${LIBNCURSES} ${LIBCRYPT} 36LDADD+= -lncurses -lcrypt 37
|
| 38LINKS= ${BINDIR}/csh ${BINDIR}/tcsh 39
|
38csh.1: tcsh.man 39 ln -sf ${.ALLSRC} ${.TARGET} 40 41GENHDRS+= ed.defns.h tc.const.h sh.err.h 42SRCS+= ${GENHDRS} 43CLEANFILES+= ${GENHDRS} 44 45ed.defns.h: ed.defns.c 46 @rm -f ${.TARGET} 47 @echo '/* Do not edit this file, make creates it. */' > ${.TARGET} 48 @echo '#ifndef _h_ed_defns' >> ${.TARGET} 49 @echo '#define _h_ed_defns' >> ${.TARGET} 50 grep '[FV]_' ${TCSHDIR}/ed.defns.c | grep '^#define' >> ${.TARGET} 51 @echo '#endif /* _h_ed_defns */' >> ${.TARGET} 52 53sh.err.h: sh.err.c 54 @rm -f ${.TARGET} 55 @echo '/* Do not edit this file, make creates it. */' > ${.TARGET} 56 @echo '#ifndef _h_sh_err' >> ${.TARGET} 57 @echo '#define _h_sh_err' >> ${.TARGET} 58 egrep 'ERR_' ${.ALLSRC} | egrep '^#define' >> ${.TARGET} 59 @echo '#endif /* _h_sh_err */' >> ${.TARGET} 60 61tc.const.h: tc.const.c sh.char.h config.h config_f.h sh.types.h sh.err.h 62 @rm -f ${.TARGET} 63 @echo '/* Do not edit this file, make creates it. */' > ${.TARGET} 64 @echo '#ifndef _h_tc_const' >> ${.TARGET} 65 @echo '#define _h_tc_const' >> ${.TARGET} 66 ${CC} -E ${CFLAGS} ${.ALLSRC} -D_h_tc_const | egrep 'Char STR' | \ 67 sed -e 's/Char \([a-zA-Z0-9_]*\)\(.*\)/extern Char \1[];/' | \ 68 sort >> ${.TARGET} 69 @echo '#endif /* _h_tc_const */' >> ${.TARGET} 70 71.include <bsd.prog.mk>
| 40csh.1: tcsh.man 41 ln -sf ${.ALLSRC} ${.TARGET} 42 43GENHDRS+= ed.defns.h tc.const.h sh.err.h 44SRCS+= ${GENHDRS} 45CLEANFILES+= ${GENHDRS} 46 47ed.defns.h: ed.defns.c 48 @rm -f ${.TARGET} 49 @echo '/* Do not edit this file, make creates it. */' > ${.TARGET} 50 @echo '#ifndef _h_ed_defns' >> ${.TARGET} 51 @echo '#define _h_ed_defns' >> ${.TARGET} 52 grep '[FV]_' ${TCSHDIR}/ed.defns.c | grep '^#define' >> ${.TARGET} 53 @echo '#endif /* _h_ed_defns */' >> ${.TARGET} 54 55sh.err.h: sh.err.c 56 @rm -f ${.TARGET} 57 @echo '/* Do not edit this file, make creates it. */' > ${.TARGET} 58 @echo '#ifndef _h_sh_err' >> ${.TARGET} 59 @echo '#define _h_sh_err' >> ${.TARGET} 60 egrep 'ERR_' ${.ALLSRC} | egrep '^#define' >> ${.TARGET} 61 @echo '#endif /* _h_sh_err */' >> ${.TARGET} 62 63tc.const.h: tc.const.c sh.char.h config.h config_f.h sh.types.h sh.err.h 64 @rm -f ${.TARGET} 65 @echo '/* Do not edit this file, make creates it. */' > ${.TARGET} 66 @echo '#ifndef _h_tc_const' >> ${.TARGET} 67 @echo '#define _h_tc_const' >> ${.TARGET} 68 ${CC} -E ${CFLAGS} ${.ALLSRC} -D_h_tc_const | egrep 'Char STR' | \ 69 sed -e 's/Char \([a-zA-Z0-9_]*\)\(.*\)/extern Char \1[];/' | \ 70 sort >> ${.TARGET} 71 @echo '#endif /* _h_tc_const */' >> ${.TARGET} 72 73.include <bsd.prog.mk>
|