blob: 43febba864bd05ff63f258d7e0180490f176c491 [file] [log] [blame]
Matthew Wilcox1366c372016-03-17 14:21:45 -07001
2CFLAGS += -I. -g -Wall -D_LGPL_SOURCE
3LDFLAGS += -lpthread -lurcu
4TARGETS = main
5OFILES = main.o radix-tree.o linux.o test.o tag_check.o find_next_bit.o \
Konstantin Khlebnikov2d6f45b2016-03-17 14:22:08 -07006 regression1.o regression2.o regression3.o
Matthew Wilcox1366c372016-03-17 14:21:45 -07007
8targets: $(TARGETS)
9
10main: $(OFILES)
11 $(CC) $(CFLAGS) $(LDFLAGS) $(OFILES) -o main
12
13clean:
14 $(RM) -f $(TARGETS) *.o radix-tree.c
15
Ross Zwisler7f308672016-05-20 17:01:48 -070016$(OFILES): *.h */*.h ../../../include/linux/radix-tree.h ../../include/linux/*.h
Matthew Wilcox1366c372016-03-17 14:21:45 -070017
18radix-tree.c: ../../../lib/radix-tree.c
19 sed -e 's/^static //' -e 's/__always_inline //' -e 's/inline //' < $< > $@