Create simple Makefile

This commit is contained in:
Cory Balaton 2023-09-20 16:39:14 +02:00
parent 7e78f68630
commit f05060524f
No known key found for this signature in database
GPG Key ID: 3E5FCEBFD80F432B

19
src/Makefile Normal file
View File

@ -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