xref: /netbsd-src/external/gpl2/lvm2/dist/daemons/dmeventd/plugins/snapshot/Makefile.in (revision de4fa6c51a9708fc05f88b618fa6fad87c9508ec)
1#
2# Copyright (C) 2001-2004 Sistina Software, Inc. All rights reserved.
3# Copyright (C) 2004-2008 Red Hat, Inc. All rights reserved.
4#
5# This file is part of the LVM2.
6#
7# This copyrighted material is made available to anyone wishing to use,
8# modify, copy, or redistribute it subject to the terms and conditions
9# of the GNU General Public License v.2.
10#
11# You should have received a copy of the GNU General Public License
12# along with this program; if not, write to the Free Software Foundation,
13# Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
14
15srcdir = @srcdir@
16top_srcdir = @top_srcdir@
17VPATH = @srcdir@
18
19INCLUDES += -I${top_srcdir}/tools
20CLDFLAGS += -L${top_srcdir}/tools -ldevmapper @LVM2CMD_LIB@
21
22SOURCES = dmeventd_snapshot.c
23
24ifeq ("@LIB_SUFFIX@","dylib")
25  LIB_SHARED = libdevmapper-event-lvm2snapshot.dylib
26else
27  LIB_SHARED = libdevmapper-event-lvm2snapshot.so
28endif
29
30LIB_VERSION = $(LIB_VERSION_LVM)
31
32include $(top_srcdir)/make.tmpl
33
34install: libdevmapper-event-lvm2snapshot.$(LIB_SUFFIX)
35	$(INSTALL) -D $(OWNER) $(GROUP) -m 555 $(STRIP) $< \
36		$(libdir)/$<.$(LIB_VERSION)
37	$(LN_S) -f $<.$(LIB_VERSION) $(libdir)/$<
38