1# $NetBSD: Makefile,v 1.24 2023/06/03 09:09:03 lukem Exp $ 2 3NOLINT= # defined 4 5.include <bsd.init.mk> 6 7LIB= atf-c 8 9CWARNFLAGS+= -Wno-format 10CWARNFLAGS+= -Wno-missing-noreturn 11 12.PATH: ${SRCDIR} 13.PATH: ${SRCDIR}/atf-c 14.PATH: ${SRCDIR}/atf-c/detail 15.PATH: ${TOPDIR} 16 17config.o: Makefile 18 19WARNS?= 4 20 21SRCS= 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 39INCS= 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 49INCSDIR= /usr/include/atf-c 50 51INCS+= atf-c.h 52INCSDIR_atf-c.h=/usr/include 53 54MAN= atf-c-api.3 55 56COPTS.tc.c+= ${${ACTIVE_CC} == "clang" && ${MACHINE_ARCH} == "powerpc":? -O0 :} 57COPTS.fs.c+= ${CC_WNO_STRINGOP_TRUNCATION} 58 59.if ${MKSHARE} != "no" 60FILES+= atf-c.pc 61FILESDIR= /usr/lib/pkgconfig 62 63realall: atf-c.pc 64atf-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 70CLEANFILES+= atf-c.pc 71.endif 72 73.include <bsd.lib.mk> 74