blob: f2e07f2fd4b48282a274aae7c667a25116ab4505 [file] [log] [blame]
Matthew Wilcox1366c372016-03-17 14:21:45 -07001
Matthew Wilcox62fd5252016-09-22 11:53:34 -07002CFLAGS += -I. -g -O2 -Wall -D_LGPL_SOURCE
Matthew Wilcox1366c372016-03-17 14:21:45 -07003LDFLAGS += -lpthread -lurcu
4TARGETS = main
5OFILES = main.o radix-tree.o linux.o test.o tag_check.o find_next_bit.o \
Ross Zwislereec48522016-10-11 13:51:21 -07006 regression1.o regression2.o regression3.o multiorder.o \
7 iteration_check.o
Matthew Wilcox1366c372016-03-17 14:21:45 -07008
9targets: $(TARGETS)
10
11main: $(OFILES)
12 $(CC) $(CFLAGS) $(LDFLAGS) $(OFILES) -o main
13
14clean:
15 $(RM) -f $(TARGETS) *.o radix-tree.c
16
Ross Zwisler7f308672016-05-20 17:01:48 -070017$(OFILES): *.h */*.h ../../../include/linux/radix-tree.h ../../include/linux/*.h
Matthew Wilcox1366c372016-03-17 14:21:45 -070018
19radix-tree.c: ../../../lib/radix-tree.c
20 sed -e 's/^static //' -e 's/__always_inline //' -e 's/inline //' < $< > $@