Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 991af734 authored by Matthew Wilcox's avatar Matthew Wilcox
Browse files

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: default avatarMatthew Wilcox <mawilcox@microsoft.com>
Reviewed-by: default avatarRehas Sachdeva <aquannie@gmail.com>
parent ab3a1ffd
Loading
Loading
Loading
Loading
+2 −3
Original line number Original line Diff line number Diff line
@@ -2,7 +2,7 @@
CFLAGS += -I. -I../../include -g -O2 -Wall -D_LGPL_SOURCE
CFLAGS += -I. -I../../include -g -O2 -Wall -D_LGPL_SOURCE
LDFLAGS += -lpthread -lurcu
LDFLAGS += -lpthread -lurcu
TARGETS = main
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 \
	 regression1.o regression2.o regression3.o multiorder.o \
	 iteration_check.o benchmark.o
	 iteration_check.o benchmark.o


@@ -18,8 +18,7 @@ main: $(OFILES)
clean:
clean:
	$(RM) -f $(TARGETS) *.o radix-tree.c
	$(RM) -f $(TARGETS) *.o radix-tree.c


find_next_bit.o: ../../lib/find_bit.c
vpath %.c ../../lib
	$(CC) $(CFLAGS) -c -o $@ $<


$(OFILES): *.h */*.h \
$(OFILES): *.h */*.h \
	../../include/linux/*.h \
	../../include/linux/*.h \