1bec4d750Shaad# 2*7c604eeaShaad# Copyright (C) 2009 Red Hat, Inc. All rights reserved. 3bec4d750Shaad# 4bec4d750Shaad# This file is part of LVM2. 5bec4d750Shaad# 6bec4d750Shaad# This copyrighted material is made available to anyone wishing to use, 7bec4d750Shaad# modify, copy, or redistribute it subject to the terms and conditions 8bec4d750Shaad# of the GNU General Public License v.2. 9bec4d750Shaad# 10bec4d750Shaad# You should have received a copy of the GNU General Public License 11bec4d750Shaad# along with this program; if not, write to the Free Software Foundation, 12bec4d750Shaad# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 13bec4d750Shaad 14bec4d750Shaadsrcdir = @srcdir@ 15bec4d750Shaadtop_srcdir = @top_srcdir@ 16*7c604eeaShaadtop_builddir = @top_builddir@ 17bec4d750ShaadVPATH = @srcdir@ 18bec4d750Shaad 19bec4d750Shaadifeq ("@DEBUG@", "yes") 20bec4d750Shaad DEFS += -DDEBUG 21bec4d750Shaadendif 22bec4d750Shaad 23*7c604eeaShaadTARGETS = vgtest 24*7c604eeaShaadtest_SOURCES = test.c 25*7c604eeaShaadvgtest_SOURCES = vgtest.c 26*7c604eeaShaadINCLUDES += -I../../include 27bec4d750Shaad 28*7c604eeaShaadLVMLIBS = @LVM2APP_LIB@ -ldevmapper 29*7c604eeaShaadDEPLIBS = $(top_srcdir)/liblvm/liblvm2app.so $(top_srcdir)/libdm/libdevmapper.so 30bec4d750Shaad 31bec4d750ShaadDEFS += -D_REENTRANT 32bec4d750Shaad 33bec4d750Shaadinclude $(top_srcdir)/make.tmpl 34bec4d750Shaad 35*7c604eeaShaadLDFLAGS = -L$(top_srcdir)/libdm -L$(top_srcdir)/liblvm 36bec4d750Shaad 37*7c604eeaShaadifeq ("@DMEVENTD@", "yes") 38*7c604eeaShaad LVMLIBS += -ldevmapper-event -lpthread 39*7c604eeaShaad LDFLAGS += -L$(top_srcdir)/daemons/dmeventd 40*7c604eeaShaadendif 41*7c604eeaShaad 42*7c604eeaShaadtest_OBJECTS = $(test_SOURCES:.c=.o) 43*7c604eeaShaadvgtest_OBJECTS = $(vgtest_SOURCES:.c=.o) 44*7c604eeaShaadOBJECTS = $(test_OBJECTS) $(vgtest_OBJECTS) 45*7c604eeaShaad 46*7c604eeaShaadtest: $(test_OBJECTS) $(DEPLIBS) 47*7c604eeaShaad $(CC) -o test $(test_OBJECTS) $(CFLAGS) $(LDFLAGS) $(LVMLIBS) $(LIBS) 48*7c604eeaShaad 49*7c604eeaShaadvgtest: $(vgtest_OBJECTS) $(DEPLIBS) 50*7c604eeaShaad $(CC) -o vgtest $(vgtest_OBJECTS) $(CFLAGS) $(LDFLAGS) $(LVMLIBS) $(LIBS) 51