| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: Makefile,v 1.98 2020/08/31 16:41:19 rillig Exp $ | | 1 | # $NetBSD: Makefile,v 1.99 2020/09/01 17:12:30 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 |
| @@ -112,26 +112,27 @@ FILEMON_H?= /usr/include/dev/filemon/fil | | | @@ -112,26 +112,27 @@ FILEMON_H?= /usr/include/dev/filemon/fil |
112 | COPTS.filemon_dev.c+= \ | | 112 | COPTS.filemon_dev.c+= \ |
113 | -DHAVE_FILEMON_H -I${FILEMON_H:H} | | 113 | -DHAVE_FILEMON_H -I${FILEMON_H:H} |
114 | . endif | | 114 | . endif |
115 | . endif | | 115 | . endif |
116 | . endif | | 116 | . endif |
117 | .endif | | 117 | .endif |
118 | | | 118 | |
119 | SUBDIR.roff+= PSD.doc | | 119 | SUBDIR.roff+= PSD.doc |
120 | .if make(obj) || make(clean) | | 120 | .if make(obj) || make(clean) |
121 | SUBDIR+= unit-tests | | 121 | SUBDIR+= unit-tests |
122 | .endif | | 122 | .endif |
123 | | | 123 | |
124 | ${SRCS:M*.c:.c=.o}: ${HDRS} | | 124 | ${SRCS:M*.c:.c=.o}: ${HDRS} |
| | | 125 | CLEANFILES+= *.o |
125 | | | 126 | |
126 | .include <bsd.prog.mk> | | 127 | .include <bsd.prog.mk> |
127 | .include <bsd.subdir.mk> | | 128 | .include <bsd.subdir.mk> |
128 | | | 129 | |
129 | CPPFLAGS+= -DMAKE_NATIVE | | 130 | CPPFLAGS+= -DMAKE_NATIVE |
130 | COPTS.job.c+= -Wno-format-nonliteral | | 131 | COPTS.job.c+= -Wno-format-nonliteral |
131 | COPTS.parse.c+= -Wno-format-nonliteral | | 132 | COPTS.parse.c+= -Wno-format-nonliteral |
132 | COPTS.var.c+= -Wno-format-nonliteral | | 133 | COPTS.var.c+= -Wno-format-nonliteral |
133 | | | 134 | |
134 | .if ${USE_GCC10} == "yes" | | 135 | .if ${USE_GCC10} == "yes" |
135 | GCC10BASE?= /usr/pkg/gcc10 | | 136 | GCC10BASE?= /usr/pkg/gcc10 |
136 | CC= ${GCC10BASE}/bin/gcc | | 137 | CC= ${GCC10BASE}/bin/gcc |
137 | GCOV= ${GCC10BASE}/bin/gcov | | 138 | GCOV= ${GCC10BASE}/bin/gcov |