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