1 2CFLAGS += -I. -I../../include -g -O2 -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 \ 6 regression1.o regression2.o regression3.o multiorder.o \ 7 iteration_check.o benchmark.o 8 9ifdef BENCHMARK 10 CFLAGS += -DBENCHMARK=1 11endif 12 13targets: $(TARGETS) 14 15main: $(OFILES) 16 $(CC) $(CFLAGS) $(LDFLAGS) $(OFILES) -o main 17 18clean: 19 $(RM) -f $(TARGETS) *.o radix-tree.c 20 21find_next_bit.o: ../../lib/find_bit.c 22 $(CC) $(CFLAGS) -c -o $@ $< 23 24$(OFILES): *.h */*.h \ 25 ../../include/linux/*.h \ 26 ../../include/asm/*.h \ 27 ../../../include/linux/radix-tree.h 28 29radix-tree.c: ../../../lib/radix-tree.c 30 sed -e 's/^static //' -e 's/__always_inline //' -e 's/inline //' < $< > $@ 31