mirror of
https://salsa.debian.org/ha-team/libqb
synced 2025-12-31 02:32:41 +00:00
Run: ./check_all to build with and without some common configurations. Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
77 lines
2.6 KiB
Makefile
77 lines
2.6 KiB
Makefile
#
|
||
# Copyright (C) 2010 Red Hat, Inc.
|
||
#
|
||
# Author: Angus Salkeld <asaslkeld@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 = Makefile.in
|
||
|
||
noinst_HEADERS = ipc_int.h util_int.h ringbuffer_int.h loop_int.h
|
||
|
||
#
|
||
# Here are a set of rules to help you update your library version information:
|
||
# Start with version information of ‘0:0:0’ for each libtool library.
|
||
# Update the version information only immediately before a public release of your software.
|
||
# More frequent updates are unnecessary, and only guarantee that the current interface number gets larger faster.
|
||
# If the library source code has changed at all since the last update, then increment revision (‘c:r:a’ becomes ‘c:r+1:a’).
|
||
# If any interfaces have been added, removed, or changed since the last update, increment current, and set revision to 0.
|
||
# If any interfaces have been added since the last public release, then increment age.
|
||
# If any interfaces have been removed since the last public release, then set age to 0.
|
||
#
|
||
|
||
lib_LTLIBRARIES = libqb.la
|
||
|
||
libqb_la_CPPFLAGS = -I$(top_builddir)/include -I$(top_srcdir)/include
|
||
libqb_la_LDFLAGS = -version-info 0:0:0
|
||
source_to_lint = util.c hdb.c ringbuffer.c ringbuffer_helper.c array.c \
|
||
loop.c loop_poll.c loop_job.c \
|
||
ipcc.c ipcs.c ipc_posix_mq.c ipc_sysv_mq.c ipc_shm.c ipc_us.c
|
||
libqb_la_SOURCES = $(source_to_lint)
|
||
if USE_TIMERFD
|
||
else
|
||
libqb_la_SOURCES+=loop_timerlist.c
|
||
endif
|
||
if HAVE_GCC_BUILTINS_FOR_ATOMIC_OPERATIONS
|
||
libqb_la_SOURCES+=atomic_gcc.c
|
||
else
|
||
libqb_la_SOURCES+=atomic_lock.c
|
||
endif
|
||
pkgconfigdir = $(libdir)/pkgconfig
|
||
pkgconfig_DATA = libqb.pc
|
||
|
||
if HAVE_SPLINT
|
||
check_SCRIPTS = run_splint.sh
|
||
TESTS = $(check_SCRIPTS)
|
||
|
||
ALL_LINT_FLAGS = $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
|
||
$(libqb_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) \
|
||
$(LINT_FLAGS)
|
||
|
||
run_splint.sh: $(top_srcdir)/configure.ac
|
||
echo "$(SPLINT) $(ALL_LINT_FLAGS) $(addprefix $(top_srcdir)/lib/, $(source_to_lint))" > $@
|
||
chmod +x $@
|
||
|
||
dist-clean-local:
|
||
rm -f run_splint.sh
|
||
|
||
clean-generic:
|
||
rm -f run_splint.sh
|
||
endif
|
||
|
||
|