Sync usage with man page.
[netbsd-mini2440.git] / external / gpl2 / lvm2 / dist / test / api / Makefile.in
blob29dbbdc22b0f82a5a232a763375980d2a74f691f
2 # Copyright (C) 2009 Red Hat, Inc. All rights reserved.
4 # This file is part of LVM2.
6 # This copyrighted material is made available to anyone wishing to use,
7 # modify, copy, or redistribute it subject to the terms and conditions
8 # of the GNU General Public License v.2.
10 # You should have received a copy of the GNU General Public License
11 # along with this program; if not, write to the Free Software Foundation,
12 # Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
14 srcdir = @srcdir@
15 top_srcdir = @top_srcdir@
16 top_builddir = @top_builddir@
17 VPATH = @srcdir@
19 ifeq ("@DEBUG@", "yes")
20 DEFS += -DDEBUG
21 endif
23 TARGETS = vgtest
24 test_SOURCES = test.c
25 vgtest_SOURCES = vgtest.c
26 INCLUDES += -I../../include
28 LVMLIBS = @LVM2APP_LIB@ -ldevmapper
29 DEPLIBS = $(top_srcdir)/liblvm/liblvm2app.so $(top_srcdir)/libdm/libdevmapper.so
31 DEFS += -D_REENTRANT
33 include $(top_srcdir)/make.tmpl
35 LDFLAGS = -L$(top_srcdir)/libdm -L$(top_srcdir)/liblvm
37 ifeq ("@DMEVENTD@", "yes")
38 LVMLIBS += -ldevmapper-event -lpthread
39 LDFLAGS += -L$(top_srcdir)/daemons/dmeventd
40 endif
42 test_OBJECTS = $(test_SOURCES:.c=.o)
43 vgtest_OBJECTS = $(vgtest_SOURCES:.c=.o)
44 OBJECTS = $(test_OBJECTS) $(vgtest_OBJECTS)
46 test: $(test_OBJECTS) $(DEPLIBS)
47 $(CC) -o test $(test_OBJECTS) $(CFLAGS) $(LDFLAGS) $(LVMLIBS) $(LIBS)
49 vgtest: $(vgtest_OBJECTS) $(DEPLIBS)
50 $(CC) -o vgtest $(vgtest_OBJECTS) $(CFLAGS) $(LDFLAGS) $(LVMLIBS) $(LIBS)