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