1*86d7f5d3SJohn Marino# 2*86d7f5d3SJohn Marino# Copyright (C) 2001-2004 Sistina Software, Inc. All rights reserved. 3*86d7f5d3SJohn Marino# Copyright (C) 2004-2008 Red Hat, Inc. All rights reserved. 4*86d7f5d3SJohn Marino# 5*86d7f5d3SJohn Marino# This file is part of the LVM2. 6*86d7f5d3SJohn Marino# 7*86d7f5d3SJohn Marino# This copyrighted material is made available to anyone wishing to use, 8*86d7f5d3SJohn Marino# modify, copy, or redistribute it subject to the terms and conditions 9*86d7f5d3SJohn Marino# of the GNU General Public License v.2. 10*86d7f5d3SJohn Marino# 11*86d7f5d3SJohn Marino# You should have received a copy of the GNU General Public License 12*86d7f5d3SJohn Marino# along with this program; if not, write to the Free Software Foundation, 13*86d7f5d3SJohn Marino# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 14*86d7f5d3SJohn Marino 15*86d7f5d3SJohn Marinosrcdir = @srcdir@ 16*86d7f5d3SJohn Marinotop_srcdir = @top_srcdir@ 17*86d7f5d3SJohn Marinotop_builddir = @top_builddir@ 18*86d7f5d3SJohn MarinoVPATH = @srcdir@ 19*86d7f5d3SJohn Marino 20*86d7f5d3SJohn MarinoINCLUDES += -I${top_srcdir}/tools 21*86d7f5d3SJohn MarinoCLDFLAGS += -L${top_builddir}/tools 22*86d7f5d3SJohn Marino 23*86d7f5d3SJohn MarinoSOURCES = dmeventd_snapshot.c 24*86d7f5d3SJohn Marino 25*86d7f5d3SJohn Marinoifeq ("@LIB_SUFFIX@","dylib") 26*86d7f5d3SJohn Marino LIB_SHARED = libdevmapper-event-lvm2snapshot.dylib 27*86d7f5d3SJohn Marinoelse 28*86d7f5d3SJohn Marino LIB_SHARED = libdevmapper-event-lvm2snapshot.so 29*86d7f5d3SJohn Marinoendif 30*86d7f5d3SJohn Marino 31*86d7f5d3SJohn MarinoLIB_VERSION = $(LIB_VERSION_LVM) 32*86d7f5d3SJohn Marino 33*86d7f5d3SJohn Marinoinclude $(top_builddir)/make.tmpl 34*86d7f5d3SJohn Marino 35*86d7f5d3SJohn MarinoLIBS += -ldevmapper @LIB_PTHREAD@ @LVM2CMD_LIB@ 36*86d7f5d3SJohn Marino 37*86d7f5d3SJohn Marinoinstall_lvm2: libdevmapper-event-lvm2snapshot.$(LIB_SUFFIX) 38*86d7f5d3SJohn Marino $(INSTALL) -D $(OWNER) $(GROUP) -m 555 $(STRIP) $< \ 39*86d7f5d3SJohn Marino $(libdir)/$<.$(LIB_VERSION) 40*86d7f5d3SJohn Marino $(LN_S) -f $<.$(LIB_VERSION) $(libdir)/$< 41*86d7f5d3SJohn Marino 42*86d7f5d3SJohn Marinoinstall: install_lvm2 43