1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-03 05:18:29 +03:00

Build test run target only for $(TESTING)

Add libraries properly in LDLIBS.
This commit is contained in:
Zdenek Kabelac 2012-01-26 21:40:36 +00:00
parent 7012268499
commit 599771c9b0

View File

@ -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. # This file is part of LVM2.
# #
@ -16,11 +16,11 @@ top_builddir = @top_builddir@
VPATH = $(srcdir) VPATH = $(srcdir)
SOURCES = bitset_t.c matcher_t.c config_t.c run.c SOURCES = bitset_t.c matcher_t.c config_t.c run.c
TARGETS = run
include $(top_builddir)/make.tmpl include $(top_builddir)/make.tmpl
ifeq ("$(TESTING)", "yes") ifeq ("$(TESTING)", "yes")
LDFLAGS += -ldevmapper @CUNIT_LIBS@ TARGETS = run
LDLIBS += -ldevmapper @CUNIT_LIBS@
CFLAGS += @CUNIT_CFLAGS@ CFLAGS += @CUNIT_CFLAGS@
all: unit all: unit