mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
Build test run target only for $(TESTING)
Add libraries properly in LDLIBS.
This commit is contained in:
parent
7012268499
commit
599771c9b0
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user