Making/using libvfs standalone.
Volker Apelt
volker_apelt at yahoo.de
Mon Feb 4 15:52:45 UTC 2002
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 . at . yahoo.de (remove the dots, please)
Dipl. Chem. +49 6172 31126
-------------- next part --------------
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
More information about the mc-devel
mailing list