2009-09-04 01:11:53 +04:00
#
2010-04-10 01:42:48 +04:00
# Copyright (C) 2009-2010 Red Hat, Inc. All rights reserved.
2009-09-04 01:11:53 +04:00
#
# This file is part of LVM2.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions
# of the GNU General Public License v.2.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
2016-01-21 13:49:46 +03:00
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
2009-09-04 01:11:53 +04:00
srcdir = @srcdir@
top_srcdir = @top_srcdir@
2009-10-02 23:10:31 +04:00
top_builddir = @top_builddir@
2009-09-04 01:11:53 +04:00
2009-09-15 02:57:46 +04:00
CPG_LIBS = @CPG_LIBS@
CPG_CFLAGS = @CPG_CFLAGS@
2010-01-15 22:49:35 +03:00
SOURCES = clogd.c cluster.c compat.c functions.c link_mon.c local.c logging.c
2009-09-04 01:11:53 +04:00
TARGETS = cmirrord
2021-03-20 01:10:55 +03:00
CFLOW_SOURCES = $( addprefix $( srcdir) /, $( SOURCES) )
CFLOW_TARGET := $( TARGETS)
2010-03-04 12:51:37 +03:00
i n c l u d e $( top_builddir ) / m a k e . t m p l
2009-09-04 01:11:53 +04:00
2018-06-05 18:47:01 +03:00
LMLIBS += $( CPG_LIBS)
CFLAGS += $( CPG_CFLAGS) $( EXTRA_EXEC_CFLAGS)
2017-08-01 01:01:07 +03:00
LDFLAGS += $( EXTRA_EXEC_LDFLAGS) $( ELDFLAGS)
2009-09-04 01:11:53 +04:00
2018-12-15 00:17:08 +03:00
cmirrord : $( OBJECTS )
2024-04-08 14:10:16 +03:00
$( SHOW) " [CC] $@ "
2018-11-29 19:09:27 +03:00
$( Q) $( CC) $( CFLAGS) $( LDFLAGS) -o $@ $( OBJECTS) \
2018-12-15 00:17:08 +03:00
$( LMLIBS) -L$( top_builddir) /libdm -ldevmapper $( LIBS)
2009-09-04 01:11:53 +04:00
2021-03-02 02:23:45 +03:00
install_cluster : $( TARGETS )
2024-04-08 14:10:16 +03:00
$( SHOW) " [INSTALL] $< "
2021-03-02 02:23:45 +03:00
$( Q) $( INSTALL_PROGRAM) -D $< $( usrsbindir) /$( <F)
install : install_cluster