From 00fdf01d9d3885e7b1e2c3d92664423892811e25 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Mon, 31 Jul 2017 23:58:51 +0200 Subject: [PATCH] makefiles: cleanups --- daemons/clvmd/Makefile.in | 6 +++--- daemons/dmfilemapd/Makefile.in | 3 +-- daemons/lvmetad/Makefile.in | 2 +- lib/Makefile.in | 8 ++++---- 4 files changed, 9 insertions(+), 10 deletions(-) diff --git a/daemons/clvmd/Makefile.in b/daemons/clvmd/Makefile.in index 170041f58..7b1b49bf9 100644 --- a/daemons/clvmd/Makefile.in +++ b/daemons/clvmd/Makefile.in @@ -31,9 +31,9 @@ SALCK_LIBS = @SALCK_LIBS@ SALCK_CFLAGS = @SALCK_CFLAGS@ SOURCES = \ - clvmd-command.c \ - clvmd.c \ - lvm-functions.c \ + clvmd-command.c\ + clvmd.c\ + lvm-functions.c\ refresh_clvmd.c ifneq (,$(findstring cman,, "@CLVMD@,")) diff --git a/daemons/dmfilemapd/Makefile.in b/daemons/dmfilemapd/Makefile.in index f37ac1b49..8a4938b22 100644 --- a/daemons/dmfilemapd/Makefile.in +++ b/daemons/dmfilemapd/Makefile.in @@ -34,9 +34,8 @@ include $(top_builddir)/make.tmpl all: device-mapper device-mapper: $(TARGETS) -LIBS += -ldevmapper - CFLAGS_dmfilemapd.o += $(EXTRA_EXEC_CFLAGS) +LIBS += -ldevmapper dmfilemapd: $(LIB_SHARED) dmfilemapd.o $(CC) $(CFLAGS) $(LDFLAGS) $(EXTRA_EXEC_LDFLAGS) $(ELDFLAGS) \ diff --git a/daemons/lvmetad/Makefile.in b/daemons/lvmetad/Makefile.in index 04733187c..44e10fafa 100644 --- a/daemons/lvmetad/Makefile.in +++ b/daemons/lvmetad/Makefile.in @@ -16,7 +16,7 @@ top_srcdir = @top_srcdir@ top_builddir = @top_builddir@ SOURCES = lvmetad-core.c -SOURCES2 = testclient.c +SOURCES2 = lvmetactl.c TARGETS = lvmetad lvmetactl diff --git a/lib/Makefile.in b/lib/Makefile.in index 752f1957b..ddbd8dec0 100644 --- a/lib/Makefile.in +++ b/lib/Makefile.in @@ -48,6 +48,10 @@ ifeq ("@CACHE@", "shared") SUBDIRS += cache_segtype endif +ifeq ("@CLUSTER@", "shared") + SUBDIRS += locking +endif + SOURCES =\ activate/activate.c \ cache/lvmcache.c \ @@ -149,10 +153,6 @@ ifeq ("@CLUSTER@", "internal") SOURCES += locking/cluster_locking.c endif -ifeq ("@CLUSTER@", "shared") - SUBDIRS += locking -endif - ifeq ("@SNAPSHOTS@", "internal") SOURCES += snapshot/snapshot.c endif