2007-01-26 21:38:42 +00:00
|
|
|
|
2007-02-24 11:24:44 +00:00
|
|
|
CFLAGS = -g -Wall
|
|
|
|
headers = radix-tree.h ctree.h disk-io.h kerncompat.h print-tree.h
|
|
|
|
objects = ctree.o disk-io.o radix-tree.o mkfs.o extent-tree.o print-tree.o
|
2007-02-02 14:18:22 +00:00
|
|
|
|
2007-02-28 14:40:58 +00:00
|
|
|
# if you don't have sparse installed, use ls instead
|
|
|
|
check=sparse
|
|
|
|
#check=ls
|
|
|
|
|
|
|
|
.c.o:
|
|
|
|
$(check) $<
|
|
|
|
$(CC) $(CFLAGS) -c $<
|
2007-02-02 14:18:22 +00:00
|
|
|
|
2007-02-26 15:40:21 +00:00
|
|
|
all: tester debug-tree
|
|
|
|
|
|
|
|
debug-tree: $(objects) debug-tree.o
|
|
|
|
gcc $(CFLAGS) -o debug-tree $(objects) debug-tree.o
|
|
|
|
|
|
|
|
tester: $(objects) random-test.o
|
|
|
|
gcc $(CFLAGS) -o tester $(objects) random-test.o
|
2007-01-26 21:38:42 +00:00
|
|
|
|
2007-02-24 11:24:44 +00:00
|
|
|
$(objects) : $(headers)
|
|
|
|
|
|
|
|
clean :
|
2007-02-26 15:55:01 +00:00
|
|
|
rm debug-tree tester *.o
|
2007-01-26 21:38:42 +00:00
|
|
|
|
2007-02-26 15:40:21 +00:00
|
|
|
|