blob: 3b530467148ec44d4b329e5bece6c5d9b9c056d4 [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 \
Matthew Wilcox4f3755d2016-05-20 17:02:14 -07006 regression1.o regression2.o regression3.o multiorder.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 //' < $< > $@