xref: /linux/tools/testing/radix-tree/Makefile (revision eb0ece16027f8223d5dc9aaf90124f70577bd22a)
1b2441318SGreg Kroah-Hartman# SPDX-License-Identifier: GPL-2.0
21366c37eSMatthew Wilcox
374579d8dSLorenzo Stoakes.PHONY: clean
474579d8dSLorenzo Stoakes
5e15e06a8SLiam R. HowlettTARGETS = main idr-test multiorder xarray maple
674579d8dSLorenzo StoakesCORE_OFILES = $(SHARED_OFILES) xarray.o maple.o test.o
774579d8dSLorenzo StoakesOFILES = main.o $(CORE_OFILES) regression1.o regression2.o \
874579d8dSLorenzo Stoakes	 regression3.o regression4.o tag_check.o multiorder.o idr-test.o \
974579d8dSLorenzo Stoakes	iteration_check.o iteration_check_2.o benchmark.o
10120b1162SLiam Howlett
11120b1162SLiam Howletttargets: generated/map-shift.h generated/bit-length.h $(TARGETS)
121366c37eSMatthew Wilcox
1374579d8dSLorenzo Stoakesinclude ../shared/shared.mk
1474579d8dSLorenzo Stoakes
151366c37eSMatthew Wilcoxmain:	$(OFILES)
168ac04868SMatthew Wilcox
17*3fec86f8SZi Yanxarray.o: ../../../lib/test_xarray.c
188ab8ba38SMatthew Wilcoxidr-test.o: ../../../lib/test_ida.c
198ac04868SMatthew Wilcoxidr-test: idr-test.o $(CORE_OFILES)
208ac04868SMatthew Wilcox
2174579d8dSLorenzo Stoakesxarray: $(CORE_OFILES) xarray.o
22ad3d6c72SMatthew Wilcox
2374579d8dSLorenzo Stoakesmaple: $(CORE_OFILES) maple.o
24e15e06a8SLiam R. Howlett
258ac04868SMatthew Wilcoxmultiorder: multiorder.o $(CORE_OFILES)
261366c37eSMatthew Wilcox
271366c37eSMatthew Wilcoxclean:
2874579d8dSLorenzo Stoakes	$(RM) $(TARGETS) *.o radix-tree.c idr.c generated/*
291366c37eSMatthew Wilcox
3074579d8dSLorenzo Stoakes$(OFILES): $(SHARED_DEPS) *.h
31