| 1 | # SPDX-License-Identifier: GPL-2.0 |
| 2 | |
| 3 | .PHONY: clean |
| 4 | |
| 5 | TARGETS = main idr-test multiorder xarray maple |
| 6 | CORE_OFILES = $(SHARED_OFILES) xarray.o maple.o test.o |
| 7 | OFILES = main.o $(CORE_OFILES) regression1.o regression2.o \ |
| 8 | regression3.o regression4.o tag_check.o multiorder.o idr-test.o \ |
| 9 | iteration_check.o iteration_check_2.o benchmark.o |
| 10 | |
| 11 | targets: generated/map-shift.h generated/bit-length.h $(TARGETS) |
| 12 | |
| 13 | include ../shared/shared.mk |
| 14 | |
| 15 | main: $(OFILES) |
| 16 | |
| 17 | xarray.o: ../../../lib/test_xarray.c |
| 18 | idr-test.o: ../../../lib/test_ida.c |
| 19 | idr-test: idr-test.o $(CORE_OFILES) |
| 20 | |
| 21 | xarray: $(CORE_OFILES) xarray.o |
| 22 | |
| 23 | maple: $(CORE_OFILES) maple.o |
| 24 | |
| 25 | multiorder: multiorder.o $(CORE_OFILES) |
| 26 | |
| 27 | clean: |
| 28 | $(RM) $(TARGETS) *.o radix-tree.c idr.c generated/* |
| 29 | |
| 30 | $(OFILES): $(SHARED_DEPS) *.h |