74 lines
1.2 KiB
Makefile
74 lines
1.2 KiB
Makefile
# $NetBSD: Makefile,v 1.23 2020/06/07 23:09:34 fox Exp $
|
|
|
|
NOLINT= # defined
|
|
|
|
.include <bsd.init.mk>
|
|
|
|
LIB= atf-c
|
|
|
|
CWARNFLAGS+= -Wno-format
|
|
CWARNFLAGS+= -Wno-missing-noreturn
|
|
|
|
.PATH: ${SRCDIR}
|
|
.PATH: ${SRCDIR}/atf-c
|
|
.PATH: ${SRCDIR}/atf-c/detail
|
|
.PATH: ${TOPDIR}
|
|
|
|
config.o: Makefile
|
|
|
|
WARNS?= 4
|
|
|
|
SRCS= build.c \
|
|
check.c \
|
|
config.c \
|
|
dynstr.c \
|
|
env.c \
|
|
error.c \
|
|
fs.c \
|
|
list.c \
|
|
map.c \
|
|
process.c \
|
|
sanity.c \
|
|
text.c \
|
|
user.c \
|
|
utils.c \
|
|
tc.c \
|
|
tp.c \
|
|
tp_main.c
|
|
|
|
INCS= build.h \
|
|
check.h \
|
|
config.h \
|
|
defs.h \
|
|
error.h \
|
|
error_fwd.h \
|
|
macros.h \
|
|
tc.h \
|
|
tp.h \
|
|
utils.h
|
|
INCSDIR= /usr/include/atf-c
|
|
|
|
INCS+= atf-c.h
|
|
INCSDIR_atf-c.h=/usr/include
|
|
|
|
MAN= atf-c-api.3
|
|
|
|
COPTS.tc.c+= ${${ACTIVE_CC} == "clang" && ${MACHINE_ARCH} == "powerpc":? -O0 :}
|
|
COPTS.fs.c+= ${GCC_NO_STRINGOP_TRUNCATION}
|
|
|
|
.if ${MKSHARE} != "no"
|
|
FILES+= atf-c.pc
|
|
FILESDIR= /usr/lib/pkgconfig
|
|
|
|
realall: atf-c.pc
|
|
atf-c.pc: Makefile atf-c.pc.in atf-version.txt
|
|
${TOOL_SED} -e "s,__ATF_VERSION__,$$(cat atf-version.txt),g" \
|
|
-e 's,__CC__,gcc,g' \
|
|
-e 's,__INCLUDEDIR__,/usr/include,g' \
|
|
-e 's,__LIBDIR__,/usr/lib,g' \
|
|
<${SRCDIR}/atf-c/atf-c.pc.in >atf-c.pc
|
|
CLEANFILES+= atf-c.pc
|
|
.endif
|
|
|
|
.include <bsd.lib.mk>
|