summaryrefslogtreecommitdiff
path: root/test/api/Makefile.in
diff options
context:
space:
mode:
Diffstat (limited to 'test/api/Makefile.in')
-rw-r--r--test/api/Makefile.in61
1 files changed, 30 insertions, 31 deletions
diff --git a/test/api/Makefile.in b/test/api/Makefile.in
index b3fb751..7ad6743 100644
--- a/test/api/Makefile.in
+++ b/test/api/Makefile.in
@@ -1,5 +1,5 @@
#
-# Copyright (C) 2009 Red Hat, Inc. All rights reserved.
+# Copyright (C) 2009-2012 Red Hat, Inc. All rights reserved.
#
# This file is part of LVM2.
#
@@ -15,47 +15,46 @@ srcdir = @srcdir@
top_srcdir = @top_srcdir@
top_builddir = @top_builddir@
-ifeq ("@DEBUG@", "yes")
- DEFS += -DDEBUG
-endif
-
-TARGETS =
-test_SOURCES = test.c
-wrapper_SOURCES = test.c
-INCLUDES += -I../../include
-
-UNIT = vgtest.t percent.t
+TARGETS =
+ifeq ("@APPLIB@", "yes")
+TARGETS += test
+SOURCES = test.c
+
+TARGETS += \
+ lvtest.t \
+ percent.t \
+ pe_start.t \
+ thin_percent.t \
+ vgtest.t
+
+SOURCES2 = \
+ lvtest.c \
+ percent.c \
+ pe_start.c \
+ thin_percent.c \
+ vgtest.c
-LVMLIBS = @LVM2APP_LIB@ -ldevmapper
-DEPLIBS = $(top_builddir)/liblvm/liblvm2app.so $(top_builddir)/libdm/libdevmapper.so
-
-DEFS += -D_REENTRANT
+endif
include $(top_builddir)/make.tmpl
-LDFLAGS = -L$(top_builddir)/libdm -L$(top_builddir)/liblvm
+DEFS += -D_REENTRANT
+DEPLIBS += $(top_builddir)/liblvm/liblvm2app.so $(top_builddir)/libdm/libdevmapper.so
+LDFLAGS += -L$(top_builddir)/liblvm
+LVMLIBS = @LVM2APP_LIB@ -ldevmapper
ifeq ("@DMEVENTD@", "yes")
- LVMLIBS += -ldevmapper-event
- LDFLAGS += -L$(top_builddir)/daemons/dmeventd
+ LVMLIBS += -ldevmapper-event
+ LDFLAGS += -L$(top_builddir)/daemons/dmeventd
endif
-test_OBJECTS = $(test_SOURCES:.c=.o)
-wrapper_OBJECTS = $(wrapper_SOURCES:.c=.o)
-OBJECTS = $(test_OBJECTS)
-
-all: tests test
-
-tests: $(UNIT)
-
-test: $(test_OBJECTS) $(DEPLIBS)
- $(CC) -o test $(test_OBJECTS) $(CFLAGS) $(LDFLAGS) $(LVMLIBS) $(LIBS) $(READLINE_LIBS)
+LVMLIBS += $(LIBS)
%.t: %.o $(DEPLIBS)
- $(CC) -o $@ $(<) $(CFLAGS) $(LDFLAGS) $(LVMLIBS) $(LIBS)
+ $(CC) -o $@ $(<) $(LDFLAGS) $(LVMLIBS)
-wrapper: $(wrapper_OBJECTS) $(DEPLIBS)
- $(CC) -o wrapper $(wrapper_OBJECTS) $(CFLAGS) $(LDFLAGS) $(LVMLIBS) $(LIBS) -lreadline
+test: $(OBJECTS) $(DEPLIBS)
+ $(CC) -o $@ $(OBJECTS) $(LDFLAGS) $(LVMLIBS) $(READLINE_LIBS)
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
cd $(top_builddir) && $(SHELL) ./config.status test/api/Makefile