diff options
author | Chris Mason <chris.mason@oracle.com> | 2007-02-28 09:40:58 -0500 |
---|---|---|
committer | David Woodhouse <dwmw2@hera.kernel.org> | 2007-02-28 09:40:58 -0500 |
commit | af86d07efe83e2f2da3658702a720bc48b1a6d78 (patch) | |
tree | 0e8895099617f5cfd65680f936af3fc0a3cd87e6 /fs/btrfs/Makefile | |
parent | 8e19f2cd452853d1ca0895c2488c24d40de3d255 (diff) |
Btrfs: Add sparse checking to Makefile
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/Makefile')
-rw-r--r-- | fs/btrfs/Makefile | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/fs/btrfs/Makefile b/fs/btrfs/Makefile index ea9b6665da34..078061c321b0 100644 --- a/fs/btrfs/Makefile +++ b/fs/btrfs/Makefile | |||
@@ -3,8 +3,13 @@ CFLAGS = -g -Wall | |||
3 | headers = radix-tree.h ctree.h disk-io.h kerncompat.h print-tree.h | 3 | headers = radix-tree.h ctree.h disk-io.h kerncompat.h print-tree.h |
4 | objects = ctree.o disk-io.o radix-tree.o mkfs.o extent-tree.o print-tree.o | 4 | objects = ctree.o disk-io.o radix-tree.o mkfs.o extent-tree.o print-tree.o |
5 | 5 | ||
6 | #.c.o: | 6 | # if you don't have sparse installed, use ls instead |
7 | # $(CC) $(CFLAGS) -c $< | 7 | check=sparse |
8 | #check=ls | ||
9 | |||
10 | .c.o: | ||
11 | $(check) $< | ||
12 | $(CC) $(CFLAGS) -c $< | ||
8 | 13 | ||
9 | all: tester debug-tree | 14 | all: tester debug-tree |
10 | 15 | ||