| 1 |
# SPDX-License-Identifier: GPL-2.0 |
| 2 |
|
| 3 |
.PHONY: clean |
| 4 |
|
| 5 |
TARGETS = rbtree_test interval_tree_test |
| 6 |
OFILES = $(SHARED_OFILES) rbtree-shim.o interval_tree-shim.o maple-shim.o |
| 7 |
DEPS = ../../../include/linux/rbtree.h \ |
| 8 |
../../../include/linux/rbtree_types.h \ |
| 9 |
../../../include/linux/rbtree_augmented.h \ |
| 10 |
../../../include/linux/interval_tree.h \ |
| 11 |
../../../include/linux/interval_tree_generic.h \ |
| 12 |
../../../lib/rbtree.c \ |
| 13 |
../../../lib/interval_tree.c |
| 14 |
|
| 15 |
targets: $(TARGETS) |
| 16 |
|
| 17 |
include ../shared/shared.mk |
| 18 |
|
| 19 |
ifeq ($(DEBUG), 1) |
| 20 |
CFLAGS += -g |
| 21 |
endif |
| 22 |
|
| 23 |
$(TARGETS): $(OFILES) |
| 24 |
|
| 25 |
rbtree-shim.o: $(DEPS) |
| 26 |
rbtree_test.o: ../../../lib/rbtree_test.c |
| 27 |
interval_tree-shim.o: $(DEPS) |
| 28 |
interval_tree-shim.o: CFLAGS += -DCONFIG_INTERVAL_TREE_SPAN_ITER |
| 29 |
interval_tree_test.o: ../../../lib/interval_tree_test.c |
| 30 |
interval_tree_test.o: CFLAGS += -DCONFIG_INTERVAL_TREE_SPAN_ITER |
| 31 |
|
| 32 |
clean: |
| 33 |
$(RM) $(TARGETS) *.o radix-tree.c idr.c generated/* |