Skip to content

Commit

Permalink
radix tree test suite: Use vpath to find lib files
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Matthew Wilcox committed Feb 13, 2017
1 parent ab3a1ff commit 991af73
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tools/testing/radix-tree/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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 \
Expand Down

0 comments on commit 991af73

Please sign in to comment.