CFLAGS = -Wall -g

.PHONY: default
default: sort

.PHONY: tests
tests: utest_swap utest_largest utest_index_of utest_index_of_largest utest_selection_sort
	utest_swap
	utest_largest
	utest_index_of
	utest_index_of_largest

utest_swap: utest_swap.o array_utils.o
	$(LINK.o) $^ -o $@

utest_largest: utest_largest.o array_utils.o
	$(LINK.o) $^ -o $@

utest_index_of: utest_index_of.o array_utils.o
	$(LINK.o) $^ -o $@

utest_index_of_largest: utest_index_of_largest.o array_utils.o
	$(LINK.o) $^ -o $@

utest_selection_sort: utest_selection_sort.o array_utils.o
	$(LINK.o) $^ -o $@

sort: sort.o array_utils.o
	$(LINK.o) $^ -o $@



