]> git.karo-electronics.de Git - linux-beck.git/commitdiff
Btrfs: Add sparse checking to Makefile
authorChris Mason <chris.mason@oracle.com>
Wed, 28 Feb 2007 14:40:58 +0000 (09:40 -0500)
committerDavid Woodhouse <dwmw2@hera.kernel.org>
Wed, 28 Feb 2007 14:40:58 +0000 (09:40 -0500)
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/Makefile
fs/btrfs/debug-tree.c

index ea9b6665da34fcdb170c9ba2ad7787cb51c1a5b8..078061c321b0c1f426b2de78971c5c2d12f64318 100644 (file)
@@ -3,8 +3,13 @@ CFLAGS = -g -Wall
 headers = radix-tree.h ctree.h disk-io.h kerncompat.h print-tree.h
 objects = ctree.o disk-io.o radix-tree.o mkfs.o extent-tree.o print-tree.o
 
-#.c.o:
-#      $(CC) $(CFLAGS) -c $<
+# if you don't have sparse installed, use ls instead
+check=sparse
+#check=ls
+
+.c.o:
+       $(check) $<
+       $(CC) $(CFLAGS) -c $<
 
 all: tester debug-tree
 
index b2c5abfdc74a09f934355e593812f0f2e38f0bf5..21f607d8b050e3f85938c5d599a73607113201c3 100644 (file)
@@ -6,7 +6,7 @@
 #include "disk-io.h"
 #include "print-tree.h"
 
-int main() {
+int main(int ac, char **av) {
        struct ctree_super_block super;
        struct ctree_root *root;
        radix_tree_init();