diff --git a/src/Makefile b/src/Makefile new file mode 100644 index 0000000..443b225 --- /dev/null +++ b/src/Makefile @@ -0,0 +1,19 @@ +INCLUDE=../include + +CC=g++ + +CCFLAGS=-larmadillo -llapack -std=c++11 + +DEBUG=-DDBG + +.PHONY: clean + +test_suite: test_suite.o matrix.o jacobi.o + $(CC) $^ -o $@ $(CCFLAGS) $(DEBUG) + +%.o: %.cpp + $(CC) -c $^ -o $@ -I $(INCLUDE) $(DEBUG) + +clean: + rm *.o + rm test_suite