1 # SPDX-License-Identifier: GPL-2.0 << 2 1 3 .PHONY: clean !! 2 CFLAGS += -I. -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 4 8 5 TARGETS = main idr-test multiorder xarray mapl !! 9 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 10 15 main: $(OFILES) 11 main: $(OFILES) 16 !! 12 $(CC) $(CFLAGS) $(LDFLAGS) $(OFILES) -o main 17 idr-test.o: ../../../lib/test_ida.c << 18 idr-test: idr-test.o $(CORE_OFILES) << 19 << 20 xarray: $(CORE_OFILES) xarray.o << 21 << 22 maple: $(CORE_OFILES) maple.o << 23 << 24 multiorder: multiorder.o $(CORE_OFILES) << 25 13 26 clean: 14 clean: 27 $(RM) $(TARGETS) *.o radix-tree.c idr. !! 15 $(RM) -f $(TARGETS) *.o radix-tree.c >> 16 >> 17 $(OFILES): *.h */*.h ../../../include/linux/radix-tree.h ../../include/linux/*.h 28 18 29 $(OFILES): $(SHARED_DEPS) *.h !! 19 radix-tree.c: ../../../lib/radix-tree.c >> 20 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.