2015-05-09 02:59:18 +03:00
#
# Copyright (C) 2014-2015 Red Hat, Inc.
#
# 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 Lesser General Public License v.2.1.
#
# You should have received a copy of the GNU Lesser 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
2015-05-09 02:59:18 +03:00
srcdir = @srcdir@
top_srcdir = @top_srcdir@
top_builddir = @top_builddir@
SOURCES = lvmpolld-core.c lvmpolld-data-utils.c lvmpolld-cmd-utils.c
TARGETS = lvmpolld
2021-03-20 01:10:55 +03:00
CFLOW_SOURCES = $( addprefix $( srcdir) /, $( SOURCES) )
CFLOW_TARGET := $( TARGETS)
2015-05-09 02:59:18 +03:00
2021-03-20 01:10:55 +03:00
.PHONY : install_lvmpolld
2015-05-09 02:59:18 +03:00
i n c l u d e $( top_builddir ) / m a k e . t m p l
2017-08-01 01:01:07 +03:00
CFLAGS += $( EXTRA_EXEC_CFLAGS)
2015-05-09 02:59:18 +03:00
INCLUDES += -I$( top_srcdir) /libdaemon/server
2018-12-21 13:24:00 +03:00
LDFLAGS += $( EXTRA_EXEC_LDFLAGS) $( ELDFLAGS)
LIBS += $( DAEMON_LIBS) $( PTHREAD_LIBS)
2015-05-09 02:59:18 +03:00
2018-12-21 13:24:00 +03:00
lvmpolld : $( OBJECTS ) $( top_builddir ) /libdaemon /server /libdaemonserver .a $( INTERNAL_LIBS )
2024-04-08 14:10:16 +03:00
$( SHOW) " [CC] $@ "
2018-12-21 13:24:00 +03:00
$( Q) $( CC) $( CFLAGS) $( LDFLAGS) -o $@ $+ $( LIBS)
2015-05-09 02:59:18 +03:00
install_lvmpolld : lvmpolld
2024-04-08 14:10:16 +03:00
$( SHOW) " [INSTALL] $< "
2018-11-29 19:09:27 +03:00
$( Q) $( INSTALL_PROGRAM) -D $< $( sbindir) /$( <F)
2015-05-09 02:59:18 +03:00
install_lvm2 : install_lvmpolld
install : install_lvm 2