fix leak in btrfs_drop_snapshot
[linux-2.6-block.git] / fs / btrfs / Makefile
CommitLineData
4920c9ac 1
aa5d6bed 2CC=gcc
0579da42 3CFLAGS = -g -Wall
a28ec197 4headers = radix-tree.h ctree.h disk-io.h kerncompat.h print-tree.h list.h
5de08d7d 5objects = ctree.o disk-io.o radix-tree.o mkfs.o extent-tree.o print-tree.o
eb60ceac 6
af86d07e 7# if you don't have sparse installed, use ls instead
aa5d6bed
CM
8CHECKFLAGS=-D__linux__ -Dlinux -D__STDC__ -Dunix -D__unix__ -Wbitwise \
9 -Wcontext -Wcast-truncate -Wuninitialized -Wshadow -Wundef
10check=sparse $(CHECKFLAGS)
af86d07e
CM
11#check=ls
12
13.c.o:
14 $(check) $<
15 $(CC) $(CFLAGS) -c $<
eb60ceac 16
79f95c82 17all: tester debug-tree quick-test
fec577fb
CM
18
19debug-tree: $(objects) debug-tree.o
20 gcc $(CFLAGS) -o debug-tree $(objects) debug-tree.o
21
22tester: $(objects) random-test.o
23 gcc $(CFLAGS) -o tester $(objects) random-test.o
4920c9ac 24
79f95c82
CM
25quick-test: $(objects) quick-test.o
26 gcc $(CFLAGS) -o quick-test $(objects) quick-test.o
27
5de08d7d
CM
28$(objects) : $(headers)
29
30clean :
7cf75962 31 rm debug-tree tester *.o
4920c9ac 32
fec577fb 33