| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: Makefile,v 1.97 2020/08/31 06:44:12 rillig Exp $ | | 1 | # $NetBSD: Makefile,v 1.98 2020/08/31 16:41:19 rillig Exp $ |
2 | # @(#)Makefile 5.2 (Berkeley) 12/28/90 | | 2 | # @(#)Makefile 5.2 (Berkeley) 12/28/90 |
3 | | | 3 | |
4 | PROG= make | | 4 | PROG= make |
5 | SRCS= arch.c | | 5 | SRCS= arch.c |
6 | SRCS+= buf.c | | 6 | SRCS+= buf.c |
7 | SRCS+= compat.c | | 7 | SRCS+= compat.c |
8 | SRCS+= cond.c | | 8 | SRCS+= cond.c |
9 | SRCS+= dir.c | | 9 | SRCS+= dir.c |
10 | SRCS+= enum.c | | 10 | SRCS+= enum.c |
11 | SRCS+= for.c | | 11 | SRCS+= for.c |
12 | SRCS+= hash.c | | 12 | SRCS+= hash.c |
13 | SRCS+= job.c | | 13 | SRCS+= job.c |
14 | SRCS+= lst.c | | 14 | SRCS+= lst.c |
| @@ -79,26 +79,27 @@ COPTS.main.c+= -Wno-error=format-truncat | | | @@ -79,26 +79,27 @@ COPTS.main.c+= -Wno-error=format-truncat |
79 | COPTS.meta.c+= -Wno-error=format-truncation | | 79 | COPTS.meta.c+= -Wno-error=format-truncation |
80 | COPTS.parse.c+= -Wno-error=format-truncation | | 80 | COPTS.parse.c+= -Wno-error=format-truncation |
81 | .endif | | 81 | .endif |
82 | | | 82 | |
83 | # Whether to compile with GCC 8 from pkgsrc, during development. | | 83 | # Whether to compile with GCC 8 from pkgsrc, during development. |
84 | USE_GCC8?= no | | 84 | USE_GCC8?= no |
85 | .if ${USE_GCC8} == "yes" | | 85 | .if ${USE_GCC8} == "yes" |
86 | # CC is set further down in this file | | 86 | # CC is set further down in this file |
87 | COPTS+= -Wno-attributes # for abs and labs | | 87 | COPTS+= -Wno-attributes # for abs and labs |
88 | COPTS.arch.c+= -Wno-error=format-truncation | | 88 | COPTS.arch.c+= -Wno-error=format-truncation |
89 | COPTS.dir.c+= -Wno-error=format-truncation | | 89 | COPTS.dir.c+= -Wno-error=format-truncation |
90 | COPTS.main.c+= -Wno-error=format-truncation | | 90 | COPTS.main.c+= -Wno-error=format-truncation |
91 | COPTS.meta.c+= -Wno-error=format-truncation | | 91 | COPTS.meta.c+= -Wno-error=format-truncation |
| | | 92 | COPTS.parse.c+= -Wno-error=format-truncation |
92 | .endif | | 93 | .endif |
93 | | | 94 | |
94 | USE_META?= yes | | 95 | USE_META?= yes |
95 | .if ${USE_META:tl} != "no" | | 96 | .if ${USE_META:tl} != "no" |
96 | | | 97 | |
97 | SRCS+= meta.c | | 98 | SRCS+= meta.c |
98 | CPPFLAGS+= -DUSE_META | | 99 | CPPFLAGS+= -DUSE_META |
99 | | | 100 | |
100 | USE_FILEMON?= ktrace | | 101 | USE_FILEMON?= ktrace |
101 | . if ${USE_FILEMON:tl} != "no" | | 102 | . if ${USE_FILEMON:tl} != "no" |
102 | | | 103 | |
103 | .PATH: ${.CURDIR}/filemon | | 104 | .PATH: ${.CURDIR}/filemon |
104 | SRCS+= filemon_${USE_FILEMON}.c | | 105 | SRCS+= filemon_${USE_FILEMON}.c |