Btrfs: Better block record keeping, real mkfs
[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
1261ec42 5objects = ctree.o disk-io.o radix-tree.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
1261ec42
CM
19all: tester debug-tree quick-test dir-test tags mkfs.btrfs
20
21mkfs.btrfs: $(objects) mkfs.o
22 gcc $(CFLAGS) -o mkfs.btrfs $(objects) mkfs.o
fec577fb
CM
23
24debug-tree: $(objects) debug-tree.o
25 gcc $(CFLAGS) -o debug-tree $(objects) debug-tree.o
26
27tester: $(objects) random-test.o
28 gcc $(CFLAGS) -o tester $(objects) random-test.o
4920c9ac 29
1d4f6404
CM
30dir-test: $(objects) dir-test.o
31 gcc $(CFLAGS) -o dir-test $(objects) dir-test.o
79f95c82
CM
32quick-test: $(objects) quick-test.o
33 gcc $(CFLAGS) -o quick-test $(objects) quick-test.o
34
7518a238 35$(objects): $(headers)
5de08d7d
CM
36
37clean :
7cf75962 38 rm debug-tree tester *.o
4920c9ac 39
fec577fb 40