[Tux3] [PATCH] build on systems that don't have FUSE
Benjamin K. Stuhl
benjamin.stuhl at colorado.edu
Tue Sep 9 10:49:34 PDT 2008
Sent via webmail, hopefully this won't be whitespace-mangled...
At some point Tux3 userspace should move to a buildsystem with
configuration support (CMake, SCons, even autotools), but this
should do for the moment, it just skips building the FUSE parts
if we don't have FUSE.
Thanks,
-- BKS
diff -r de15ed7b3c0c user/test/Makefile
--- a/user/test/Makefile Tue Sep 09 02:14:13 2008 -0700
+++ b/user/test/Makefile Tue Sep 09 11:37:06 2008 -0600
@@ -43,10 +43,10 @@
$(CC) $(CFLAGS) buffer.c diskio.c tux3.c -lpopt -otux3
tux3fs: $(fsdeps) tux3fs.c
- $(CC) $(CFLAGS) $$(pkg-config --cflags fuse) buffer.c diskio.c tux3fs.c
-lfuse -otux3fs
+ if pkg-config fuse; then $(CC) $(CFLAGS) $$(pkg-config --cflags fuse)
buffer.c diskio.c tux3fs.c -lfuse -otux3fs; else true; fi
tux3fuse: $(fsdeps) tux3fuse.c
- $(CC) $(CFLAGS) $$(pkg-config --cflags fuse) buffer.c diskio.c
tux3fuse.c -lfuse -otux3fuse
+ if pkg-config fuse; then $(CC) $(CFLAGS) $$(pkg-config --cflags fuse)
buffer.c diskio.c tux3fuse.c -lfuse -otux3fuse; else true; fi
makefs mkfs: tux3 tux3fs
dd if=/dev/zero of=/tmp/testdev bs=1 count=1 seek=1M
_______________________________________________
Tux3 mailing list
Tux3 at tux3.org
http://tux3.org/cgi-bin/mailman/listinfo/tux3
More information about the Tux3
mailing list