| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: Makefile,v 1.21 2014/03/02 22:50:13 jmmv Exp $ | | 1 | # $NetBSD: Makefile,v 1.22 2020/01/29 22:40:44 christos Exp $ |
2 | | | 2 | |
3 | NOLINT= # defined | | 3 | NOLINT= # defined |
4 | | | 4 | |
5 | .include <bsd.init.mk> | | 5 | .include <bsd.init.mk> |
6 | | | 6 | |
7 | LIB= atf-c | | 7 | LIB= atf-c |
8 | | | 8 | |
9 | CWARNFLAGS+= -Wno-format | | 9 | CWARNFLAGS+= -Wno-format |
10 | CWARNFLAGS+= -Wno-missing-noreturn | | 10 | CWARNFLAGS+= -Wno-missing-noreturn |
11 | | | 11 | |
12 | .PATH: ${SRCDIR} | | 12 | .PATH: ${SRCDIR} |
13 | .PATH: ${SRCDIR}/atf-c | | 13 | .PATH: ${SRCDIR}/atf-c |
14 | .PATH: ${SRCDIR}/atf-c/detail | | 14 | .PATH: ${SRCDIR}/atf-c/detail |
| @@ -43,26 +43,28 @@ INCS= build.h \ | | | @@ -43,26 +43,28 @@ INCS= build.h \ |
43 | error.h \ | | 43 | error.h \ |
44 | error_fwd.h \ | | 44 | error_fwd.h \ |
45 | macros.h \ | | 45 | macros.h \ |
46 | tc.h \ | | 46 | tc.h \ |
47 | tp.h \ | | 47 | tp.h \ |
48 | utils.h | | 48 | utils.h |
49 | INCSDIR= /usr/include/atf-c | | 49 | INCSDIR= /usr/include/atf-c |
50 | | | 50 | |
51 | INCS+= atf-c.h | | 51 | INCS+= atf-c.h |
52 | INCSDIR_atf-c.h=/usr/include | | 52 | INCSDIR_atf-c.h=/usr/include |
53 | | | 53 | |
54 | MAN= atf-c-api.3 | | 54 | MAN= atf-c-api.3 |
55 | | | 55 | |
| | | 56 | COPTS.tc.c+= ${${ACTIVE_CC} == "clang" && ${MACHINE_ARCH} == "powerpc":? -O0 :} |
| | | 57 | |
56 | .if ${MKSHARE} != "no" | | 58 | .if ${MKSHARE} != "no" |
57 | FILES+= atf-c.pc | | 59 | FILES+= atf-c.pc |
58 | FILESDIR= /usr/lib/pkgconfig | | 60 | FILESDIR= /usr/lib/pkgconfig |
59 | | | 61 | |
60 | realall: atf-c.pc | | 62 | realall: atf-c.pc |
61 | atf-c.pc: Makefile atf-c.pc.in atf-version.txt | | 63 | atf-c.pc: Makefile atf-c.pc.in atf-version.txt |
62 | ${TOOL_SED} -e "s,__ATF_VERSION__,$$(cat atf-version.txt),g" \ | | 64 | ${TOOL_SED} -e "s,__ATF_VERSION__,$$(cat atf-version.txt),g" \ |
63 | -e 's,__CC__,gcc,g' \ | | 65 | -e 's,__CC__,gcc,g' \ |
64 | -e 's,__INCLUDEDIR__,/usr/include,g' \ | | 66 | -e 's,__INCLUDEDIR__,/usr/include,g' \ |
65 | -e 's,__LIBDIR__,/usr/lib,g' \ | | 67 | -e 's,__LIBDIR__,/usr/lib,g' \ |
66 | <${SRCDIR}/atf-c/atf-c.pc.in >atf-c.pc | | 68 | <${SRCDIR}/atf-c/atf-c.pc.in >atf-c.pc |
67 | CLEANFILES+= atf-c.pc | | 69 | CLEANFILES+= atf-c.pc |
68 | .endif | | 70 | .endif |