Makefile revision 62759
150471Speter# $FreeBSD: head/bin/csh/Makefile 62759 2000-07-07 08:27:59Z ache $ 21556Srgrimes# @(#)Makefile 8.1 (Berkeley) 5/31/93 31556Srgrimes# 41556Srgrimes# C Shell with process control; VM/UNIX VAX Makefile 51556Srgrimes# Bill Joy UC Berkeley; Jim Kulp IIASA, Austria 61556Srgrimes# 71556Srgrimes# To profile, put -DPROF in DEFS and -pg in CFLAGS, and recompile. 81556Srgrimes 959576SobrienTCSHDIR= ${.CURDIR}/../../contrib/tcsh 1059355Sobrien.PATH: ${TCSHDIR} 1159355Sobrien 121556SrgrimesPROG= csh 1359432SacheSUBDIR= nls 1459355SobrienDFLAGS= -D_PATH_TCSHELL='"${DESTDIR}/bin/${PROG}"' 1559355SobrienCFLAGS+= -I${TCSHDIR} -I${.CURDIR} -I. ${DFLAGS} 1659355SobrienSRCS= sh.c sh.dir.c sh.dol.c sh.err.c sh.exec.c sh.char.c \ 1759355Sobrien sh.exp.c sh.file.c sh.func.c sh.glob.c sh.hist.c sh.init.c \ 1859355Sobrien sh.lex.c sh.misc.c sh.parse.c sh.print.c sh.proc.c sh.sem.c \ 1959355Sobrien sh.set.c sh.time.c sh.h sh.char.h sh.dir.h sh.proc.h 2059355SobrienSRCS+= sh.decls.h glob.c glob.h mi.termios.c mi.wait.h mi.varargs.h 2159355SobrienSRCS+= tw.decls.h tw.h tw.help.c tw.init.c tw.parse.c tw.spell.c \ 2259355Sobrien tw.comp.c tw.color.c 2359355SobrienSRCS+= ed.chared.c ed.decls.h ed.defns.c ed.h ed.init.c ed.inputl.c \ 2459355Sobrien ed.refresh.c ed.screen.c ed.xmap.c ed.term.c ed.term.h 2559355SobrienSRCS+= tc.alloc.c tc.bind.c tc.const.c tc.decls.h tc.disc.c \ 2659355Sobrien tc.func.c tc.os.c tc.os.h tc.printf.c tc.prompt.c \ 2759355Sobrien tc.sched.c tc.sig.c tc.sig.h tc.str.c sh.types.h tc.vers.c tc.wait.h \ 2859355Sobrien tc.who.c tc.h 2959355SobrienSRCS+= tc.defs.c 3060599SbdeGENHDRS= ed.defns.h sh.err.h tc.const.h 3160599SbdeSRCS+= ${GENHDRS} 321556Srgrimes 331864SwollmanMAN1= csh.1 3460029SjkoshyMLINKS= csh.1 tcsh.1 3551090Ssheldonh# MLINKS for Shell built in commands for which there are no userland 3651090Ssheldonh# utilities of the same name are handled with the associated manpage, 3751090Ssheldonh# builtin.1 in share/man/man1/. 3851090Ssheldonh 3962759SacheDPADD= ${LIBTERMCAP} ${LIBCRYPT} 4062759SacheLDADD= -ltermcap -lcrypt 411556Srgrimes 4259393SobrienLINKS= ${BINDIR}/csh ${BINDIR}/tcsh 4359393Sobrien 4460599SbdeCLEANFILES= ${GENHDRS} csh.1 4560599Sbde 4659355Sobriencsh.1: tcsh.man 4759355Sobrien ln -sf ${.ALLSRC} ${.TARGET} 481556Srgrimes 4959355Sobriened.defns.h: ed.defns.c 5027965Ssteve @rm -f ${.TARGET} 5127965Ssteve @echo '/* Do not edit this file, make creates it. */' > ${.TARGET} 5259355Sobrien @echo '#ifndef _h_ed_defns' >> ${.TARGET} 5359355Sobrien @echo '#define _h_ed_defns' >> ${.TARGET} 5459355Sobrien grep '[FV]_' ${TCSHDIR}/ed.defns.c | grep '^#define' >> ${.TARGET} 5559355Sobrien @echo '#endif /* _h_ed_defns */' >> ${.TARGET} 5659355Sobrien 5759355Sobriensh.err.h: sh.err.c 5859355Sobrien @rm -f ${.TARGET} 5959355Sobrien @echo '/* Do not edit this file, make creates it. */' > ${.TARGET} 6059355Sobrien @echo '#ifndef _h_sh_err' >> ${.TARGET} 6159355Sobrien @echo '#define _h_sh_err' >> ${.TARGET} 6227965Ssteve egrep 'ERR_' ${.ALLSRC} | egrep '^#define' >> ${.TARGET} 6359355Sobrien @echo '#endif /* _h_sh_err */' >> ${.TARGET} 641556Srgrimes 6559355Sobrientc.const.h: tc.const.c sh.char.h config.h config_f.h sh.types.h sh.err.h 6627969Ssteve @rm -f ${.TARGET} 6727969Ssteve @echo '/* Do not edit this file, make creates it. */' > ${.TARGET} 6859355Sobrien @echo '#ifndef _h_tc_const' >> ${.TARGET} 6959355Sobrien @echo '#define _h_tc_const' >> ${.TARGET} 7059355Sobrien ${CC} -E ${CFLAGS} ${.ALLSRC} -D_h_tc_const | egrep 'Char STR' | \ 711556Srgrimes sed -e 's/Char \([a-zA-Z0-9_]*\)\(.*\)/extern Char \1[];/' | \ 7227969Ssteve sort >> ${.TARGET} 7359355Sobrien @echo '#endif /* _h_tc_const */' >> ${.TARGET} 741556Srgrimes 751556Srgrimes.include <bsd.prog.mk> 76