Skip to contentSkip to conversation

cluster ccs/lib/Makefile gfs/libgfs/Makefile g ...

Cluster-devel [email protected] 1 participant 1 message Nov 12, 2007

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/cluster
Module name: cluster
Changes by: fabbione at sourceware.org 2007-11-12 08:17:00

Modified files:

	ccs/lib        : Makefile 
	gfs/libgfs     : Makefile 
	gfs2/libgfs2   : Makefile 
	group/lib      : Makefile 

rgmanager/src/clulib: Makefile

Log message:
Be consistent across the entire tree on AR and RANLIB invocations

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/ccs/lib/Makefile.diff?cvsroot=cluster&r1=1.8&r2=1.9
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs/libgfs/Makefile.diff?cvsroot=cluster&r1=1.10&r2=1.11
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs2/libgfs2/Makefile.diff?cvsroot=cluster&r1=1.12&r2=1.13
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/group/lib/Makefile.diff?cvsroot=cluster&r1=1.7&r2=1.8
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/rgmanager/src/clulib/Makefile.diff?cvsroot=cluster&r1=1.17&r2=1.18

ccs/lib/Makefile +2 -1
@@ -25,7 +25,8 @@
 all: ${TARGET}
 
 ${TARGET}: ${OBJS}
-	${AR} cr ${TARGET} ${OBJS}
+	${AR} cr $@ $^
+	${RANLIB} $@
 
 %.o: %.c
 	$(CC) $(CFLAGS) -c -o $@ $<
gfs/libgfs/Makefile +2 -2
@@ -41,8 +41,8 @@
 all: ${TARGET}
 
 ${TARGET}: ${OBJS}
-	ar cru libgfs.a ${OBJS}
-	ranlib libgfs.a
+	${AR} cru $@ $^
+	${RANLIB} $@
 
 %.o: %.c
 	$(CC) $(CFLAGS) -c -o $@ $<
gfs2/libgfs2/Makefile +2 -2
@@ -40,8 +40,8 @@
 all: ${TARGET}
 
 ${TARGET}: ${OBJS}
-	ar cru libgfs2.a ${OBJS}
-	ranlib libgfs2.a
+	${AR} cru $@ $^
+	${RANLIB} $@
 
 %.o: %.c
 	$(CC) $(CFLAGS) -c -o $@ $<
group/lib/Makefile +1 -1
@@ -23,7 +23,7 @@
 
 $(TARGET).a: $(TARGET).o
 	${AR} r $@ $^
-#	${RANLIB} $(TARGET).a 
+	${RANLIB} $@
 
 %.o: %.c
 	$(CC) $(CFLAGS) -c -o $@ $<
rgmanager/src/clulib/Makefile +2 -2
@@ -42,11 +42,11 @@
 
 ${TARGET1}: ${OBJS1}
 	${AR} cru $@ $^
-	ranlib $@
+	${RANLIB} $@
 
 ${TARGET2}: ${OBJS2}
 	${AR} cru $@ $^
-	ranlib $@
+	${RANLIB} $@
 
 ${TARGET3}: ${OBJS3} ${TARGET1}
 	$(CC) -o $@ $^ $(LDFLAGS)