Skip to contentSkip to conversation

cluster/dlm Makefile tool/Makefile tool/main.c

Cluster-devel [email protected] 1 participant 1 message Jun 5, 2007

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/cluster
Module name: cluster
Branch: RHEL5
Changes by: teigland at sourceware.org 2007-06-05 18:27:27

Modified files:
dlm : Makefile
Added files:
dlm/tool : Makefile main.c

Log message:
add dlm_tool, can be used to join/leave lockspace

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/dlm/Makefile.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.7&r2=1.7.2.1
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/dlm/tool/Makefile.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=NONE&r2=1.2.2.1
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/dlm/tool/main.c.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=NONE&r2=1.2.2.1

dlm/Makefile +4 -0
@@ -13,15 +13,19 @@
 
 all:
 	${MAKE} -C lib all
+	${MAKE} -C tool all
 
 install: all
 	${MAKE} -C lib install
+	${MAKE} -C tool install
 
 uninstall:
 	${MAKE} -C lib uninstall
+	${MAKE} -C tool uninstall
 
 clean:
 	${MAKE} -C lib clean
+	${MAKE} -C tool clean
 	rm -f *~
 
 distclean: clean

/cvs/cluster/cluster/dlm/tool/Makefile,v --> standard output revision 1.2.2.1

- renamed from dlm/tool/Makefile +35 -0
@@ -0,0 +1,35 @@
+###############################################################################
+###############################################################################
+##
+##  Copyright (C) 2005 Red Hat, Inc.  All rights reserved.
+##
+##  This copyrighted material is made available to anyone wishing to use,
+##  modify, copy, or redistribute it subject to the terms and conditions
+##  of the GNU General Public License v.2.
+##
+###############################################################################
+###############################################################################
+
+top_srcdir=..
+include ${top_srcdir}/make/defines.mk
+
+CFLAGS += -g -I. -I../lib/
+LDFLAGS += -ldlm
+
+TARGET=dlm_tool
+
+all: ${TARGET}
+
+dlm_tool: main.o
+	$(CC) $(LDFLAGS) -o $@ $^
+
+main.o: main.c
+	$(CC) $(CFLAGS) -c -o $@ $<
+
+clean:
+	rm -f *.o dlm_tool
+
+install: all
+	install -d ${sbindir}
+	install dlm_tool ${sbindir}
+

/cvs/cluster/cluster/dlm/tool/main.c,v --> standard output revision 1.2.2.1

- renamed from dlm/tool/main.c +194 -0

194 lines not on this page · raw message