Matthew Wilcox | 1366c37 | 2016-03-17 14:21:45 -0700 | [diff] [blame] | 1 | |
Matthew Wilcox | ebb9a9a | 2016-12-14 15:07:56 -0800 | [diff] [blame] | 2 | CFLAGS += -I. -I../../include -g -O2 -Wall -D_LGPL_SOURCE |
Matthew Wilcox | 1366c37 | 2016-03-17 14:21:45 -0700 | [diff] [blame] | 3 | LDFLAGS += -lpthread -lurcu |
| 4 | TARGETS = main |
| 5 | OFILES = main.o radix-tree.o linux.o test.o tag_check.o find_next_bit.o \ |
Ross Zwisler | eec4852 | 2016-10-11 13:51:21 -0700 | [diff] [blame] | 6 | regression1.o regression2.o regression3.o multiorder.o \ |
Konstantin Khlebnikov | cfa40bc | 2016-12-14 15:08:14 -0800 | [diff] [blame^] | 7 | iteration_check.o benchmark.o |
| 8 | |
| 9 | ifdef BENCHMARK |
| 10 | CFLAGS += -DBENCHMARK=1 |
| 11 | endif |
Matthew Wilcox | 1366c37 | 2016-03-17 14:21:45 -0700 | [diff] [blame] | 12 | |
| 13 | targets: $(TARGETS) |
| 14 | |
| 15 | main: $(OFILES) |
| 16 | $(CC) $(CFLAGS) $(LDFLAGS) $(OFILES) -o main |
| 17 | |
| 18 | clean: |
| 19 | $(RM) -f $(TARGETS) *.o radix-tree.c |
| 20 | |
Ross Zwisler | 7f30867 | 2016-05-20 17:01:48 -0700 | [diff] [blame] | 21 | $(OFILES): *.h */*.h ../../../include/linux/radix-tree.h ../../include/linux/*.h |
Matthew Wilcox | 1366c37 | 2016-03-17 14:21:45 -0700 | [diff] [blame] | 22 | |
| 23 | radix-tree.c: ../../../lib/radix-tree.c |
| 24 | sed -e 's/^static //' -e 's/__always_inline //' -e 's/inline //' < $< > $@ |