diff options
Diffstat (limited to 'daemons/dmeventd/Makefile.in')
-rw-r--r-- | daemons/dmeventd/Makefile.in | 54 |
1 files changed, 31 insertions, 23 deletions
diff --git a/daemons/dmeventd/Makefile.in b/daemons/dmeventd/Makefile.in index 1302a44..f7896e5 100644 --- a/daemons/dmeventd/Makefile.in +++ b/daemons/dmeventd/Makefile.in @@ -9,16 +9,26 @@ # # 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 +# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA srcdir = @srcdir@ top_srcdir = @top_srcdir@ top_builddir = @top_builddir@ +abs_srcdir = @abs_srcdir@ SOURCES = libdevmapper-event.c SOURCES2 = dmeventd.c TARGETS = dmeventd +CFLOW_SOURCES = $(addprefix $(srcdir)/, $(SOURCES) $(SOURCES2) \ + plugins/lvm2/dmeventd_lvm.c \ + plugins/mirror/dmeventd_mirror.c \ + plugins/raid/dmeventd_raid.c \ + plugins/snapshot/dmeventd_snapshot.c \ + plugins/thin/dmeventd_thin.c \ + plugins/vdo/dmeventd_vdo.c \ + ) +CFLOW_TARGET := $(TARGETS) .PHONY: install_lib_dynamic install_lib_static install_include \ install_pkgconfig install_dmeventd_dynamic install_dmeventd_static \ @@ -37,6 +47,7 @@ endif LIB_VERSION = $(LIB_VERSION_DM) LIB_SHARED = $(LIB_NAME).$(LIB_SUFFIX) +LIBS = $(PTHREAD_LIBS) -L$(interfacebuilddir) -ldevmapper CLEAN_TARGETS = dmeventd.static $(LIB_NAME).a @@ -46,7 +57,6 @@ endif CFLOW_LIST = $(SOURCES) CFLOW_LIST_TARGET = $(LIB_NAME).cflow -CFLOW_TARGET = dmeventd EXPORTED_HEADER = $(srcdir)/libdevmapper-event.h EXPORTED_FN_PREFIX = dm_event @@ -55,49 +65,47 @@ include $(top_builddir)/make.tmpl all: device-mapper device-mapper: $(TARGETS) +plugins.device-mapper: $(LIB_SHARED) -LIBS += -ldevmapper -LVMLIBS += -ldevmapper-event $(PTHREAD_LIBS) +CFLAGS_dmeventd.o += $(EXTRA_EXEC_CFLAGS) dmeventd: $(LIB_SHARED) dmeventd.o - $(CC) $(CFLAGS) $(LDFLAGS) $(ELDFLAGS) -L. -o $@ dmeventd.o \ - $(DL_LIBS) $(LVMLIBS) $(LIBS) -rdynamic + @echo " [CC] $@" + $(Q) $(CC) $(CFLAGS) $(LDFLAGS) $(EXTRA_EXEC_LDFLAGS) $(ELDFLAGS) dmeventd.o \ + -o $@ $(DL_LIBS) $(DMEVENT_LIBS) $(LIBS) -dmeventd.static: $(LIB_STATIC) dmeventd.o $(interfacebuilddir)/libdevmapper.a - $(CC) $(CFLAGS) $(LDFLAGS) $(ELDFLAGS) -static -L. -L$(interfacebuilddir) -o $@ \ - dmeventd.o $(DL_LIBS) $(LVMLIBS) $(LIBS) $(STATIC_LIBS) +dmeventd.static: $(LIB_STATIC) dmeventd.o + @echo " [CC] $@" + $(Q) $(CC) $(CFLAGS) $(LDFLAGS) $(STATIC_LDFLAGS) -static dmeventd.o \ + -o $@ $(DL_LIBS) $(DMEVENT_LIBS) $(LIBS) $(STATIC_LIBS) ifeq ("@PKGCONFIG@", "yes") INSTALL_LIB_TARGETS += install_pkgconfig endif -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/dmeventd/$(LIB_NAME).cflow --include $(top_builddir)/daemons/dmeventd/plugins/mirror/$(LIB_NAME)-lvm2mirror.cflow -endif - install_include: $(srcdir)/libdevmapper-event.h - $(INSTALL_DATA) -D $< $(includedir)/$(<F) + @echo " [INSTALL] $(<F)" + $(Q) $(INSTALL_DATA) -D $< $(includedir)/$(<F) install_pkgconfig: libdevmapper-event.pc - $(INSTALL_DATA) -D $< $(pkgconfigdir)/devmapper-event.pc + @echo " [INSTALL] $<" + $(Q) $(INSTALL_DATA) -D $< $(pkgconfigdir)/devmapper-event.pc install_lib_dynamic: install_lib_shared install_lib_static: $(LIB_STATIC) - $(INSTALL_DATA) -D $< $(usrlibdir)/$(<F) + @echo " [INSTALL] $<" + $(Q) $(INSTALL_DATA) -D $< $(usrlibdir)/$(<F) install_lib: $(INSTALL_LIB_TARGETS) install_dmeventd_dynamic: dmeventd - $(INSTALL_PROGRAM) -D $< $(sbindir)/$(<F) + @echo " [INSTALL] $<" + $(Q) $(INSTALL_PROGRAM) -D $< $(sbindir)/$(<F) install_dmeventd_static: dmeventd.static - $(INSTALL_PROGRAM) -D $< $(staticdir)/$(<F) + @echo " [INSTALL] $<" + $(Q) $(INSTALL_PROGRAM) -D $< $(staticdir)/$(<F) install_dmeventd: $(INSTALL_DMEVENTD_TARGETS) |