Btrfs: Use a chunk of the key flags to record the item type.
[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
3768f368 5objects = ctree.o disk-io.o radix-tree.o mkfs.o extent-tree.o print-tree.o \
62e2749e 6 root-tree.o dir-item.o hash.o
eb60ceac 7
af86d07e 8# if you don't have sparse installed, use ls instead
aa5d6bed
CM
9CHECKFLAGS=-D__linux__ -Dlinux -D__STDC__ -Dunix -D__unix__ -Wbitwise \
10 -Wcontext -Wcast-truncate -Wuninitialized -Wshadow -Wundef
11check=sparse $(CHECKFLAGS)
af86d07e
CM
12#check=ls
13
14.c.o:
15 $(check) $<
16 $(CC) $(CFLAGS) -c $<
eb60ceac 17
79f95c82 18all: tester debug-tree quick-test
fec577fb
CM
19
20debug-tree: $(objects) debug-tree.o
21 gcc $(CFLAGS) -o debug-tree $(objects) debug-tree.o
22
23tester: $(objects) random-test.o
24 gcc $(CFLAGS) -o tester $(objects) random-test.o
4920c9ac 25
79f95c82
CM
26quick-test: $(objects) quick-test.o
27 gcc $(CFLAGS) -o quick-test $(objects) quick-test.o
28
7518a238 29$(objects): $(headers)
5de08d7d
CM
30
31clean :
7cf75962 32 rm debug-tree tester *.o
4920c9ac 33
fec577fb 34