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
.PHONY : install_lvmpolld
CFLOW_LIST = $( SOURCES)
CFLOW_LIST_TARGET = $( LIB_NAME) .cflow
CFLOW_TARGET = lvmpolld
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
2017-08-01 01:01:07 +03:00
LDFLAGS += -L$( top_builddir) /libdaemon/server $( EXTRA_EXEC_LDFLAGS) $( ELDFLAGS)
LIBS += $( DAEMON_LIBS) -ldaemonserver -ldevmapper $( PTHREAD_LIBS)
2015-05-09 02:59:18 +03:00
lvmpolld : $( OBJECTS ) $( top_builddir ) /libdaemon /client /libdaemonclient .a \
$( top_builddir) /libdaemon/server/libdaemonserver.a
2017-08-01 01:01:07 +03:00
$( CC) $( CFLAGS) $( LDFLAGS) -o $@ $( OBJECTS) $( LIBS)
2015-05-09 02:59:18 +03:00
install_lvmpolld : lvmpolld
$( INSTALL_PROGRAM) -D $< $( sbindir) /$( <F)
install_lvm2 : install_lvmpolld
install : install_lvm 2