Making/using libvfs standalone.



Hallo,

What parts of the ./vfs directory are required to use the
libvfs.so as a standalone library?

I am investigating how libvfs can be used as a part of 
another project. 

Is the is the library libvfs.so it self and the header file vfs.h 
enough? 

At the end of this message you will find a patch, which 
changes ./vfs/Make-mc.in to allow compilation of util-alone.c
It requires  LIBDIR, which was not defined.
  Is setting it to "\"${mclibdir}\"" OK?  

Thank you,

Volker Apelt
--
Volker Apelt   volker_apelt       yahoo.de (remove the dots, please)   
Dipl. Chem.    +49 6172 31126   
diff -u -r -bB mc-4.5.55/vfs/Make-mc.in mc-my/vfs/Make-mc.in
--- mc-4.5.55/vfs/Make-mc.in	Mon Feb  4 16:19:08 2002
+++ mc-my/vfs/Make-mc.in	Wed Aug  1 18:15:22 2001
@@ -202,10 +202,10 @@
 	utilunix.sor sfs.so fish.so direntry.so cpio.so
 
 %.sor:	../src/%.c
+	$(CC) -c -fpic $(CPPFLAGS) $(DEFS) $(CFLAGS) -DLIBDIR="\"${mclibdir}\"" -DVFS_STANDALONE $< -o $@
-	$(CC) -c -fpic $(CPPFLAGS) $(DEFS) $(CFLAGS) -DVFS_STANDALONE $< -o $@
 
 %.so:	%.c
+	$(CC) -c -fpic $(CPPFLAGS) $(DEFS) $(CFLAGS) -DLIBDIR="\"${mclibdir}\"" -DVFS_STANDALONE $< -o $@
-	$(CC) -c -fpic $(CPPFLAGS) $(DEFS) $(CFLAGS) -DVFS_STANDALONE $< -o $@
 
 libvfs.so: $(VFSSOOBJS)
 	gcc $(VFSSOOBJS) -shared -o libvfs.so


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]