]> asedeno.scripts.mit.edu Git - linux.git/blob - tools/testing/radix-tree/Makefile
08283a8410669be9d847d173620802feacc54b62
[linux.git] / tools / testing / radix-tree / Makefile
1
2 CFLAGS += -I. -I../../include -g -O2 -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 \
6          regression1.o regression2.o regression3.o multiorder.o \
7          iteration_check.o benchmark.o
8
9 ifdef BENCHMARK
10         CFLAGS += -DBENCHMARK=1
11 endif
12
13 targets: $(TARGETS)
14
15 main:   $(OFILES)
16         $(CC) $(CFLAGS) $(LDFLAGS) $(OFILES) -o main
17
18 clean:
19         $(RM) -f $(TARGETS) *.o radix-tree.c
20
21 $(OFILES): *.h */*.h ../../../include/linux/radix-tree.h ../../include/linux/*.h
22
23 radix-tree.c: ../../../lib/radix-tree.c
24         sed -e 's/^static //' -e 's/__always_inline //' -e 's/inline //' < $< > $@