aboutsummaryrefslogtreecommitdiff
path: root/libexec/atf
diff options
context:
space:
mode:
authorSimon J. Gerraty <sjg@FreeBSD.org>2014-11-19 01:07:58 +0000
committerSimon J. Gerraty <sjg@FreeBSD.org>2014-11-19 01:07:58 +0000
commit9268022b74279434ed6300244e3f977e56a8ceb5 (patch)
tree377ac0ac449528621eb192cd245adadb5fd53668 /libexec/atf
parent29c34e9d2781cf25403647fb5af7d7ddb23be7e1 (diff)
parent8c3d6a4ab2a4a95d864d9a32d0157d7de90498a4 (diff)
Notes
Diffstat (limited to 'libexec/atf')
-rw-r--r--libexec/atf/atf-check/Makefile5
-rw-r--r--libexec/atf/atf-sh/Makefile8
-rw-r--r--libexec/atf/atf-sh/tests/Makefile3
3 files changed, 9 insertions, 7 deletions
diff --git a/libexec/atf/atf-check/Makefile b/libexec/atf/atf-check/Makefile
index fa7fabe8ddc4..2a9851eeea5a 100644
--- a/libexec/atf/atf-check/Makefile
+++ b/libexec/atf/atf-check/Makefile
@@ -36,11 +36,10 @@ SRCS= atf-check.cpp
MAN= atf-check.1
CFLAGS+= -I${ATF}
+CFLAGS+= -DATF_SHELL='"/bin/sh"'
-LDFLAGS+= -L${.OBJDIR}/../../../lib/atf/libatf-c++
-LDFLAGS+= -L${.OBJDIR}/../../../lib/atf/libatf-c
DPADD+= ${LIBATF_CXX} ${LIBATF_C}
-LDADD+= -latf-c++ -latf-c
+LDADD+= ${LDATF_CXX} ${LDATF_C}
USEPRIVATELIB= atf-c++ atf-c
.if ${MK_TESTS} != "no"
diff --git a/libexec/atf/atf-sh/Makefile b/libexec/atf/atf-sh/Makefile
index 3f461fdbe9ac..4e14643c0574 100644
--- a/libexec/atf/atf-sh/Makefile
+++ b/libexec/atf/atf-sh/Makefile
@@ -33,13 +33,17 @@ ATF= ${.CURDIR:H:H:H}/contrib/atf
PROG_CXX= atf-sh
SRCS= atf-sh.cpp
-MAN= atf-sh.1 atf-sh-api.3
+MAN= atf-sh.1 atf-sh.3
+MLINKS+= atf-sh.3 atf-sh-api.3 # Backwards compatibility.
CFLAGS+= -DHAVE_CONFIG_H
+CFLAGS+= -DATF_LIBEXECDIR='"${LIBEXECDIR}"'
+CFLAGS+= -DATF_PKGDATADIR='"${SHAREDIR}/atf"'
+CFLAGS+= -DATF_SHELL='"/bin/sh"'
CFLAGS+= -I${ATF}
DPADD+= ${LIBATF_C} ${LIBATF_CXX}
-LDADD+= -latf-c++ -latf-c
+LDADD+= ${LDATF_C} ${LDATF_CXX}
USEPRIVATELIB= atf-c++ atf-c
FILESGROUPS= SUBR
diff --git a/libexec/atf/atf-sh/tests/Makefile b/libexec/atf/atf-sh/tests/Makefile
index e71b6b53a6b4..3360b974f9ee 100644
--- a/libexec/atf/atf-sh/tests/Makefile
+++ b/libexec/atf/atf-sh/tests/Makefile
@@ -16,8 +16,7 @@ ATF_TESTS_SH+= tp_test
integration_test: Makefile
ATF_TESTS_SH_SED_integration_test= \
- -e 's,atf_check,PATH=/usr/libexec:$${PATH} atf_check,g' \
- -e 's,/usr/bin/env *atf-sh,/usr/libexec/atf-sh,g'
+ -e 's,__ATF_SH__,/usr/libexec/atf-sh,g'
SCRIPTS+= misc_helpers
SCRIPTSDIR_misc_helpers=${TESTSDIR}