1 # SPDX-License-Identifier: GPL-2.0 << 2 1 3 .PHONY: clean !! 2 CFLAGS += -I. -I../../include -g -O2 -Wall -D_LGPL_SOURCE >> 3 LDFLAGS += -lpthread -lurcu >> 4 TARGETS = main >> 5 OFILES = main.o radix-tree.o linux.o test.o tag_check.o find_next_bit.o \ >> 6 regression1.o regression2.o regression3.o multiorder.o \ >> 7 iteration_check.o benchmark.o >> 8 >> 9 ifdef BENCHMARK >> 10 CFLAGS += -DBENCHMARK=1 >> 11 endif 4 12 5 TARGETS = main idr-test multiorder xarray mapl !! 13 targets: $(TARGETS) 6 CORE_OFILES = $(SHARED_OFILES) xarray.o maple. << 7 OFILES = main.o $(CORE_OFILES) regression1.o r << 8 regression3.o regression4.o tag_check << 9 iteration_check.o iteration_check_2.o << 10 << 11 targets: generated/map-shift.h generated/bit-l << 12 << 13 include ../shared/shared.mk << 14 14 15 main: $(OFILES) 15 main: $(OFILES) >> 16 $(CC) $(CFLAGS) $(LDFLAGS) $(OFILES) -o main 16 17 17 idr-test.o: ../../../lib/test_ida.c !! 18 clean: 18 idr-test: idr-test.o $(CORE_OFILES) !! 19 $(RM) -f $(TARGETS) *.o radix-tree.c 19 << 20 xarray: $(CORE_OFILES) xarray.o << 21 << 22 maple: $(CORE_OFILES) maple.o << 23 20 24 multiorder: multiorder.o $(CORE_OFILES) !! 21 find_next_bit.o: ../../lib/find_bit.c >> 22 $(CC) $(CFLAGS) -c -o $@ $< 25 23 26 clean: !! 24 $(OFILES): *.h */*.h \ 27 $(RM) $(TARGETS) *.o radix-tree.c idr. !! 25 ../../include/linux/*.h \ >> 26 ../../../include/linux/radix-tree.h 28 27 29 $(OFILES): $(SHARED_DEPS) *.h !! 28 radix-tree.c: ../../../lib/radix-tree.c >> 29 sed -e 's/^static //' -e 's/__always_inline //' -e 's/inline //' < $< > $@
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.