From 599771c9b02884133d52e6bf666ece05f369ba09 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Thu, 26 Jan 2012 21:40:36 +0000 Subject: Build test run target only for $(TESTING) Add libraries properly in LDLIBS. --- test/unit/Makefile.in | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test') 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 -- cgit