Blame tests/functional/log.am

Packit Service f88c7f
# Copyright 2017 Red Hat, Inc.
Packit Service f88c7f
#
Packit Service f88c7f
# Author: Jan Pokorny <jpokorny@redhat.com>
Packit Service f88c7f
#
Packit Service f88c7f
# This file is part of libqb.
Packit Service f88c7f
#
Packit Service f88c7f
# libqb is free software: you can redistribute it and/or modify
Packit Service f88c7f
# it under the terms of the GNU Lesser General Public License as published by
Packit Service f88c7f
# the Free Software Foundation, either version 2.1 of the License, or
Packit Service f88c7f
# (at your option) any later version.
Packit Service f88c7f
#
Packit Service f88c7f
# libqb is distributed in the hope that it will be useful,
Packit Service f88c7f
# but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit Service f88c7f
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
Packit Service f88c7f
# GNU Lesser General Public License for more details.
Packit Service f88c7f
#
Packit Service f88c7f
# You should have received a copy of the GNU Lesser General Public License
Packit Service f88c7f
# along with libqb.  If not, see <http://www.gnu.org/licenses/>.
Packit Service f88c7f
Packit Service f88c7f
MAINTAINERCLEANFILES = Makefile.in
Packit Service f88c7f
CLEANFILES = log_test_client.err.real log_test_interlib_client.err.real \
Packit Service f88c7f
             ../log_callsite_bench.c
Packit Service f88c7f
Packit Service f88c7f
AM_CPPFLAGS = -D_GNU_SOURCE -I$(top_builddir)/include -I$(top_srcdir)/include
Packit Service f88c7f
Packit Service f88c7f
noinst_PROGRAMS = log_client log_interlib_client
Packit Service f88c7f
# cannot use {check,noinst}_LTLIBRARIES because it leads to solely static lib
Packit Service f88c7f
# (this won't get installed anyway, thanks to GNUmakefile rule)
Packit Service f88c7f
lib_LTLIBRARIES = liblog_inter.la
Packit Service f88c7f
Packit Service f88c7f
log_client_SOURCES = ../log_client.c
Packit Service f88c7f
# log_client_LDFLAGS/log_client_LDADD to be delivered by the base Makefile.am
Packit Service f88c7f
Packit Service f88c7f
liblog_inter_la_SOURCES = ../log_interlib.c
Packit Service f88c7f
liblog_inter_la_LDFLAGS = -shared
Packit Service f88c7f
# liblog_inter_la_LIBADD to be delivered by the base Makefile.am
Packit Service f88c7f
Packit Service f88c7f
log_interlib_client_SOURCES = ../log_interlib_client.c
Packit Service f88c7f
# this transitively shares link dependencies with liblog_inter.la itself
Packit Service f88c7f
log_interlib_client_LDADD = $(builddir)/liblog_inter.la
Packit Service f88c7f
Packit Service f88c7f
# actual 'make check' auxiliary definitions
Packit Service f88c7f
TESTS = ../log_test_client.sh ../log_test_interlib_client.sh
Packit Service f88c7f
TEST_EXTENSIONS = .sh
Packit Service f88c7f
log_test.log: $(check_PROGRAMS)
Packit Service f88c7f
Packit Service f88c7f
../log_test_client.log: log_client
Packit Service f88c7f
../log_test_interlib_client.log: log_interlib_client
Packit Service f88c7f
Packit Service f88c7f
../log_callsite_bench.c: ../log_callsite_bench_gen.py
Packit Service f88c7f
if HAVE_PYTHON
Packit Service f88c7f
	$(AM_V_GEN)$(PYTHON) $< >$@
Packit Service f88c7f
else
Packit Service f88c7f
	@echo 'configure script did not detect python prerequisite'
Packit Service f88c7f
	false
Packit Service f88c7f
endif
Packit Service f88c7f
Packit Service f88c7f
# vim: ft=automake