Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F80958573
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
Tue, Sep 3, 11:28
Size
1 KB
Mime Type
text/x-makefile
Expires
Thu, Sep 5, 11:28 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
20475840
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/>.
#
# @authors
# (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