summaryrefslogtreecommitdiffstats
path: root/tools/testing/radix-tree/Makefile
diff options
context:
space:
mode:
authorMatthew Wilcox <mawilcox@microsoft.com>2016-12-29 04:53:46 +0100
committerMatthew Wilcox <mawilcox@microsoft.com>2017-02-13 22:09:42 +0100
commit991af734c46d726f1c62cabd1681563beb533e14 (patch)
tree2c8877b3ee4d6158781e4d265b199a87e7ea5918 /tools/testing/radix-tree/Makefile
parentradix tree test suite: Reduce kernel.h (diff)
downloadlinux-991af734c46d726f1c62cabd1681563beb533e14.tar.xz
linux-991af734c46d726f1c62cabd1681563beb533e14.zip
radix tree test suite: Use vpath to find lib files
Instead of specifying how to build find_bit.o from lib/find_bit.o, use vpath to tell make where to find find_bit.c. Signed-off-by: Matthew Wilcox <mawilcox@microsoft.com> Reviewed-by: Rehas Sachdeva <aquannie@gmail.com>
Diffstat (limited to 'tools/testing/radix-tree/Makefile')
-rw-r--r--tools/testing/radix-tree/Makefile5
1 files changed, 2 insertions, 3 deletions
diff --git a/tools/testing/radix-tree/Makefile b/tools/testing/radix-tree/Makefile
index 7f7600424b14..5274e88cd293 100644
--- a/tools/testing/radix-tree/Makefile
+++ b/tools/testing/radix-tree/Makefile
@@ -2,7 +2,7 @@
CFLAGS += -I. -I../../include -g -O2 -Wall -D_LGPL_SOURCE
LDFLAGS += -lpthread -lurcu
TARGETS = main
-OFILES = main.o radix-tree.o linux.o test.o tag_check.o find_next_bit.o \
+OFILES = main.o radix-tree.o linux.o test.o tag_check.o find_bit.o \
regression1.o regression2.o regression3.o multiorder.o \
iteration_check.o benchmark.o
@@ -18,8 +18,7 @@ main: $(OFILES)
clean:
$(RM) -f $(TARGETS) *.o radix-tree.c
-find_next_bit.o: ../../lib/find_bit.c
- $(CC) $(CFLAGS) -c -o $@ $<
+vpath %.c ../../lib
$(OFILES): *.h */*.h \
../../include/linux/*.h \