2005-12-02 22:52:06 +03:00
#
# Copyright (C) 2001-2004 Sistina Software, Inc. All rights reserved.
2010-01-22 01:15:45 +03:00
# Copyright (C) 2004-2005, 2008-2010 Red Hat, Inc. All rights reserved.
2005-12-02 22:52:06 +03:00
#
2007-09-21 14:16:45 +04:00
# This file is part of LVM2.
2005-12-02 22:52:06 +03:00
#
# 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,
# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
srcdir = @srcdir@
top_srcdir = @top_srcdir@
2009-10-02 23:10:31 +04:00
top_builddir = @top_builddir@
2005-12-02 22:52:06 +03:00
VPATH = @srcdir@
2010-01-22 01:15:45 +03:00
INCLUDES += -I${ top_srcdir } /tools -I$( top_srcdir) /daemons/dmeventd/plugins/lvm2
CLDFLAGS += -L${ top_builddir } /tools -L${ top_builddir } /daemons/dmeventd/plugins/lvm2
2005-12-02 22:52:06 +03:00
SOURCES = dmeventd_mirror.c
2006-01-31 17:52:30 +03:00
i f e q ( "@LIB_SUFFIX@" , "dylib" )
LIB_SHARED = libdevmapper-event-lvm2mirror.dylib
e l s e
LIB_SHARED = libdevmapper-event-lvm2mirror.so
e n d i f
2005-12-02 22:52:06 +03:00
2008-11-04 01:14:30 +03:00
LIB_VERSION = $( LIB_VERSION_LVM)
2009-10-02 23:10:31 +04:00
i n c l u d e $( top_builddir ) / m a k e . t m p l
2005-12-02 22:52:06 +03:00
2010-01-22 01:15:45 +03:00
LIBS += -ldevmapper @LIB_PTHREAD@ @LVM2CMD_LIB@ -ldevmapper-event-lvm2
2009-10-09 20:04:54 +04:00
2009-05-11 14:28:45 +04:00
install_lvm2 : libdevmapper -event -lvm 2mirror .$( LIB_SUFFIX )
2005-12-02 22:52:06 +03:00
$( INSTALL) -D $( OWNER) $( GROUP) -m 555 $( STRIP) $< \
$( libdir) /$<.$( LIB_VERSION)
2006-02-09 02:23:19 +03:00
$( LN_S) -f $<.$( LIB_VERSION) $( libdir) /$<
2009-05-11 14:28:45 +04:00
install : install_lvm 2