1 # $NetBSD: Makefile,v 1.24 2023/06/03 09:09:03 lukem Exp $ 2 3 NOLINT= # defined 4 5 .include <bsd.init.mk> 6 7 LIB= atf-c 8 9 CWARNFLAGS+= -Wno-format 10 CWARNFLAGS+= -Wno-missing-noreturn 11 12 .PATH: ${SRCDIR} 13 .PATH: ${SRCDIR}/atf-c 14 .PATH: ${SRCDIR}/atf-c/detail 15 .PATH: ${TOPDIR} 16 17 config.o: Makefile 18 19 WARNS?= 4 20 21 SRCS= build.c \ 22 check.c \ 23 config.c \ 24 dynstr.c \ 25 env.c \ 26 error.c \ 27 fs.c \ 28 list.c \ 29 map.c \ 30 process.c \ 31 sanity.c \ 32 text.c \ 33 user.c \ 34 utils.c \ 35 tc.c \ 36 tp.c \ 37 tp_main.c 38 39 INCS= build.h \ 40 check.h \ 41 config.h \ 42 defs.h \ 43 error.h \ 44 error_fwd.h \ 45 macros.h \ 46 tc.h \ 47 tp.h \ 48 utils.h 49 INCSDIR= /usr/include/atf-c 50 51 INCS+= atf-c.h 52 INCSDIR_atf-c.h=/usr/include 53 54 MAN= atf-c-api.3 55 56 COPTS.tc.c+= ${${ACTIVE_CC} == "clang" && ${MACHINE_ARCH} == "powerpc":? -O0 :} 57 COPTS.fs.c+= ${CC_WNO_STRINGOP_TRUNCATION} 58 59 .if ${MKSHARE} != "no" 60 FILES+= atf-c.pc 61 FILESDIR= /usr/lib/pkgconfig 62 63 realall: atf-c.pc 64 atf-c.pc: Makefile atf-c.pc.in atf-version.txt 65 ${TOOL_SED} -e "s,__ATF_VERSION__,$$(cat atf-version.txt),g" \ 66 -e 's,__CC__,gcc,g' \ 67 -e 's,__INCLUDEDIR__,/usr/include,g' \ 68 -e 's,__LIBDIR__,/usr/lib,g' \ 69 <${SRCDIR}/atf-c/atf-c.pc.in >atf-c.pc 70 CLEANFILES+= atf-c.pc 71 .endif 72 73 .include <bsd.lib.mk> 74