11be35a165
To do so, a few dependencies have been imported: * external/bsd/lutok * external/mit/lua * external/public-domain/sqlite * external/public-domain/xz The Kyua framework is the new generation of ATF (Automated Test Framework), it is composed of: * external/bsd/atf * external/bsd/kyua-atf-compat * external/bsd/kyua-cli * external/bsd/kyua-tester * tests Kyua/ATF being written in C++, it depends on libstdc++ which is provided by GCC. As this is not part of the sources, Kyua is only compiled when the native GCC utils are installed. To install Kyua do the following: * In a cross-build enviromnent, add the following to the build.sh commandline: -V MKBINUTILS=yes -V MKGCCCMDS=yes WARNING: At this point the import is still experimental, and not supported on native builds (a.k.a make build). Change-Id: I26aee23c5bbd2d64adcb7c1beb98fe0d479d7ada
99 lines
2.1 KiB
Makefile
99 lines
2.1 KiB
Makefile
# $NetBSD: Makefile,v 1.17 2013/03/14 07:10:06 jmmv Exp $
|
|
|
|
NOLINT= # defined
|
|
|
|
.include <bsd.init.mk>
|
|
|
|
LIB= atf-c
|
|
|
|
CWARNFLAGS+= -Wno-missing-noreturn
|
|
|
|
.PATH: ${SRCDIR}
|
|
.PATH: ${SRCDIR}/atf-c
|
|
.PATH: ${SRCDIR}/atf-c/detail
|
|
|
|
CPPFLAGS+= -I${.CURDIR}
|
|
CPPFLAGS+= -I.
|
|
|
|
CPPFLAGS+= -DHAVE_CONFIG_H
|
|
CPPFLAGS+= -DATF_ARCH=\"${MACHINE_ARCH}\"
|
|
CPPFLAGS+= -DATF_BUILD_CC=\"/usr/bin/cc\"
|
|
CPPFLAGS+= -DATF_BUILD_CFLAGS=\"\"
|
|
CPPFLAGS+= -DATF_BUILD_CPP=\"/usr/bin/cpp\"
|
|
CPPFLAGS+= -DATF_BUILD_CPPFLAGS=\"\"
|
|
CPPFLAGS+= -DATF_BUILD_CXX=\"/usr/bin/c++\"
|
|
CPPFLAGS+= -DATF_BUILD_CXXFLAGS=\"\"
|
|
CPPFLAGS+= -DATF_CONFDIR=\"/etc/atf\"
|
|
CPPFLAGS+= -DATF_INCLUDEDIR=\"/usr/include\"
|
|
CPPFLAGS+= -DATF_LIBDIR=\"/usr/lib\"
|
|
CPPFLAGS+= -DATF_LIBEXECDIR=\"/usr/libexec\"
|
|
CPPFLAGS+= -DATF_MACHINE=\"${MACHINE}\"
|
|
CPPFLAGS+= -DATF_M4=\"/usr/bin/m4\"
|
|
CPPFLAGS+= -DATF_PKGDATADIR=\"/usr/share/atf\"
|
|
CPPFLAGS+= -DATF_SHELL=\"/bin/sh\"
|
|
CPPFLAGS+= -DATF_WORKDIR=\"/tmp\"
|
|
|
|
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
|
|
|
|
CLEANFILES+= defs.h
|
|
|
|
defs.h: defs.h.in
|
|
${TOOL_SED} \
|
|
-e 's|@ATTRIBUTE_FORMAT_PRINTF@|__attribute__((__format__(__printf__, a, b)))|g' \
|
|
-e 's|@ATTRIBUTE_NORETURN@|__attribute__((__noreturn__))|g' \
|
|
-e 's|@ATTRIBUTE_UNUSED@|__attribute__((__unused__))|g' \
|
|
< ${.ALLSRC} > ${.TARGET}.tmp
|
|
mv ${.TARGET}.tmp ${.TARGET}
|
|
|
|
.if ${MKSHARE} != "no"
|
|
FILES+= atf-c.pc
|
|
FILESDIR= /usr/lib/pkgconfig
|
|
|
|
realall: atf-c.pc
|
|
atf-c.pc: Makefile atf-c.pc.in bconfig.h
|
|
${TOOL_SED} -e 's,__ATF_VERSION__,${ATF_VERSION},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>
|