Remove building with NOCRYPTO option
[minix.git] / external / bsd / atf / Makefile.inc
blobcf7d9085628036f1f59c35a9795985d438ab9db0
1 # $NetBSD: Makefile.inc,v 1.5 2014/02/15 04:19:46 jmmv Exp $
3 .include <bsd.own.mk>
5 TOPDIR=         ${NETBSDSRCDIR}/external/bsd/atf
6 SRCDIR=         ${TOPDIR}/dist
8 # Depend on the atf-version.txt target to generate a file that contains
9 # the version number of the currently imported ATF release and that only
10 # changes on new imports.
11 atf-version.txt: atf-version-real.txt
12         @cmp -s atf-version.txt atf-version-real.txt \
13             || cp atf-version-real.txt atf-version.txt
14 atf-version-real.txt: .PHONY
15         @grep 'define VERSION' ${TOPDIR}/bconfig.h \
16             | cut -d '"' -f 2 >atf-version-real.txt
17 CLEANFILES+= atf-version.txt atf-version-real.txt
19 CPPFLAGS+=      -DHAVE_CONFIG_H
21 # Not all source files need these settings, but it's just easier to
22 # set them in all cases.
23 CPPFLAGS+=      -DATF_ARCH=\"${MACHINE_ARCH}\"
24 CPPFLAGS+=      -DATF_BUILD_CC=\"/usr/bin/cc\"
25 CPPFLAGS+=      -DATF_BUILD_CFLAGS=\"\"
26 CPPFLAGS+=      -DATF_BUILD_CPP=\"/usr/bin/cpp\"
27 CPPFLAGS+=      -DATF_BUILD_CPPFLAGS=\"\"
28 CPPFLAGS+=      -DATF_BUILD_CXX=\"/usr/bin/c++\"
29 CPPFLAGS+=      -DATF_BUILD_CXXFLAGS=\"\"
30 CPPFLAGS+=      -DATF_CONFDIR=\"/etc/atf\"
31 CPPFLAGS+=      -DATF_INCLUDEDIR=\"/usr/include\"
32 CPPFLAGS+=      -DATF_LIBDIR=\"/usr/lib\"
33 CPPFLAGS+=      -DATF_LIBEXECDIR=\"/usr/libexec\"
34 CPPFLAGS+=      -DATF_MACHINE=\"${MACHINE}\"
35 CPPFLAGS+=      -DATF_M4=\"/usr/bin/m4\"
36 CPPFLAGS+=      -DATF_PKGDATADIR=\"/usr/share/atf\"
37 CPPFLAGS+=      -DATF_SHELL=\"/bin/sh\"
38 CPPFLAGS+=      -DATF_WORKDIR=\"/tmp\"
40 CPPFLAGS+=      -I${TOPDIR}                     # For bconfig.h.
41 CPPFLAGS+=      -I${TOPDIR}/lib/libatf-c        # For atf-c/defs.hpp.
42 CPPFLAGS+=      -I${SRCDIR}
44 .if defined(USE_ATF_LIBTOOLS)
45 LIBTOOLSOBJDIR!=        cd ${TOPDIR}/lib/tools; ${PRINTOBJDIR}
46 CPPFLAGS+=              -I${LIBTOOLSOBJDIR}
47 LDADD+=                 ${LIBTOOLSOBJDIR}/libtools.a
48 DPADD+=                 ${LIBTOOLSOBJDIR}/libtools.a
49 .endif