| @@ -1,30 +1,32 @@ | | | @@ -1,30 +1,32 @@ |
1 | # $NetBSD: Makefile,v 1.36 2013/01/23 16:39:03 christos Exp $ | | 1 | # $NetBSD: Makefile,v 1.37 2013/01/25 14:20:57 christos Exp $ |
2 | # @(#)Makefile 8.1 (Berkeley) 5/31/93 | | 2 | # @(#)Makefile 8.1 (Berkeley) 5/31/93 |
3 | # | | 3 | # |
4 | # C Shell with process control; VM/UNIX VAX Makefile | | 4 | # C Shell with process control; VM/UNIX VAX Makefile |
5 | # Bill Joy UC Berkeley; Jim Kulp IIASA, Austria | | 5 | # Bill Joy UC Berkeley; Jim Kulp IIASA, Austria |
6 | # | | 6 | # |
7 | # To profile, put -DPROF in DFLAGS and -pg in COPTS, and recompile. | | 7 | # To profile, put -DPROF in DFLAGS and -pg in COPTS, and recompile. |
8 | | | 8 | |
9 | .include <bsd.own.mk> | | 9 | .include <bsd.own.mk> |
10 | | | 10 | |
11 | PROG= csh | | 11 | PROG= csh |
12 | DFLAGS=-DBUILTIN -DFILEC -DNLS -DSHORT_STRINGS | | 12 | DFLAGS=-DBUILTIN -DFILEC -DNLS -DSHORT_STRINGS |
13 | # - Editor history not always aligned with shell history, | | 13 | # - Editor history not always aligned with shell history, |
14 | # should implement internally | | 14 | # should implement internally |
15 | # - Does not handle escaped prompts. | | 15 | # - Does not handle escaped prompts. |
16 | # - Does not do completion | | 16 | # - Does not do completion |
| | | 17 | .ifndef SMALLPROG |
17 | DFLAGS+=-DEDIT | | 18 | DFLAGS+=-DEDIT |
| | | 19 | .endif |
18 | CPPFLAGS+=-I${.CURDIR} -I. ${DFLAGS} | | 20 | CPPFLAGS+=-I${.CURDIR} -I. ${DFLAGS} |
19 | SRCS= alloc.c char.c const.c csh.c dir.c dol.c err.c exec.c exp.c file.c \ | | 21 | SRCS= alloc.c char.c const.c csh.c dir.c dol.c err.c exec.c exp.c file.c \ |
20 | func.c glob.c hist.c init.c lex.c misc.c parse.c printf.c proc.c \ | | 22 | func.c glob.c hist.c init.c lex.c misc.c parse.c printf.c proc.c \ |
21 | sem.c set.c str.c time.c | | 23 | sem.c set.c str.c time.c |
22 | .PATH: ${NETBSDSRCDIR}/usr.bin/printf | | 24 | .PATH: ${NETBSDSRCDIR}/usr.bin/printf |
23 | | | 25 | |
24 | MLINKS= csh.1 limit.1 csh.1 alias.1 csh.1 bg.1 csh.1 dirs.1 csh.1 fg.1 \ | | 26 | MLINKS= csh.1 limit.1 csh.1 alias.1 csh.1 bg.1 csh.1 dirs.1 csh.1 fg.1 \ |
25 | csh.1 foreach.1 csh.1 history.1 csh.1 jobs.1 csh.1 popd.1 \ | | 27 | csh.1 foreach.1 csh.1 history.1 csh.1 jobs.1 csh.1 popd.1 \ |
26 | csh.1 pushd.1 csh.1 rehash.1 csh.1 repeat.1 csh.1 suspend.1 \ | | 28 | csh.1 pushd.1 csh.1 rehash.1 csh.1 repeat.1 csh.1 suspend.1 \ |
27 | csh.1 stop.1 csh.1 source.1 | | 29 | csh.1 stop.1 csh.1 source.1 |
28 | | | 30 | |
29 | DPSRCS+= errnum.h const.h | | 31 | DPSRCS+= errnum.h const.h |
30 | CLEANFILES+= errnum.h const.h | | 32 | CLEANFILES+= errnum.h const.h |