mirror of
https://salsa.debian.org/ha-team/libqb
synced 2026-01-06 18:17:48 +00:00
My first attempt at this broke "make rpm" - oops. It seems that we need a common extension for tests to get the dependancies to work. Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
102 lines
3.8 KiB
Makefile
102 lines
3.8 KiB
Makefile
# Copyright (c) 2010 Red Hat, Inc.
|
|
#
|
|
# Authors: Angus Salkeld <asalkeld@redhat.com>
|
|
#
|
|
# 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 <http://www.gnu.org/licenses/>.
|
|
#
|
|
MAINTAINERCLEANFILES = Makefiles.in
|
|
if HAVE_DICT_WORDS
|
|
MAINTAINERCLEANFILES += write_logs.c
|
|
endif
|
|
|
|
noinst_PROGRAMS = bmc bmcpt bms rbwriter rbreader loop simple-log bench-log
|
|
|
|
bmc_SOURCES = bmc.c $(top_builddir)/include/qb/qbipcc.h
|
|
bmc_CPPFLAGS = -I$(top_builddir)/include -I$(top_srcdir)/include
|
|
bmc_LDADD = -lrt $(top_builddir)/lib/libqb.la
|
|
|
|
bmcpt_SOURCES = bmcpt.c $(top_builddir)/include/qb/qbipcc.h
|
|
bmcpt_CPPFLAGS = -I$(top_builddir)/include -I$(top_srcdir)/include
|
|
bmcpt_LDADD = -lrt $(top_builddir)/lib/libqb.la
|
|
|
|
bms_SOURCES = bms.c $(top_builddir)/include/qb/qbipcs.h
|
|
bms_CPPFLAGS = -I$(top_builddir)/include -I$(top_srcdir)/include $(GLIB_CFLAGS)
|
|
bms_LDADD = -lrt $(top_builddir)/lib/libqb.la $(GLIB_LIBS)
|
|
|
|
rbwriter_SOURCES = rbwriter.c $(top_builddir)/include/qb/qbrb.h
|
|
rbwriter_CPPFLAGS = -I$(top_builddir)/include -I$(top_srcdir)/include
|
|
rbwriter_LDADD = -lrt $(top_builddir)/lib/libqb.la
|
|
|
|
rbreader_SOURCES = rbreader.c $(top_builddir)/include/qb/qbrb.h
|
|
rbreader_CPPFLAGS = -I$(top_builddir)/include -I$(top_srcdir)/include
|
|
rbreader_LDADD = -lrt $(top_builddir)/lib/libqb.la
|
|
|
|
loop_SOURCES = loop.c $(top_builddir)/include/qb/qbloop.h
|
|
loop_CPPFLAGS = -I$(top_builddir)/include -I$(top_srcdir)/include
|
|
loop_LDADD = -lrt $(top_builddir)/lib/libqb.la
|
|
|
|
simple_log_SOURCES = simple-log.c $(top_builddir)/include/qb/qblog.h
|
|
simple_log_CPPFLAGS = -I$(top_builddir)/include -I$(top_srcdir)/include
|
|
simple_log_LDADD = -lrt $(top_builddir)/lib/libqb.la
|
|
|
|
bench_log_SOURCES = bench-log.c $(top_builddir)/include/qb/qblog.h
|
|
if HAVE_DICT_WORDS
|
|
bench_log_SOURCES += write_logs.c
|
|
endif
|
|
bench_log_CPPFLAGS = -I$(top_builddir)/include -I$(top_srcdir)/include
|
|
bench_log_LDADD = -lrt $(top_builddir)/lib/libqb.la
|
|
|
|
if HAVE_DICT_WORDS
|
|
write_logs.c:
|
|
$(srcdir)/make-log-test > $(builddir)/write_logs.c
|
|
endif
|
|
|
|
|
|
if HAVE_CHECK
|
|
EXTRA_DIST = resources.test
|
|
|
|
TESTS = array.test rb.test log.test loop.test ipc.test resources.test
|
|
|
|
resources.log: array.log rb.log log.log loop.log ipc.log
|
|
|
|
check_PROGRAMS = array.test rb.test log.test loop.test ipc.test
|
|
check_SCRIPTS = resources.test
|
|
|
|
array_test_SOURCES = check_array.c $(top_builddir)/include/qb/qbarray.h
|
|
array_test_CFLAGS = @CHECK_CFLAGS@ -I$(top_srcdir)/include
|
|
array_test_LDADD = $(top_builddir)/lib/libqb.la -lrt @CHECK_LIBS@
|
|
|
|
rb_test_SOURCES = check_rb.c $(top_builddir)/include/qb/qbrb.h
|
|
rb_test_CFLAGS = @CHECK_CFLAGS@ -I$(top_srcdir)/include
|
|
rb_test_LDADD = $(top_builddir)/lib/libqb.la -lrt @CHECK_LIBS@
|
|
|
|
loop_test_SOURCES = check_loop.c $(top_builddir)/include/qb/qbloop.h
|
|
loop_test_CFLAGS = @CHECK_CFLAGS@ -I$(top_srcdir)/include
|
|
loop_test_LDADD = $(top_builddir)/lib/libqb.la -lrt @CHECK_LIBS@
|
|
|
|
ipc_test_SOURCES = check_ipc.c $(top_builddir)/include/qb/qbipcc.h $(top_builddir)/include/qb/qbipcs.h
|
|
ipc_test_CFLAGS = @CHECK_CFLAGS@ -I$(top_srcdir)/include
|
|
ipc_test_LDADD = $(top_builddir)/lib/libqb.la -lrt @CHECK_LIBS@
|
|
|
|
log_test_SOURCES = check_log.c $(top_builddir)/include/qb/qblog.h
|
|
log_test_CFLAGS = @CHECK_CFLAGS@ -I$(top_srcdir)/include
|
|
log_test_LDADD = $(top_builddir)/lib/libqb.la -lrt @CHECK_LIBS@
|
|
|
|
endif
|
|
|
|
clean-generic:
|
|
rm -f write_logs.c *.log
|