1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-10-28 20:25:52 +03:00
lvm2/daemons/dmeventd/Makefile.in

56 lines
1.6 KiB
Makefile
Raw Normal View History

#
2005-12-02 18:39:16 +03:00
# Copyright (C) 2005 Red Hat, Inc. All rights reserved.
#
# This file is part of the device-mapper userspace tools.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions
2005-12-02 18:39:16 +03:00
# of the GNU Lesser General Public License v.2.1.
#
2005-12-02 18:39:16 +03:00
# 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,
# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
srcdir = @srcdir@
top_srcdir = @top_srcdir@
VPATH = @srcdir@
2005-12-02 18:39:16 +03:00
SOURCES = libdevmapper-event.c \
dmeventd.c
2005-12-02 18:39:16 +03:00
LIB_STATIC = libdevmapper-event.a
2005-04-28 21:32:27 +04:00
ifeq ("@LIB_SUFFIX@","dylib")
2005-12-02 18:39:16 +03:00
LIB_SHARED = libdevmapper-event.dylib
2005-04-28 21:32:27 +04:00
else
2005-12-02 18:39:16 +03:00
LIB_SHARED = libdevmapper-event.so
2005-04-28 21:32:27 +04:00
endif
2005-12-02 18:39:16 +03:00
include ../make.tmpl
2005-12-05 14:16:48 +03:00
CLDFLAGS += -ldl -ldevmapper -lpthread
2005-12-02 18:39:16 +03:00
.PHONY: install_dynamic install_static
2005-04-28 21:32:27 +04:00
2005-12-02 18:39:16 +03:00
INSTALL_TYPE = install_dynamic
2005-12-02 18:39:16 +03:00
ifeq ("@STATIC_LINK@", "yes")
INSTALL_TYPE += install_static
endif
install: $(INSTALL_TYPE)
2005-12-02 18:39:16 +03:00
install_dynamic: libdevmapper-event.$(LIB_SUFFIX)
$(INSTALL) -D $(OWNER) $(GROUP) -m 555 $(STRIP) $< \
$(libdir)/libdevmapper-event.$(LIB_SUFFIX).$(LIB_VERSION)
$(LN_S) -f libdevmapper-event.$(LIB_SUFFIX).$(LIB_VERSION) \
$(libdir)/libdevmapper-event.$(LIB_SUFFIX)
$(INSTALL) -D $(OWNER) $(GROUP) -m 444 libdevmapper-event.h \
$(includedir)/libdevmapper-event.h
install_static: libdevmapper-event.a
$(INSTALL) -D $(OWNER) $(GROUP) -m 555 $(STRIP) $< \
$(libdir)/libdevmapper-event.a.$(LIB_VERSION)
$(LN_S) -f libdevmapper-event.a.$(LIB_VERSION) $(libdir)/libdevmapper-event.a