blob: 855e8f499e37625ea9d3782937cfa47115c05d61 [file] [log] [blame]
Chris Mason4920c9a2007-01-26 16:38:42 -05001
Chris Mason5de08d72007-02-24 06:24:44 -05002CFLAGS = -g -Wall
3headers = radix-tree.h ctree.h disk-io.h kerncompat.h print-tree.h
4objects = ctree.o disk-io.o radix-tree.o mkfs.o extent-tree.o print-tree.o
Chris Masoneb60cea2007-02-02 09:18:22 -05005
Chris Mason5de08d72007-02-24 06:24:44 -05006#.c.o:
7# $(CC) $(CFLAGS) -c $<
Chris Masoneb60cea2007-02-02 09:18:22 -05008
Chris Masonfec577f2007-02-26 10:40:21 -05009all: tester debug-tree
10
11debug-tree: $(objects) debug-tree.o
12 gcc $(CFLAGS) -o debug-tree $(objects) debug-tree.o
13
14tester: $(objects) random-test.o
15 gcc $(CFLAGS) -o tester $(objects) random-test.o
Chris Mason4920c9a2007-01-26 16:38:42 -050016
Chris Mason5de08d72007-02-24 06:24:44 -050017$(objects) : $(headers)
18
19clean :
Chris Masoneb60cea2007-02-02 09:18:22 -050020 rm ctree *.o
Chris Mason4920c9a2007-01-26 16:38:42 -050021
Chris Masonfec577f2007-02-26 10:40:21 -050022