Skip to contentSkip to conversation

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

Cluster-devel [email protected] 1 participant 1 message May 18, 2007

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/cluster
Module name: cluster
Changes by: teigland at sourceware.org 2007-05-18 16:39:51

Added files:
dlm : Makefile
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&r1=1.8&r2=1.9
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/dlm/tool/Makefile.diff?cvsroot=cluster&r1=NONE&r2=1.1
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/dlm/tool/main.c.diff?cvsroot=cluster&r1=NONE&r2=1.1

dlm/Makefile +8 -17
@@ -1,9 +1,8 @@
 ###############################################################################
 ###############################################################################
 ##
-##  Copyright (C) Sistina Software, Inc.  1997-2003  All rights reserved.
-##  Copyright (C) 2004 Red Hat, Inc.  All rights reserved.
-##  
+##  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.
@@ -11,18 +10,10 @@
 ###############################################################################
 ###############################################################################
 
-all:
-	${MAKE} -C lib all
-
-install: all
-	${MAKE} -C lib install
-
-uninstall:
-	${MAKE} -C lib uninstall
-
-clean:
-	${MAKE} -C lib clean
-	rm -f *~
+SUBDIRS=lib tool
 
-distclean: clean
-	rm -f make/defines.mk
+%:
+	set -e && \
+	for i in ${SUBDIRS}; do \
+		${MAKE} -C $$i $@; \
+	done

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

- renamed from dlm/tool/Makefile +39 -0
@@ -0,0 +1,39 @@
+###############################################################################
+###############################################################################
+##
+##  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.
+##
+###############################################################################
+###############################################################################
+
+include ../../make/defines.mk
+
+TARGET= dlm_tool
+
+OBJS=	main.o
+
+CFLAGS += -g
+CFLAGS += -I. -I../lib/
+LDFLAGS += -L../lib -ldlm
+
+all: ${TARGET}
+
+${TARGET}: ${OBJS}
+	$(CC) -o $@ $^ $(LDFLAGS)
+
+%.o: %.c
+	$(CC) $(CFLAGS) -c -o $@ $<
+
+clean:
+	rm -f *.o ${TARGET}
+
+install: all
+	install -d ${sbindir}
+	install ${TARGET} ${sbindir}
+
+uninstall:
+	${UNINSTALL} ${TARGET} ${sbindir}

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

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

189 lines not on this page · raw message