diff options
author | Bryn M. Reeves <bmr@redhat.com> | 2016-12-15 20:11:29 +0000 |
---|---|---|
committer | Bryn M. Reeves <bmr@redhat.com> | 2016-12-15 20:12:57 +0000 |
commit | 2f949bec23f9a10490e342783b8d13d13de5fbec (patch) | |
tree | 7518300af24915eb5a9576893d78d89d9ab50017 | |
parent | 2573f714d00b3f8623a2f0d872d0fb7d27059620 (diff) | |
download | lvm2-2f949bec23f9a10490e342783b8d13d13de5fbec.tar.gz |
make: add dmfilemapd to daemons makefiles
-rw-r--r-- | daemons/Makefile.in | 6 | ||||
-rw-r--r-- | daemons/dmfilemapd/Makefile.in | 69 |
2 files changed, 74 insertions, 1 deletions
diff --git a/daemons/Makefile.in b/daemons/Makefile.in index 507855cf4..ebbd740ef 100644 --- a/daemons/Makefile.in +++ b/daemons/Makefile.in @@ -48,8 +48,12 @@ ifeq ("@BUILD_LVMDBUSD@", "yes") SUBDIRS += lvmdbusd endif +ifeq ("@BUILD_DMFILEMAPD@", "yes") + SUBDIRS += dmfilemapd +endif + ifeq ($(MAKECMDGOALS),distclean) - SUBDIRS = clvmd cmirrord dmeventd lvmetad lvmpolld lvmlockd lvmdbusd + SUBDIRS = clvmd cmirrord dmeventd lvmetad lvmpolld lvmlockd lvmdbusd dmfilemapd endif include $(top_builddir)/make.tmpl diff --git a/daemons/dmfilemapd/Makefile.in b/daemons/dmfilemapd/Makefile.in new file mode 100644 index 000000000..98fb9a831 --- /dev/null +++ b/daemons/dmfilemapd/Makefile.in @@ -0,0 +1,69 @@ +# +# Copyright (C) 2016 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 +# 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, +# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + +srcdir = @srcdir@ +top_srcdir = @top_srcdir@ +top_builddir = @top_builddir@ + +SOURCES = dmfilemapd.c + +TARGETS = dmfilemapd + +.PHONY: install_dmeventd install_dmeventd_static + +INSTALL_DMFILEMAPD_TARGETS = install_dmfilemapd_dynamic + +CLEAN_TARGETS = dmfilemapd.static + +CFLOW_LIST = $(SOURCES) +CFLOW_LIST_TARGET = $(LIB_NAME).cflow +CFLOW_TARGET = dmfilemapd + +include $(top_builddir)/make.tmpl + +all: device-mapper +device-mapper: $(TARGETS) + +LIBS += -ldevmapper +LVMLIBS += -ldevmapper-event $(PTHREAD_LIBS) + +CFLAGS_dmeventd.o += $(EXTRA_EXEC_CFLAGS) + +dmfilemapd: $(LIB_SHARED) dmfilemapd.o + $(CC) $(CFLAGS) $(LDFLAGS) $(EXTRA_EXEC_LDFLAGS) $(ELDFLAGS) -L. -o $@ dmfilemapd.o \ + $(DL_LIBS) $(LVMLIBS) $(LIBS) -rdynamic + +dmfilemapd.static: $(LIB_STATIC) dmfilemapd.o $(interfacebuilddir)/libdevmapper.a + $(CC) $(CFLAGS) $(LDFLAGS) $(ELDFLAGS) -static -L. -L$(interfacebuilddir) -o $@ \ + dmfilemapd.o $(DL_LIBS) $(LVMLIBS) $(LIBS) $(STATIC_LIBS) + +ifneq ("$(CFLOW_CMD)", "") +CFLOW_SOURCES = $(addprefix $(srcdir)/, $(SOURCES)) +-include $(top_builddir)/libdm/libdevmapper.cflow +-include $(top_builddir)/lib/liblvm-internal.cflow +-include $(top_builddir)/lib/liblvm2cmd.cflow +-include $(top_builddir)/daemons/dmfilemapd/$(LIB_NAME).cflow +endif + +install_dmfilemapd_dynamic: dmfilemapd + $(INSTALL_PROGRAM) -D $< $(sbindir)/$(<F) + +install_dmfilemapd_static: dmfilemapd.static + $(INSTALL_PROGRAM) -D $< $(staticdir)/$(<F) + +install_dmfilemapd: $(INSTALL_DMEVENTD_TARGETS) + +install: install_dmfilemapd + +install_device-mapper: install_dmfilemapd + |