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