| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: Makefile,v 1.37 2013/01/25 14:20:57 christos Exp $ | | 1 | # $NetBSD: Makefile,v 1.38 2013/01/25 19:07:14 he 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 |
| @@ -54,22 +54,22 @@ const.h: const.c | | | @@ -54,22 +54,22 @@ const.h: const.c |
54 | .if make(install) | | 54 | .if make(install) |
55 | SUBDIR+=USD.doc | | 55 | SUBDIR+=USD.doc |
56 | .endif | | 56 | .endif |
57 | | | 57 | |
58 | # XXX Only GCC 4.1 problem | | 58 | # XXX Only GCC 4.1 problem |
59 | .if defined(HAVE_GCC) && ${HAVE_GCC} == 4 && ${MACHINE_ARCH} == "vax" | | 59 | .if defined(HAVE_GCC) && ${HAVE_GCC} == 4 && ${MACHINE_ARCH} == "vax" |
60 | COPTS.parse.c+= -O0 | | 60 | COPTS.parse.c+= -O0 |
61 | .endif | | 61 | .endif |
62 | COPTS.err.c = -Wno-format-nonliteral | | 62 | COPTS.err.c = -Wno-format-nonliteral |
63 | COPTS.printf.c = -Wno-format-nonliteral | | 63 | COPTS.printf.c = -Wno-format-nonliteral |
64 | COPTS.proc.c = -Wno-format-nonliteral | | 64 | COPTS.proc.c = -Wno-format-nonliteral |
65 | | | 65 | |
66 | .if !empty(DFLAGS:M*EDIT) | | 66 | .if !empty(DFLAGS:M*EDIT) |
67 | LDADD+=-ledit -lutil | | 67 | LDADD+=-ledit -lterminfo -lutil |
68 | DPADD+=${LIBEDIT} ${LIBUTIL} | | 68 | DPADD+=${LIBEDIT} ${LIBUTIL} |
69 | .else | | 69 | .else |
70 | LDADD+=-lutil | | 70 | LDADD+=-lutil |
71 | DPADD+=${LIBUTIL} | | 71 | DPADD+=${LIBUTIL} |
72 | .endif | | 72 | .endif |
73 | | | 73 | |
74 | .include <bsd.prog.mk> | | 74 | .include <bsd.prog.mk> |
75 | .include <bsd.subdir.mk> | | 75 | .include <bsd.subdir.mk> |