Create simple Makefile
This commit is contained in:
parent
7e78f68630
commit
f05060524f
19
src/Makefile
Normal file
19
src/Makefile
Normal 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
|
||||
Loading…
Reference in New Issue
Block a user