1# $FreeBSD: head/bin/csh/Makefile 145481 2005-04-24 19:44:43Z mp $
| 1# $FreeBSD: head/bin/csh/Makefile 148673 2005-08-03 09:22:03Z phk $
|
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 13.if defined(RESCUE) 14DFLAGS= -D_PATH_TCSHELL='"/rescue/${PROG}"' 15.else 16DFLAGS= -D_PATH_TCSHELL='"/bin/${PROG}"' 17.endif 18CFLAGS+= -I. -I${.CURDIR} -I${TCSHDIR} ${DFLAGS} 19WARNS?= 0 20SRCS= sh.c sh.dir.c sh.dol.c sh.err.c sh.exec.c sh.char.c \ 21 sh.exp.c sh.file.c sh.func.c sh.glob.c sh.hist.c sh.init.c \ 22 sh.lex.c sh.misc.c sh.parse.c sh.print.c sh.proc.c sh.sem.c \ 23 sh.set.c sh.time.c sh.char.h sh.dir.h sh.proc.h sh.h 24SRCS+= sh.decls.h glob.c glob.h mi.termios.c mi.wait.h mi.varargs.h 25SRCS+= tw.decls.h tw.h tw.help.c tw.init.c tw.parse.c tw.spell.c \ 26 tw.comp.c tw.color.c 27SRCS+= ed.chared.c ed.decls.h ed.defns.c ed.h ed.init.c ed.inputl.c \ 28 ed.refresh.c ed.screen.c ed.xmap.c ed.term.c ed.term.h 29SRCS+= tc.alloc.c tc.bind.c tc.const.c tc.decls.h tc.disc.c \ 30 tc.func.c tc.nls.c tc.os.c tc.os.h tc.printf.c tc.prompt.c \ 31 tc.sched.c tc.sig.c tc.sig.h tc.str.c sh.types.h tc.vers.c tc.wait.h \ 32 tc.who.c tc.h 33GENHDRS= ed.defns.h sh.err.h tc.const.h tc.defs.c 34SRCS+= ${GENHDRS} 35 36MLINKS= csh.1 tcsh.1 37# MLINKS for Shell built in commands for which there are no userland 38# utilities of the same name are handled with the associated manpage, 39# builtin.1 in share/man/man1/. 40 41DPADD= ${LIBTERMCAP} ${LIBCRYPT} 42LDADD= -ltermcap -lcrypt 43 44LINKS= ${BINDIR}/csh ${BINDIR}/tcsh 45 46CLEANFILES= ${GENHDRS} gethost csh.1 47
| 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 13.if defined(RESCUE) 14DFLAGS= -D_PATH_TCSHELL='"/rescue/${PROG}"' 15.else 16DFLAGS= -D_PATH_TCSHELL='"/bin/${PROG}"' 17.endif 18CFLAGS+= -I. -I${.CURDIR} -I${TCSHDIR} ${DFLAGS} 19WARNS?= 0 20SRCS= sh.c sh.dir.c sh.dol.c sh.err.c sh.exec.c sh.char.c \ 21 sh.exp.c sh.file.c sh.func.c sh.glob.c sh.hist.c sh.init.c \ 22 sh.lex.c sh.misc.c sh.parse.c sh.print.c sh.proc.c sh.sem.c \ 23 sh.set.c sh.time.c sh.char.h sh.dir.h sh.proc.h sh.h 24SRCS+= sh.decls.h glob.c glob.h mi.termios.c mi.wait.h mi.varargs.h 25SRCS+= tw.decls.h tw.h tw.help.c tw.init.c tw.parse.c tw.spell.c \ 26 tw.comp.c tw.color.c 27SRCS+= ed.chared.c ed.decls.h ed.defns.c ed.h ed.init.c ed.inputl.c \ 28 ed.refresh.c ed.screen.c ed.xmap.c ed.term.c ed.term.h 29SRCS+= tc.alloc.c tc.bind.c tc.const.c tc.decls.h tc.disc.c \ 30 tc.func.c tc.nls.c tc.os.c tc.os.h tc.printf.c tc.prompt.c \ 31 tc.sched.c tc.sig.c tc.sig.h tc.str.c sh.types.h tc.vers.c tc.wait.h \ 32 tc.who.c tc.h 33GENHDRS= ed.defns.h sh.err.h tc.const.h tc.defs.c 34SRCS+= ${GENHDRS} 35 36MLINKS= csh.1 tcsh.1 37# MLINKS for Shell built in commands for which there are no userland 38# utilities of the same name are handled with the associated manpage, 39# builtin.1 in share/man/man1/. 40 41DPADD= ${LIBTERMCAP} ${LIBCRYPT} 42LDADD= -ltermcap -lcrypt 43 44LINKS= ${BINDIR}/csh ${BINDIR}/tcsh 45 46CLEANFILES= ${GENHDRS} gethost csh.1 47
|
| 48.if !defined(NO_EXAMPLES)
|
48FILESDIR= ${SHAREDIR}/examples/tcsh 49FILES= complete.tcsh csh-mode.el
| 49FILESDIR= ${SHAREDIR}/examples/tcsh 50FILES= complete.tcsh csh-mode.el
|
| 51.endif
|
50 51CATALOGS= et:et_EE.ISO8859-15 \ 52 finnish:fi_FI.ISO8859-1 \ 53 french:fr_FR.ISO8859-1 \ 54 german:de_DE.ISO8859-1 \ 55 greek:el_GR.ISO8859-7 \ 56 italian:it_IT.ISO8859-1 \ 57 ja:ja_JP.eucJP \ 58 russian:ru_RU.KOI8-R \ 59 spanish:es_ES.ISO8859-1 \ 60 ukrainian:uk_UA.KOI8-U 61 62NLSLINKS_fi_FI.ISO8859-1= fi_FI.ISO8859-15 63NLSLINKS_fr_FR.ISO8859-1= fr_BE.ISO8859-1 fr_BE.ISO8859-15 \ 64 fr_CA.ISO8859-1 fr_CA.ISO8859-15 fr_CH.ISO8859-1 \ 65 fr_CH.ISO8859-15 fr_FR.ISO8859-15 66NLSLINKS_de_DE.ISO8859-1= de_AT.ISO8859-1 de_AT.ISO8859-15 de_CH.ISO8859-1 \ 67 de_CH.ISO8859-15 de_DE.ISO8859-15 68NLSLINKS_it_IT.ISO8859-1= it_CH.ISO8859-1 it_CH.ISO8859-15 it_IT.ISO8859-15 69NLSLINKS_es_ES.ISO8859-1= es_ES.ISO8859-15 70 71NLSNAME= tcsh 72 73.for catalog in ${CATALOGS} 74NLS+= ${catalog:C/.*://} 75NLSSRCDIR_${catalog:C/.*://}= ${TCSHDIR}/nls/${catalog:C/:.*//} 76NLSSRCFILES_${catalog:C/.*://}!= cd ${NLSSRCDIR_${catalog:C/.*://}}; echo set[0-9]* 77.endfor 78 79csh.1: tcsh.man 80 cat ${.ALLSRC} > ${.TARGET} 81 82build-tools: gethost 83 84gethost: gethost.c sh.err.h tc.const.h sh.h 85 @rm -f ${.TARGET} 86 ${CC} -o gethost ${LDFLAGS} ${CFLAGS} ${TCSHDIR}/gethost.c 87 88tc.defs.c: gethost ${.CURDIR}/host.defs 89 @rm -f ${.TARGET} 90 @echo "/* Do not edit this file, make creates it */" > ${.TARGET} 91 ./gethost ${.CURDIR}/host.defs >> ${.TARGET} 92 93ed.defns.h: ed.defns.c 94 @rm -f ${.TARGET} 95 @echo '/* Do not edit this file, make creates it. */' > ${.TARGET} 96 @echo '#ifndef _h_ed_defns' >> ${.TARGET} 97 @echo '#define _h_ed_defns' >> ${.TARGET} 98 grep '[FV]_' ${TCSHDIR}/ed.defns.c | grep '^#define' >> ${.TARGET} 99 @echo '#endif /* _h_ed_defns */' >> ${.TARGET} 100 101sh.err.h: sh.err.c 102 @rm -f ${.TARGET} 103 @echo '/* Do not edit this file, make creates it. */' > ${.TARGET} 104 @echo '#ifndef _h_sh_err' >> ${.TARGET} 105 @echo '#define _h_sh_err' >> ${.TARGET} 106 grep 'ERR_' ${.ALLSRC} | grep '^#define' >> ${.TARGET} 107 @echo '#endif /* _h_sh_err */' >> ${.TARGET} 108 109tc.const.h: tc.const.c sh.char.h config.h config_f.h sh.types.h sh.err.h 110 @rm -f ${.TARGET} 111 @echo '/* Do not edit this file, make creates it. */' > ${.TARGET} 112 @echo '#ifndef _h_tc_const' >> ${.TARGET} 113 @echo '#define _h_tc_const' >> ${.TARGET} 114 ${CC} -E ${CFLAGS} ${.ALLSRC} -D_h_tc_const | grep 'Char STR' | \ 115 sed -e 's/Char \([a-zA-Z0-9_]*\)\(.*\)/extern Char \1[];/' | \ 116 sort >> ${.TARGET} 117 @echo '#endif /* _h_tc_const */' >> ${.TARGET} 118 119.include <bsd.prog.mk>
| 52 53CATALOGS= et:et_EE.ISO8859-15 \ 54 finnish:fi_FI.ISO8859-1 \ 55 french:fr_FR.ISO8859-1 \ 56 german:de_DE.ISO8859-1 \ 57 greek:el_GR.ISO8859-7 \ 58 italian:it_IT.ISO8859-1 \ 59 ja:ja_JP.eucJP \ 60 russian:ru_RU.KOI8-R \ 61 spanish:es_ES.ISO8859-1 \ 62 ukrainian:uk_UA.KOI8-U 63 64NLSLINKS_fi_FI.ISO8859-1= fi_FI.ISO8859-15 65NLSLINKS_fr_FR.ISO8859-1= fr_BE.ISO8859-1 fr_BE.ISO8859-15 \ 66 fr_CA.ISO8859-1 fr_CA.ISO8859-15 fr_CH.ISO8859-1 \ 67 fr_CH.ISO8859-15 fr_FR.ISO8859-15 68NLSLINKS_de_DE.ISO8859-1= de_AT.ISO8859-1 de_AT.ISO8859-15 de_CH.ISO8859-1 \ 69 de_CH.ISO8859-15 de_DE.ISO8859-15 70NLSLINKS_it_IT.ISO8859-1= it_CH.ISO8859-1 it_CH.ISO8859-15 it_IT.ISO8859-15 71NLSLINKS_es_ES.ISO8859-1= es_ES.ISO8859-15 72 73NLSNAME= tcsh 74 75.for catalog in ${CATALOGS} 76NLS+= ${catalog:C/.*://} 77NLSSRCDIR_${catalog:C/.*://}= ${TCSHDIR}/nls/${catalog:C/:.*//} 78NLSSRCFILES_${catalog:C/.*://}!= cd ${NLSSRCDIR_${catalog:C/.*://}}; echo set[0-9]* 79.endfor 80 81csh.1: tcsh.man 82 cat ${.ALLSRC} > ${.TARGET} 83 84build-tools: gethost 85 86gethost: gethost.c sh.err.h tc.const.h sh.h 87 @rm -f ${.TARGET} 88 ${CC} -o gethost ${LDFLAGS} ${CFLAGS} ${TCSHDIR}/gethost.c 89 90tc.defs.c: gethost ${.CURDIR}/host.defs 91 @rm -f ${.TARGET} 92 @echo "/* Do not edit this file, make creates it */" > ${.TARGET} 93 ./gethost ${.CURDIR}/host.defs >> ${.TARGET} 94 95ed.defns.h: ed.defns.c 96 @rm -f ${.TARGET} 97 @echo '/* Do not edit this file, make creates it. */' > ${.TARGET} 98 @echo '#ifndef _h_ed_defns' >> ${.TARGET} 99 @echo '#define _h_ed_defns' >> ${.TARGET} 100 grep '[FV]_' ${TCSHDIR}/ed.defns.c | grep '^#define' >> ${.TARGET} 101 @echo '#endif /* _h_ed_defns */' >> ${.TARGET} 102 103sh.err.h: sh.err.c 104 @rm -f ${.TARGET} 105 @echo '/* Do not edit this file, make creates it. */' > ${.TARGET} 106 @echo '#ifndef _h_sh_err' >> ${.TARGET} 107 @echo '#define _h_sh_err' >> ${.TARGET} 108 grep 'ERR_' ${.ALLSRC} | grep '^#define' >> ${.TARGET} 109 @echo '#endif /* _h_sh_err */' >> ${.TARGET} 110 111tc.const.h: tc.const.c sh.char.h config.h config_f.h sh.types.h sh.err.h 112 @rm -f ${.TARGET} 113 @echo '/* Do not edit this file, make creates it. */' > ${.TARGET} 114 @echo '#ifndef _h_tc_const' >> ${.TARGET} 115 @echo '#define _h_tc_const' >> ${.TARGET} 116 ${CC} -E ${CFLAGS} ${.ALLSRC} -D_h_tc_const | grep 'Char STR' | \ 117 sed -e 's/Char \([a-zA-Z0-9_]*\)\(.*\)/extern Char \1[];/' | \ 118 sort >> ${.TARGET} 119 @echo '#endif /* _h_tc_const */' >> ${.TARGET} 120 121.include <bsd.prog.mk>
|