diff --git a/Makefile b/Makefile index 8b80ddc..93df9d6 100644 --- a/Makefile +++ b/Makefile @@ -81,6 +81,11 @@ FFLAGS += -Wfatal-errors LDFLAGS += -L$(LIBDIR) CPPFLAGS += -DREVISION=\"$(GIT_REV)$(GIT_DIRTY)\" -DPREFIX=\"$(PREFIX)\" +ifdef PARALLEL +FFLAGS += -ftree-parallelize-loops=$(PARALLEL) -fopt-info-loop +LDFLAGS += -fopenmp +endif + # Sync the output from jobs running in parallel MAKEFLAGS += --output-sync