diff options
author | Matthew Wilcox <mawilcox@microsoft.com> | 2016-12-28 22:53:46 -0500 |
---|---|---|
committer | Matthew Wilcox <mawilcox@microsoft.com> | 2017-02-13 16:09:42 -0500 |
commit | 991af734c46d726f1c62cabd1681563beb533e14 (patch) | |
tree | 2c8877b3ee4d6158781e4d265b199a87e7ea5918 | |
parent | ab3a1ffd11d90583c71bd606bf0fd5bfef30bce9 (diff) |
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>
-rw-r--r-- | tools/testing/radix-tree/Makefile | 5 |
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 @@ | |||
2 | CFLAGS += -I. -I../../include -g -O2 -Wall -D_LGPL_SOURCE | 2 | CFLAGS += -I. -I../../include -g -O2 -Wall -D_LGPL_SOURCE |
3 | LDFLAGS += -lpthread -lurcu | 3 | LDFLAGS += -lpthread -lurcu |
4 | TARGETS = main | 4 | TARGETS = main |
5 | OFILES = main.o radix-tree.o linux.o test.o tag_check.o find_next_bit.o \ | 5 | OFILES = main.o radix-tree.o linux.o test.o tag_check.o find_bit.o \ |
6 | regression1.o regression2.o regression3.o multiorder.o \ | 6 | regression1.o regression2.o regression3.o multiorder.o \ |
7 | iteration_check.o benchmark.o | 7 | iteration_check.o benchmark.o |
8 | 8 | ||
@@ -18,8 +18,7 @@ main: $(OFILES) | |||
18 | clean: | 18 | clean: |
19 | $(RM) -f $(TARGETS) *.o radix-tree.c | 19 | $(RM) -f $(TARGETS) *.o radix-tree.c |
20 | 20 | ||
21 | find_next_bit.o: ../../lib/find_bit.c | 21 | vpath %.c ../../lib |
22 | $(CC) $(CFLAGS) -c -o $@ $< | ||
23 | 22 | ||
24 | $(OFILES): *.h */*.h \ | 23 | $(OFILES): *.h */*.h \ |
25 | ../../include/linux/*.h \ | 24 | ../../include/linux/*.h \ |