From f05060524f210d5dd7b897f6cc1eaa13bee784ec Mon Sep 17 00:00:00 2001 From: Cory Date: Wed, 20 Sep 2023 16:39:14 +0200 Subject: [PATCH] Create simple Makefile --- src/Makefile | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 src/Makefile 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