Chris Mason | 4920c9a | 2007-01-26 16:38:42 -0500 | [diff] [blame] | 1 | |
Chris Mason | 5de08d7 | 2007-02-24 06:24:44 -0500 | [diff] [blame] | 2 | CFLAGS = -g -Wall |
| 3 | headers = radix-tree.h ctree.h disk-io.h kerncompat.h print-tree.h |
| 4 | objects = ctree.o disk-io.o radix-tree.o mkfs.o extent-tree.o print-tree.o |
Chris Mason | eb60cea | 2007-02-02 09:18:22 -0500 | [diff] [blame] | 5 | |
Chris Mason | 5de08d7 | 2007-02-24 06:24:44 -0500 | [diff] [blame] | 6 | #.c.o: |
| 7 | # $(CC) $(CFLAGS) -c $< |
Chris Mason | eb60cea | 2007-02-02 09:18:22 -0500 | [diff] [blame] | 8 | |
Chris Mason | fec577f | 2007-02-26 10:40:21 -0500 | [diff] [blame^] | 9 | all: tester debug-tree |
| 10 | |
| 11 | debug-tree: $(objects) debug-tree.o |
| 12 | gcc $(CFLAGS) -o debug-tree $(objects) debug-tree.o |
| 13 | |
| 14 | tester: $(objects) random-test.o |
| 15 | gcc $(CFLAGS) -o tester $(objects) random-test.o |
Chris Mason | 4920c9a | 2007-01-26 16:38:42 -0500 | [diff] [blame] | 16 | |
Chris Mason | 5de08d7 | 2007-02-24 06:24:44 -0500 | [diff] [blame] | 17 | $(objects) : $(headers) |
| 18 | |
| 19 | clean : |
Chris Mason | eb60cea | 2007-02-02 09:18:22 -0500 | [diff] [blame] | 20 | rm ctree *.o |
Chris Mason | 4920c9a | 2007-01-26 16:38:42 -0500 | [diff] [blame] | 21 | |
Chris Mason | fec577f | 2007-02-26 10:40:21 -0500 | [diff] [blame^] | 22 | |