summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorZdenek Kabelac <zkabelac@redhat.com>2012-01-26 21:40:36 +0000
committerZdenek Kabelac <zkabelac@redhat.com>2012-01-26 21:40:36 +0000
commit599771c9b02884133d52e6bf666ece05f369ba09 (patch)
tree27497af59c2835c81a059ff2d5945cb672b2a6e1 /test
parent7012268499edbca8f04fcf3b672286ddadc293d9 (diff)
downloadlvm2-599771c9b02884133d52e6bf666ece05f369ba09.tar.gz
lvm2-599771c9b02884133d52e6bf666ece05f369ba09.tar.xz
lvm2-599771c9b02884133d52e6bf666ece05f369ba09.zip
Build test run target only for $(TESTING)
Add libraries properly in LDLIBS.
Diffstat (limited to 'test')
-rw-r--r--test/unit/Makefile.in6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/unit/Makefile.in b/test/unit/Makefile.in
index c90b2811..93525a44 100644
--- a/test/unit/Makefile.in
+++ b/test/unit/Makefile.in
@@ -1,4 +1,4 @@
-# Copyright (C) 2011 Red Hat, Inc. All rights reserved.
+# Copyright (C) 2011-2012 Red Hat, Inc. All rights reserved.
#
# This file is part of LVM2.
#
@@ -16,11 +16,11 @@ top_builddir = @top_builddir@
VPATH = $(srcdir)
SOURCES = bitset_t.c matcher_t.c config_t.c run.c
-TARGETS = run
include $(top_builddir)/make.tmpl
ifeq ("$(TESTING)", "yes")
-LDFLAGS += -ldevmapper @CUNIT_LIBS@
+TARGETS = run
+LDLIBS += -ldevmapper @CUNIT_LIBS@
CFLAGS += @CUNIT_CFLAGS@
all: unit