1*86d7f5d3SJohn Marino# 2*86d7f5d3SJohn Marino# Copyright (C) 2009 Red Hat, Inc. All rights reserved. 3*86d7f5d3SJohn Marino# 4*86d7f5d3SJohn Marino# This file is part of LVM2. 5*86d7f5d3SJohn Marino# 6*86d7f5d3SJohn Marino# This copyrighted material is made available to anyone wishing to use, 7*86d7f5d3SJohn Marino# modify, copy, or redistribute it subject to the terms and conditions 8*86d7f5d3SJohn Marino# of the GNU General Public License v.2. 9*86d7f5d3SJohn Marino# 10*86d7f5d3SJohn Marino# You should have received a copy of the GNU General Public License 11*86d7f5d3SJohn Marino# along with this program; if not, write to the Free Software Foundation, 12*86d7f5d3SJohn Marino# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 13*86d7f5d3SJohn Marino 14*86d7f5d3SJohn Marinosrcdir = @srcdir@ 15*86d7f5d3SJohn Marinotop_srcdir = @top_srcdir@ 16*86d7f5d3SJohn Marinotop_builddir = @top_builddir@ 17*86d7f5d3SJohn MarinoVPATH = @srcdir@ 18*86d7f5d3SJohn Marino 19*86d7f5d3SJohn MarinoCPG_LIBS = @CPG_LIBS@ 20*86d7f5d3SJohn MarinoCPG_CFLAGS = @CPG_CFLAGS@ 21*86d7f5d3SJohn MarinoSACKPT_LIBS = @SACKPT_LIBS@ 22*86d7f5d3SJohn MarinoSACKPT_CFLAGS = @SACKPT_CFLAGS@ 23*86d7f5d3SJohn Marino 24*86d7f5d3SJohn MarinoSOURCES = clogd.c cluster.c functions.c link_mon.c local.c logging.c 25*86d7f5d3SJohn Marino 26*86d7f5d3SJohn MarinoTARGETS = cmirrord 27*86d7f5d3SJohn Marino 28*86d7f5d3SJohn Marinoinclude ../../make.tmpl 29*86d7f5d3SJohn Marino 30*86d7f5d3SJohn MarinoLIBS += -ldevmapper 31*86d7f5d3SJohn MarinoLMLIBS += $(CPG_LIBS) $(SACKPT_LIBS) 32*86d7f5d3SJohn MarinoCFLAGS += $(CPG_CFLAGS) $(SACKPT_CFLAGS) 33*86d7f5d3SJohn Marino 34*86d7f5d3SJohn Marinocmirrord: $(OBJECTS) $(top_builddir)/lib/liblvm-internal.a 35*86d7f5d3SJohn Marino $(CC) $(CFLAGS) $(LDFLAGS) -o cmirrord $(OBJECTS) \ 36*86d7f5d3SJohn Marino $(LVMLIBS) $(LMLIBS) $(LIBS) 37*86d7f5d3SJohn Marino 38*86d7f5d3SJohn Marinoinstall: $(TARGETS) 39*86d7f5d3SJohn Marino $(INSTALL) -D $(OWNER) $(GROUP) -m 555 $(STRIP) cmirrord \ 40*86d7f5d3SJohn Marino $(usrsbindir)/cmirrord 41