Deleted Added
full compact
Makefile (22988) Makefile (27965)
1# $Id: Makefile,v 1.7 1997/02/22 14:01:36 peter Exp $
1# @(#)Makefile 8.1 (Berkeley) 5/31/93
2# @(#)Makefile 8.1 (Berkeley) 5/31/93
2# $Id$
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
9PROG= csh
10DFLAGS=-DBUILTIN -DFILEC -DNLS -DSHORT_STRINGS
11CFLAGS+=-I${.CURDIR} -I. ${DFLAGS}
12SRCS= alloc.c char.c const.c csh.c dir.c dol.c err.c exec.c exp.c file.c \
13 func.c glob.c hist.c init.c lex.c misc.c parse.c printf.c proc.c \
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
9PROG= csh
10DFLAGS=-DBUILTIN -DFILEC -DNLS -DSHORT_STRINGS
11CFLAGS+=-I${.CURDIR} -I. ${DFLAGS}
12SRCS= alloc.c char.c const.c csh.c dir.c dol.c err.c exec.c exp.c file.c \
13 func.c glob.c hist.c init.c lex.c misc.c parse.c printf.c proc.c \
14 sem.c set.c str.c time.c const.h err.h
14 sem.c set.c str.c time.c const.h errnum.h
15.PATH: ${.CURDIR}/../../usr.bin/printf
16
17MAN1= csh.1
18MLINKS= csh.1 limit.1 csh.1 alias.1 csh.1 bg.1 csh.1 dirs.1 csh.1 fg.1 \
19 csh.1 foreach.1 csh.1 history.1 csh.1 jobs.1 csh.1 popd.1 \
20 csh.1 pushd.1 csh.1 rehash.1 csh.1 repeat.1 csh.1 suspend.1 \
21 csh.1 stop.1 csh.1 source.1
15.PATH: ${.CURDIR}/../../usr.bin/printf
16
17MAN1= csh.1
18MLINKS= csh.1 limit.1 csh.1 alias.1 csh.1 bg.1 csh.1 dirs.1 csh.1 fg.1 \
19 csh.1 foreach.1 csh.1 history.1 csh.1 jobs.1 csh.1 popd.1 \
20 csh.1 pushd.1 csh.1 rehash.1 csh.1 repeat.1 csh.1 suspend.1 \
21 csh.1 stop.1 csh.1 source.1
22CLEANFILES+=err.h const.h
22CLEANFILES+=const.h errnum.h
23
23
24const.h: err.h
24const.h: errnum.h
25
25
26err.h: err.c
27 @rm -f $@
28 @echo '/* Do not edit this file, make creates it. */' > $@
29 @echo '#ifndef _h_sh_err' >> $@
30 @echo '#define _h_sh_err' >> $@
31 egrep 'ERR_' ${.CURDIR}/$*.c | egrep '^#define' >> $@
32 @echo '#endif /* _h_sh_err */' >> $@
26errnum.h: err.c
27 @rm -f ${.TARGET}
28 @echo '/* Do not edit this file, make creates it. */' > ${.TARGET}
29 @echo '#ifndef _h_sh_error' >> ${.TARGET}
30 @echo '#define _h_sh_error' >> ${.TARGET}
31 egrep 'ERR_' ${.ALLSRC} | egrep '^#define' >> ${.TARGET}
32 @echo '#endif /* _h_sh_error */' >> ${.TARGET}
33
34const.h: const.c
35 @rm -f $@
36 @echo '/* Do not edit this file, make creates it. */' > $@
37 ${CC} -E ${CFLAGS} ${.CURDIR}/$*.c | egrep 'Char STR' | \
38 sed -e 's/Char \([a-zA-Z0-9_]*\)\(.*\)/extern Char \1[];/' | \
39 sort >> $@
40
41.include <bsd.prog.mk>
33
34const.h: const.c
35 @rm -f $@
36 @echo '/* Do not edit this file, make creates it. */' > $@
37 ${CC} -E ${CFLAGS} ${.CURDIR}/$*.c | egrep 'Char STR' | \
38 sed -e 's/Char \([a-zA-Z0-9_]*\)\(.*\)/extern Char \1[];/' | \
39 sort >> $@
40
41.include <bsd.prog.mk>