summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZdenek Kabelac <zkabelac@redhat.com>2017-08-01 11:19:21 +0200
committerZdenek Kabelac <zkabelac@redhat.com>2017-08-01 11:53:32 +0200
commita60fd5723645a56b677281007e6d5ed2493945cf (patch)
treedf5ff9d7c8e07be035ae206670e08a7056a67f11
parent00fdf01d9d3885e7b1e2c3d92664423892811e25 (diff)
downloadlvm2-a60fd5723645a56b677281007e6d5ed2493945cf.tar.gz
tests: update makefile
-rw-r--r--test/api/Makefile.in15
1 files changed, 4 insertions, 11 deletions
diff --git a/test/api/Makefile.in b/test/api/Makefile.in
index d474ddf90..cc237df94 100644
--- a/test/api/Makefile.in
+++ b/test/api/Makefile.in
@@ -42,21 +42,14 @@ include $(top_builddir)/make.tmpl
DEFS += -D_REENTRANT
DEPLIBS += $(top_builddir)/liblvm/liblvm2app.so $(top_builddir)/libdm/libdevmapper.so
-LDFLAGS += -L$(top_builddir)/liblvm
-LVMLIBS = @LVM2APP_LIB@ -ldevmapper
-
-ifeq ("@DMEVENTD@", "yes")
- LVMLIBS += -ldevmapper-event
- LDFLAGS += -L$(top_builddir)/daemons/dmeventd
-endif
-
-LVMLIBS += $(LIBS)
+LDFLAGS += -L$(top_builddir)/liblvm -L$(top_builddir)/daemons/dmeventd
+LIBS += @LVM2APP_LIB@ $(DMEVENT_LIBS) -ldevmapper
%.t: %.o $(DEPLIBS)
- $(CC) -o $@ $(<) $(LDFLAGS) $(LVMLIBS)
+ $(CC) -o $@ $(<) $(LDFLAGS) $(LIBS)
test: $(OBJECTS) $(DEPLIBS)
- $(CC) -o $@ $(OBJECTS) $(LDFLAGS) $(LVMLIBS) $(READLINE_LIBS)
+ $(CC) -o $@ $(OBJECTS) $(LDFLAGS) $(LIBS) $(READLINE_LIBS)
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
cd $(top_builddir) && $(SHELL) ./config.status test/api/Makefile