summaryrefslogtreecommitdiffstats
path: root/tools/testing/vma/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'tools/testing/vma/Makefile')
-rw-r--r--tools/testing/vma/Makefile21
1 files changed, 21 insertions, 0 deletions
diff --git a/tools/testing/vma/Makefile b/tools/testing/vma/Makefile
new file mode 100644
index 000000000..ef6cc558a
--- /dev/null
+++ b/tools/testing/vma/Makefile
@@ -0,0 +1,21 @@
+# SPDX-License-Identifier: GPL-2.0-or-later
+
+.PHONY: default clean
+
+default: vma
+
+include ../shared/shared.mk
+
+OFILES = $(SHARED_OFILES) main.o shared.o maple-shim.o
+TARGETS = vma
+
+# These can be varied to test different sizes.
+CFLAGS += -DNUM_VMA_FLAG_BITS=64 -DNUM_MM_FLAG_BITS=64
+
+main.o: main.c shared.c shared.h vma_internal.h tests/merge.c tests/mmap.c tests/vma.c ../../../mm/vma.c ../../../mm/vma_init.c ../../../mm/vma_exec.c ../../../mm/vma.h include/custom.h include/dup.h include/stubs.h
+
+vma: $(OFILES)
+ $(CC) $(CFLAGS) -o $@ $(OFILES) $(LDLIBS)
+
+clean:
+ $(RM) $(TARGETS) *.o radix-tree.c idr.c generated/map-shift.h generated/bit-length.h generated/autoconf.h