Page MenuHomec4science

Makefile
No OneTemporary

File Metadata

Created
Wed, Dec 18, 06:17

Makefile

#
# @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