-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.inc.with-mpi
36 lines (30 loc) · 1013 Bytes
/
Makefile.inc.with-mpi
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#================================================================
# ELSES version 0.04
# Copyright (C) ELSES. 2007-2014 all rights reserved
#================================================================
TOPDIR ?= .
# Common settings
MOD_OPT=-I
#XML_SELFTEST = './elses-xml-selftest'
# For cross compiler systems,
XML_SELFTEST = echo './elses-xml-selftest'
%.o:%.mod
XML-DIR = xmlf90-1.2g-elses
BINDIR=$(TOPDIR)/bin
SRCDIR=$(TOPDIR)/src
FFLAGS-NRL =$(MOD_OPT)$(TOPDIR)/src/Nrl
FFLAGS-XML =\
$(MOD_OPT)$(TOPDIR)/$(XML-DIR)/strings\
$(MOD_OPT)$(TOPDIR)/$(XML-DIR)/sax\
$(MOD_OPT)$(TOPDIR)/$(XML-DIR)/dom\
$(MOD_OPT)$(SRCDIR)
LIBS-XML = -L$(TOPDIR)/$(XML-DIR)/macros/lib -lflib
OBJS-XML = $(SRCDIR)/elses-xml-config.o $(SRCDIR)/elses-config.o\
$(SRCDIR)/elses-xml-misc.o $(SRCDIR)/elses-xml-sax-counter.o\
$(SRCDIR)/elses-xml-sax-handler.o $(SRCDIR)/elses-xml-sax-parser.o
# For gfortran with Eigen Engine
FC = mpif90
FFLAGS = -O0 -fopenmp
LDFLAGS = $(FFLAGS)
LIBS = -llapack -lblas -lgomp
WITH_MPI = 1