Page MenuHomec4science

Makefile
No OneTemporary

File Metadata

Created
Sat, Dec 28, 09:34

Makefile

#
# @file Makefile
#
# @brief Makefile for mpiuni library
#
# @copyright
# Copyright (©) 2021 EPFL (Ecole Polytechnique Fédérale de Lausanne)
# SPC (Swiss Plasma Center)
#
# futils 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.
#
# futils 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>
#
FC = ifort
ifeq ($(FC), ifort)
FFLAGS = -g -check bounds -traceback
else ifeq ($(FC), gfortran)
FFLAGS = -g -fcheck=bounds -fbacktrace
endif
F90 = $(FC)
F90FLAGS = $(FFLAGS)
CC = gcc
CFLAGS = -O2 -w
.SUFFIXES: .o .c .f90
.f90.o:
$(F90) $(F90FLAGS) -c $<
lib: libmpiuni.a
libmpiuni.a: mpi_stubsf.o mpi_mod.o second.o
ar r $@ $?
ranlib $@
cp -a $@ ../
clean:
rm -f *.o *~ a.out
distclean: clean
rm -f *.a

Event Timeline