Commit | Line | Data |
---|---|---|
aa5d6bed | 1 | CC=gcc |
e089f05c | 2 | CFLAGS = -g -Wall -Werror |
631d7d95 CM |
3 | headers = radix-tree.h ctree.h disk-io.h kerncompat.h print-tree.h list.h \ |
4 | transaction.h | |
3768f368 | 5 | objects = 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 |
10 | CHECKFLAGS=-D__linux__ -Dlinux -D__STDC__ -Dunix -D__unix__ -Wbitwise \ |
11 | -Wcontext -Wcast-truncate -Wuninitialized -Wshadow -Wundef | |
12 | check=sparse $(CHECKFLAGS) | |
af86d07e CM |
13 | #check=ls |
14 | ||
15 | .c.o: | |
16 | $(check) $< | |
17 | $(CC) $(CFLAGS) -c $< | |
eb60ceac | 18 | |
e089f05c | 19 | all: tester debug-tree quick-test dir-test tags |
fec577fb CM |
20 | |
21 | debug-tree: $(objects) debug-tree.o | |
22 | gcc $(CFLAGS) -o debug-tree $(objects) debug-tree.o | |
23 | ||
24 | tester: $(objects) random-test.o | |
25 | gcc $(CFLAGS) -o tester $(objects) random-test.o | |
4920c9ac | 26 | |
1d4f6404 CM |
27 | dir-test: $(objects) dir-test.o |
28 | gcc $(CFLAGS) -o dir-test $(objects) dir-test.o | |
79f95c82 CM |
29 | quick-test: $(objects) quick-test.o |
30 | gcc $(CFLAGS) -o quick-test $(objects) quick-test.o | |
31 | ||
7518a238 | 32 | $(objects): $(headers) |
5de08d7d CM |
33 | |
34 | clean : | |
7cf75962 | 35 | rm debug-tree tester *.o |
4920c9ac | 36 | |
fec577fb | 37 |