Btrfs: Add inode map, and the start of file extent items
[linux-2.6-block.git] / fs / btrfs / Makefile
CommitLineData
aa5d6bed 1CC=gcc
e089f05c 2CFLAGS = -g -Wall -Werror
631d7d95
CM
3headers = radix-tree.h ctree.h disk-io.h kerncompat.h print-tree.h list.h \
4 transaction.h
3768f368 5objects = ctree.o disk-io.o radix-tree.o mkfs.o extent-tree.o print-tree.o \
9f5fae2f
CM
6 root-tree.o dir-item.o hash.o file-item.o inode-item.o \
7 inode-map.o \
eb60ceac 8
af86d07e 9# if you don't have sparse installed, use ls instead
aa5d6bed
CM
10CHECKFLAGS=-D__linux__ -Dlinux -D__STDC__ -Dunix -D__unix__ -Wbitwise \
11 -Wcontext -Wcast-truncate -Wuninitialized -Wshadow -Wundef
12check=sparse $(CHECKFLAGS)
af86d07e
CM
13#check=ls
14
15.c.o:
16 $(check) $<
17 $(CC) $(CFLAGS) -c $<
eb60ceac 18
e089f05c 19all: tester debug-tree quick-test dir-test tags
fec577fb
CM
20
21debug-tree: $(objects) debug-tree.o
22 gcc $(CFLAGS) -o debug-tree $(objects) debug-tree.o
23
24tester: $(objects) random-test.o
25 gcc $(CFLAGS) -o tester $(objects) random-test.o
4920c9ac 26
1d4f6404
CM
27dir-test: $(objects) dir-test.o
28 gcc $(CFLAGS) -o dir-test $(objects) dir-test.o
79f95c82
CM
29quick-test: $(objects) quick-test.o
30 gcc $(CFLAGS) -o quick-test $(objects) quick-test.o
31
7518a238 32$(objects): $(headers)
5de08d7d
CM
33
34clean :
7cf75962 35 rm debug-tree tester *.o
4920c9ac 36
fec577fb 37