Makefile revision 59432
150477Speter# $FreeBSD: head/bin/csh/Makefile 59432 2000-04-20 08:58:11Z ache $ 22729Sdfr# @(#)Makefile 8.1 (Berkeley) 5/31/93 32729Sdfr# 42729Sdfr# C Shell with process control; VM/UNIX VAX Makefile 52729Sdfr# Bill Joy UC Berkeley; Jim Kulp IIASA, Austria 62729Sdfr# 72729Sdfr# To profile, put -DPROF in DEFS and -pg in CFLAGS, and recompile. 82729Sdfr 92729SdfrTCSHDIR= ${.CURDIR}/../../contrib/tcsh 102729Sdfr.PATH: ${TCSHDIR} 112729Sdfr 122729SdfrPROG= csh 132729SdfrSUBDIR= nls 142729SdfrDFLAGS= -D_PATH_TCSHELL='"${DESTDIR}/bin/${PROG}"' 152729SdfrCFLAGS+= -I${TCSHDIR} -I${.CURDIR} -I. ${DFLAGS} 162729SdfrSRCS= sh.c sh.dir.c sh.dol.c sh.err.c sh.exec.c sh.char.c \ 172729Sdfr sh.exp.c sh.file.c sh.func.c sh.glob.c sh.hist.c sh.init.c \ 182729Sdfr sh.lex.c sh.misc.c sh.parse.c sh.print.c sh.proc.c sh.sem.c \ 192729Sdfr sh.set.c sh.time.c sh.h sh.char.h sh.dir.h sh.proc.h 202729SdfrSRCS+= sh.decls.h glob.c glob.h mi.termios.c mi.wait.h mi.varargs.h 212729SdfrSRCS+= tw.decls.h tw.h tw.help.c tw.init.c tw.parse.c tw.spell.c \ 2259839Speter tw.comp.c tw.color.c 2359839SpeterSRCS+= ed.chared.c ed.decls.h ed.defns.c ed.h ed.init.c ed.inputl.c \ 242729Sdfr ed.refresh.c ed.screen.c ed.xmap.c ed.term.c ed.term.h 252729SdfrSRCS+= tc.alloc.c tc.bind.c tc.const.c tc.decls.h tc.disc.c \ 2611626Sbde tc.func.c tc.os.c tc.os.h tc.printf.c tc.prompt.c \ 272729Sdfr tc.sched.c tc.sig.c tc.sig.h tc.str.c sh.types.h tc.vers.c tc.wait.h \ 282729Sdfr tc.who.c tc.h 2982607SdillonSRCS+= tc.defs.c 3082607Sdillon 312729SdfrMAN1= csh.1 3269449Salfred# MLINKS for Shell built in commands for which there are no userland 3311626Sbde# utilities of the same name are handled with the associated manpage, 3459839Speter# builtin.1 in share/man/man1/. 3559839Speter 3668024SrwatsonDPADD+= ${LIBNCURSES} ${LIBCRYPT} 372729SdfrLDADD+= -lncurses -lcrypt 3859839Speter 3959839SpeterLINKS= ${BINDIR}/csh ${BINDIR}/tcsh 4069449Salfred 4169449Salfredcsh.1: tcsh.man 4269449Salfred ln -sf ${.ALLSRC} ${.TARGET} 4310358Sjulian 442729SdfrGENHDRS+= ed.defns.h tc.const.h sh.err.h 452729SdfrSRCS+= ${GENHDRS} 462729SdfrCLEANFILES+= ${GENHDRS} 4711626Sbde 482729Sdfred.defns.h: ed.defns.c 4911626Sbde @rm -f ${.TARGET} 5012819Sphk @echo '/* Do not edit this file, make creates it. */' > ${.TARGET} 5111626Sbde @echo '#ifndef _h_ed_defns' >> ${.TARGET} 5211626Sbde @echo '#define _h_ed_defns' >> ${.TARGET} 5311626Sbde grep '[FV]_' ${TCSHDIR}/ed.defns.c | grep '^#define' >> ${.TARGET} 542729Sdfr @echo '#endif /* _h_ed_defns */' >> ${.TARGET} 5559839Speter 5659839Spetersh.err.h: sh.err.c 5759839Speter @rm -f ${.TARGET} 5859839Speter @echo '/* Do not edit this file, make creates it. */' > ${.TARGET} 5959839Speter @echo '#ifndef _h_sh_err' >> ${.TARGET} 6059839Speter @echo '#define _h_sh_err' >> ${.TARGET} 6159839Speter egrep 'ERR_' ${.ALLSRC} | egrep '^#define' >> ${.TARGET} 6259839Speter @echo '#endif /* _h_sh_err */' >> ${.TARGET} 6359839Speter 6459839Spetertc.const.h: tc.const.c sh.char.h config.h config_f.h sh.types.h sh.err.h 6559839Speter @rm -f ${.TARGET} 6659839Speter @echo '/* Do not edit this file, make creates it. */' > ${.TARGET} 6759839Speter @echo '#ifndef _h_tc_const' >> ${.TARGET} 6859839Speter @echo '#define _h_tc_const' >> ${.TARGET} 6959839Speter ${CC} -E ${CFLAGS} ${.ALLSRC} -D_h_tc_const | egrep 'Char STR' | \ 7059839Speter sed -e 's/Char \([a-zA-Z0-9_]*\)\(.*\)/extern Char \1[];/' | \ 7159839Speter sort >> ${.TARGET} 7259839Speter @echo '#endif /* _h_tc_const */' >> ${.TARGET} 7359839Speter 7459839Speter.include <bsd.prog.mk> 7559839Speter