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