Blame tests/functional/log.am

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