Add openmp to compilation
This commit is contained in:
parent
751f356498
commit
b80220f3e7
@ -6,6 +6,7 @@ LIBOBJS=$(LIBSRCS:.cpp=.o)
|
|||||||
INCLUDE=../include
|
INCLUDE=../include
|
||||||
|
|
||||||
CFLAGS=-larmadillo -llapack -std=c++11
|
CFLAGS=-larmadillo -llapack -std=c++11
|
||||||
|
OPENMP=-fopenmp
|
||||||
|
|
||||||
# Add a debug flag when compiling (For the DEBUG macro in utils.hpp)
|
# Add a debug flag when compiling (For the DEBUG macro in utils.hpp)
|
||||||
DEBUG ?= 0
|
DEBUG ?= 0
|
||||||
@ -22,14 +23,14 @@ all: test_suite main
|
|||||||
|
|
||||||
# Rules for executables
|
# Rules for executables
|
||||||
main: main.o $(LIBOBJS)
|
main: main.o $(LIBOBJS)
|
||||||
$(CC) $^ -o $@ $(CFLAGS) $(DBGFLAG) -I$(INCLUDE)
|
$(CC) $^ -o $@ $(CFLAGS) $(DBGFLAG) -I$(INCLUDE) $(OPENMP)
|
||||||
|
|
||||||
test_suite: test_suite.o $(LIBOBJS)
|
test_suite: test_suite.o $(LIBOBJS)
|
||||||
$(CC) $^ -o $@ $(CFLAGS) $(DBGFLAG) -I$(INCLUDE)
|
$(CC) $^ -o $@ $(CFLAGS) $(DBGFLAG) -I$(INCLUDE) $(OPENMP)
|
||||||
|
|
||||||
# Rule for object files
|
# Rule for object files
|
||||||
%.o: %.cpp
|
%.o: %.cpp
|
||||||
$(CC) -c $^ -o $@ $(DBGFLAG) -I$(INCLUDE)
|
$(CC) -c $^ -o $@ $(DBGFLAG) -I$(INCLUDE) $(OPENMP)
|
||||||
|
|
||||||
# Make documentation
|
# Make documentation
|
||||||
doxygen:
|
doxygen:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user