Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F93470743
Makefile
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Fri, Nov 29, 00:52
Size
1 KB
Mime Type
text/x-makefile
Expires
Sun, Dec 1, 00:52 (2 d)
Engine
blob
Format
Raw Data
Handle
22622328
Attached To
rSPCLIBS SPClibs
Makefile
View Options
#
# @file Makefile
#
# @brief
#
# @copyright
# Copyright (©) 2021 EPFL (Ecole Polytechnique Fédérale de Lausanne)
# SPC (Swiss Plasma Center)
#
# SPClibs is free software: you can redistribute it and/or modify it under
# the terms of the GNU Lesser General Public License as published by the Free
# Software Foundation, either version 3 of the License, or (at your option)
# any later version.
#
# SPClibs is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
#
# @author
# (in alphabetical order)
# @author Emmanuel Lanti <emmanuel.lanti@epfl.ch>
# @author Trach-Minh Tran <trach-minh.tran@epfl.ch>
#
#BSPLINES = $(HOME)/bsplines
#FUTILS = $(HOME)/futils
F90 = mpif90
LD = $(F90)
debug = -g -traceback -check bounds -warn alignments -warn nounused
optim = -O3 -xHOST
F90FLAGS = $(OPT) -I$(BSPLINES)/include -I$(FUTILS)/include
LDFLAGS = $(OPT) -L$(BSPLINES)/lib -L$(FUTILS)/lib -L$(HDF5)/lib
LIBS = -lbsplines -lpppack -lfutils -lhdf5_fortran -lhdf5 -lz
LDFLAGS += -g -L$(MKL)
LIBS += -lmkl_intel_lp64 -lmkl_sequential -lmkl_core -lpthread
OPT=$(debug)
#OPT=$(optim)
.SUFFIXES:
.SUFFIXES: .o .c .f90
.f90.o:
$(F90) $(F90FLAGS) -c $<
all: poisson
poisson: poisson.o poisson_mod.o
$(LD) $(LDFLAGS) -o $@ $^ $(LIBS)
poisson.o: poisson_mod.o
clean:
rm -f *.o *.mod
distclean: clean
rm -f poisson a.out *~ *.h5 *.fig *.eps *.pdf
Event Timeline
Log In to Comment