Matthew Wilcox | 1366c37 | 2016-03-17 14:21:45 -0700 | [diff] [blame] | 1 | |
Matthew Wilcox | 62fd525 | 2016-09-22 11:53:34 -0700 | [diff] [blame] | 2 | CFLAGS += -I. -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 \ |
| 7 | iteration_check.o |
Matthew Wilcox | 1366c37 | 2016-03-17 14:21:45 -0700 | [diff] [blame] | 8 | |
| 9 | targets: $(TARGETS) |
| 10 | |
| 11 | main: $(OFILES) |
| 12 | $(CC) $(CFLAGS) $(LDFLAGS) $(OFILES) -o main |
| 13 | |
| 14 | clean: |
| 15 | $(RM) -f $(TARGETS) *.o radix-tree.c |
| 16 | |
Ross Zwisler | 7f30867 | 2016-05-20 17:01:48 -0700 | [diff] [blame] | 17 | $(OFILES): *.h */*.h ../../../include/linux/radix-tree.h ../../include/linux/*.h |
Matthew Wilcox | 1366c37 | 2016-03-17 14:21:45 -0700 | [diff] [blame] | 18 | |
| 19 | radix-tree.c: ../../../lib/radix-tree.c |
| 20 | sed -e 's/^static //' -e 's/__always_inline //' -e 's/inline //' < $< > $@ |