From: Zdenek Kabelac Date: Thu, 26 Jan 2012 21:40:36 +0000 (+0000) Subject: Build test run target only for $(TESTING) X-Git-Tag: v2_02_91~65 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=599771c9b02884133d52e6bf666ece05f369ba09;p=lvm2.git Build test run target only for $(TESTING) Add libraries properly in LDLIBS. --- diff --git a/test/unit/Makefile.in b/test/unit/Makefile.in index c90b28111..93525a446 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