mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-25 03:55:09 +08:00
0629573e6b
Remove the old find_next_bit code in favour of linking in the find_bit code from tools/lib. Link: http://lkml.kernel.org/r/1480369871-5271-48-git-send-email-mawilcox@linuxonhyperv.com Signed-off-by: Matthew Wilcox <willy@linux.intel.com> Tested-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com> Cc: Konstantin Khlebnikov <koct9i@gmail.com> Cc: Ross Zwisler <ross.zwisler@linux.intel.com> Cc: Matthew Wilcox <mawilcox@microsoft.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
30 lines
718 B
Makefile
30 lines
718 B
Makefile
|
|
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 \
|
|
regression1.o regression2.o regression3.o multiorder.o \
|
|
iteration_check.o benchmark.o
|
|
|
|
ifdef BENCHMARK
|
|
CFLAGS += -DBENCHMARK=1
|
|
endif
|
|
|
|
targets: $(TARGETS)
|
|
|
|
main: $(OFILES)
|
|
$(CC) $(CFLAGS) $(LDFLAGS) $(OFILES) -o main
|
|
|
|
clean:
|
|
$(RM) -f $(TARGETS) *.o radix-tree.c
|
|
|
|
find_next_bit.o: ../../lib/find_bit.c
|
|
$(CC) $(CFLAGS) -c -o $@ $<
|
|
|
|
$(OFILES): *.h */*.h \
|
|
../../include/linux/*.h \
|
|
../../../include/linux/radix-tree.h
|
|
|
|
radix-tree.c: ../../../lib/radix-tree.c
|
|
sed -e 's/^static //' -e 's/__always_inline //' -e 's/inline //' < $< > $@
|