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
15 top_srcdir
= @top_srcdir@
16 top_builddir
= @top_builddir@
19 ifeq ("@DEBUG@", "yes")
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
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
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
)