COMPILE = gcc -Wall -pedantic

all: applyElements.c groupElements.c threadElements.c matrix
	$(COMPILE) matrix.c applyElements.c -o applyElements
	$(COMPILE) matrix.c groupElements.c -o groupElements
	$(COMPILE) matrix.c threadElements.c -o threadElements

matrix: matrix.c matrix.h
	$(COMPILE) -c matrix.c

clean:
	rm -rf *.o *~

cleanAll:
	clean
	rm -rf applyElements groupElements threadElements