Skip to contentSkip to conversation

cluster/gfs2/mkfs Makefile main_mkfs.c

Cluster-devel [email protected] 1 participant 1 message Jun 27, 2006

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/cluster
Module name: cluster
Changes by: rpeterso at sourceware.org 2006-06-27 21:04:15

Modified files:
gfs2/mkfs : Makefile main_mkfs.c

Log message:
Switch to libvolume_id method of determining pre-existing file systems.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs2/mkfs/Makefile.diff?cvsroot=cluster&r1=1.8&r2=1.9
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs2/mkfs/main_mkfs.c.diff?cvsroot=cluster&r1=1.6&r2=1.7

gfs2/mkfs/Makefile +3 -9
@@ -9,18 +9,14 @@
 
 MKFS=mkfs.gfs2
 INSTALLPATH=/sbin
-INCLUDEPATH=-I${KERNEL_SRC}/include/ -I${top_srcdir}/include/ -I${top_srcdir}/libgfs2/ -I${top_srcdir}/config/ 
-#When udev's libvolume_id gets gfs and gfs2 incorporated:
-#INCLUDEPATH=$INCLUDEPATH -I${top_srcdir}/libvolume_id
+INCLUDEPATH=-I${KERNEL_SRC}/include/ -I${top_srcdir}/include/ -I${top_srcdir}/libgfs2/ -I${top_srcdir}/config/
 
 INSTALL=install
 CC=gcc -c
 LD=gcc
 CFLAGS=-Wall -O2 -ggdb -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE \
        -D_GNU_SOURCE -DGFS2_RELEASE_NAME=\"2\" ${INCLUDEPATH}
-LDFLAGS=-L${top_srcdir}/libgfs2 
-#When udev's libvolume_id gets gfs and gfs2 incorporated:
-#LDFLAGS=$LDFLAGS -L${top_srcdir}/libvolume_id -static
+LDFLAGS=-L${top_srcdir}/libgfs2 -L${libdir}
 
 H=gfs2_disk_hash.h gfs2_mkfs.h linux_endian.h ondisk.h osi_list.h
 C=main.c main_mkfs.c
@@ -29,9 +25,7 @@
 all: ${MKFS}
 
 ${MKFS}: ${O}
-	${LD} ${LDFLAGS} ${O} -o ${@} -lgfs2
-#When udev's libvolume_id gets gfs and gfs2 incorporated add:
-#-lvolume_id
+	${LD} ${LDFLAGS} ${O} -o ${@} -lgfs2 -lvolume_id
 
 .c.o: $<
 	${CC} ${CFLAGS} -o $@ $^
gfs2/mkfs/main_mkfs.c +0 -267

274 lines not on this page · raw message