a747113422afaa29ce72d2c5ba7f0b7ea9ec2054Evan Hunt# Copyright (c) 2007 The NetBSD Foundation, Inc.
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt# All rights reserved.
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt# Redistribution and use in source and binary forms, with or without
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt# modification, are permitted provided that the following conditions
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt# 1. Redistributions of source code must retain the above copyright
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt# notice, this list of conditions and the following disclaimer.
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt# 2. Redistributions in binary form must reproduce the above copyright
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt# notice, this list of conditions and the following disclaimer in the
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt# documentation and/or other materials provided with the distribution.
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt# THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt# CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt# INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt# IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS BE LIABLE FOR ANY
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt# GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt# IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt# IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
ef421f66f47224a42073deaf087378c5d0c9952eEvan Huntlib_LTLIBRARIES += libatf-c.la
ef421f66f47224a42073deaf087378c5d0c9952eEvan Huntlibatf_c_la_SOURCES = atf-c/build.c \
ef421f66f47224a42073deaf087378c5d0c9952eEvan Huntnodist_libatf_c_la_SOURCES = atf-c/defs.h
4a53e3c2b83c476a93148eaee0272649beb221caMark Andrews#libatf_c_la_CPPFLAGS = "-DATF_BUILD_CC=\"$(ATF_BUILD_CC)\"" \
4a53e3c2b83c476a93148eaee0272649beb221caMark Andrews# "-DATF_BUILD_CFLAGS=\"$(ATF_BUILD_CFLAGS)\"" \
4a53e3c2b83c476a93148eaee0272649beb221caMark Andrews# "-DATF_BUILD_CPP=\"$(ATF_BUILD_CPP)\"" \
4a53e3c2b83c476a93148eaee0272649beb221caMark Andrews# "-DATF_BUILD_CPPFLAGS=\"$(ATF_BUILD_CPPFLAGS)\"" \
4a53e3c2b83c476a93148eaee0272649beb221caMark Andrews# "-DATF_BUILD_CXX=\"$(ATF_BUILD_CXX)\"" \
4a53e3c2b83c476a93148eaee0272649beb221caMark Andrews# "-DATF_BUILD_CXXFLAGS=\"$(ATF_BUILD_CXXFLAGS)\"" \
4a53e3c2b83c476a93148eaee0272649beb221caMark Andrews# "-DATF_INCLUDEDIR=\"$(includedir)\"" \
4a53e3c2b83c476a93148eaee0272649beb221caMark Andrews# "-DATF_LIBEXECDIR=\"$(libexecdir)\"" \
4a53e3c2b83c476a93148eaee0272649beb221caMark Andrews# "-DATF_PKGDATADIR=\"$(pkgdatadir)\"" \
4a53e3c2b83c476a93148eaee0272649beb221caMark Andrews# "-DATF_SHELL=\"$(ATF_SHELL)\"" \
4a53e3c2b83c476a93148eaee0272649beb221caMark Andrews# "-DATF_WORKDIR=\"$(ATF_WORKDIR)\""
4a53e3c2b83c476a93148eaee0272649beb221caMark Andrewslibatf_c_la_CPPFLAGS = "-DATF_BUILD_CC=\"$(ATF_BUILD_CC)\"" \
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt "-DATF_BUILD_CFLAGS=\"$(ATF_BUILD_CFLAGS)\"" \
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt "-DATF_BUILD_CPP=\"$(ATF_BUILD_CPP)\"" \
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt "-DATF_BUILD_CPPFLAGS=\"$(ATF_BUILD_CPPFLAGS)\"" \
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt "-DATF_BUILD_CXX=\"$(ATF_BUILD_CXX)\"" \
4a53e3c2b83c476a93148eaee0272649beb221caMark Andrews "-DATF_BUILD_CXXFLAGS=\"$(ATF_BUILD_CXXFLAGS)\""
4a53e3c2b83c476a93148eaee0272649beb221caMark Andrewslibatf_c_la_LDFLAGS = -version-info 1:0:0
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt# XXX For some reason, the nodist line above does not work as expected.
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt# Work this problem around.
4a53e3c2b83c476a93148eaee0272649beb221caMark AndrewsDIST_HOOKS += kill-defs-h
ef421f66f47224a42073deaf087378c5d0c9952eEvan Huntinclude_HEADERS += atf-c.h
ef421f66f47224a42073deaf087378c5d0c9952eEvan Huntatf_c_HEADERS = atf-c/build.h \
4a53e3c2b83c476a93148eaee0272649beb221caMark Andrewsnodist_atf_c_HEADERS = atf-c/defs.h
ef421f66f47224a42073deaf087378c5d0c9952eEvan Huntatf_cdir = $(includedir)/atf-c
4a53e3c2b83c476a93148eaee0272649beb221caMark Andrewsdist_man_MANS += atf-c/atf-c.3
a747113422afaa29ce72d2c5ba7f0b7ea9ec2054Evan Huntatf_aclocal_DATA += atf-c/atf-common.m4 atf-c/atf-c.m4
a747113422afaa29ce72d2c5ba7f0b7ea9ec2054Evan HuntEXTRA_DIST += atf-c/atf-common.m4 atf-c/atf-c.m4
ef421f66f47224a42073deaf087378c5d0c9952eEvan Huntatf_cpkgconfigdir = $(atf_pkgconfigdir)
ef421f66f47224a42073deaf087378c5d0c9952eEvan Huntatf_cpkgconfig_DATA = atf-c/atf-c.pc
ef421f66f47224a42073deaf087378c5d0c9952eEvan HuntCLEANFILES += atf-c/atf-c.pc
ef421f66f47224a42073deaf087378c5d0c9952eEvan HuntEXTRA_DIST += atf-c/atf-c.pc.in
a747113422afaa29ce72d2c5ba7f0b7ea9ec2054Evan Huntatf-c/atf-c.pc: $(srcdir)/atf-c/atf-c.pc.in Makefile
a747113422afaa29ce72d2c5ba7f0b7ea9ec2054Evan Hunt -e 's#__CC__#$(CC)#g' \
a747113422afaa29ce72d2c5ba7f0b7ea9ec2054Evan Hunt -e 's#__INCLUDEDIR__#$(includedir)#g' \
a747113422afaa29ce72d2c5ba7f0b7ea9ec2054Evan Hunt -e 's#__LIBDIR__#$(libdir)#g' \
4a53e3c2b83c476a93148eaee0272649beb221caMark Andrews <$(srcdir)/atf-c/atf-c.pc.in >atf-c/atf-c.pc.tmp; \
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunttests_atf_c_DATA = atf-c/Atffile \
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunttests_atf_cdir = $(pkgtestsdir)/atf-c
ef421f66f47224a42073deaf087378c5d0c9952eEvan HuntEXTRA_DIST += $(tests_atf_c_DATA)
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunttests_atf_c_PROGRAMS = atf-c/atf_c_test
ef421f66f47224a42073deaf087378c5d0c9952eEvan Huntatf_c_atf_c_test_SOURCES = atf-c/atf_c_test.c
ef421f66f47224a42073deaf087378c5d0c9952eEvan Huntatf_c_atf_c_test_LDADD = atf-c/detail/libtest_helpers.la libatf-c.la
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunttests_atf_c_PROGRAMS += atf-c/build_test
ef421f66f47224a42073deaf087378c5d0c9952eEvan Huntatf_c_build_test_SOURCES = atf-c/build_test.c atf-c/h_build.h
ef421f66f47224a42073deaf087378c5d0c9952eEvan Huntatf_c_build_test_LDADD = atf-c/detail/libtest_helpers.la libatf-c.la
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunttests_atf_c_PROGRAMS += atf-c/check_test
ef421f66f47224a42073deaf087378c5d0c9952eEvan Huntatf_c_check_test_SOURCES = atf-c/check_test.c
ef421f66f47224a42073deaf087378c5d0c9952eEvan Huntatf_c_check_test_LDADD = atf-c/detail/libtest_helpers.la libatf-c.la
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunttests_atf_c_PROGRAMS += atf-c/error_test
ef421f66f47224a42073deaf087378c5d0c9952eEvan Huntatf_c_error_test_SOURCES = atf-c/error_test.c
ef421f66f47224a42073deaf087378c5d0c9952eEvan Huntatf_c_error_test_LDADD = atf-c/detail/libtest_helpers.la libatf-c.la
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunttests_atf_c_PROGRAMS += atf-c/macros_test
ef421f66f47224a42073deaf087378c5d0c9952eEvan Huntatf_c_macros_test_SOURCES = atf-c/macros_test.c
ef421f66f47224a42073deaf087378c5d0c9952eEvan Huntatf_c_macros_test_LDADD = atf-c/detail/libtest_helpers.la libatf-c.la
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunttests_atf_c_SCRIPTS = atf-c/pkg_config_test
ef421f66f47224a42073deaf087378c5d0c9952eEvan HuntCLEANFILES += atf-c/pkg_config_test
ef421f66f47224a42073deaf087378c5d0c9952eEvan HuntEXTRA_DIST += atf-c/pkg_config_test.sh
ef421f66f47224a42073deaf087378c5d0c9952eEvan Huntatf-c/pkg_config_test: $(srcdir)/atf-c/pkg_config_test.sh
4a53e3c2b83c476a93148eaee0272649beb221caMark Andrews $(AM_V_GEN)src="$(srcdir)/atf-c/pkg_config_test.sh"; \
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunttests_atf_c_PROGRAMS += atf-c/tc_test
ef421f66f47224a42073deaf087378c5d0c9952eEvan Huntatf_c_tc_test_SOURCES = atf-c/tc_test.c
ef421f66f47224a42073deaf087378c5d0c9952eEvan Huntatf_c_tc_test_LDADD = atf-c/detail/libtest_helpers.la libatf-c.la
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunttests_atf_c_PROGRAMS += atf-c/tp_test
ef421f66f47224a42073deaf087378c5d0c9952eEvan Huntatf_c_tp_test_SOURCES = atf-c/tp_test.c
ef421f66f47224a42073deaf087378c5d0c9952eEvan Huntatf_c_tp_test_LDADD = atf-c/detail/libtest_helpers.la libatf-c.la
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunttests_atf_c_PROGRAMS += atf-c/utils_test
ef421f66f47224a42073deaf087378c5d0c9952eEvan Huntatf_c_utils_test_SOURCES = atf-c/utils_test.c atf-c/h_build.h
ef421f66f47224a42073deaf087378c5d0c9952eEvan Huntatf_c_utils_test_LDADD = atf-c/detail/libtest_helpers.la libatf-c.la
ef421f66f47224a42073deaf087378c5d0c9952eEvan Huntinclude atf-c/detail/Makefile.am.inc
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt# vim: syntax=make:noexpandtab:shiftwidth=8:softtabstop=8