Feel free to join the next Helmholtz Hacky Hour #26 on Wednesday, April 21, 2021 from 2PM to 3PM!

Commit f5f56551 authored by Stephan Thober's avatar Stephan Thober

adding config files for stmac

parent bdc26fd7
# Set aliases so that one can, for example, say ifort to invoke standard intel11 on eve
ifneq (,$(findstring $(compiler),gnu gcc gfortran gcc49 gfortran49))
icompiler := gnu71
endif
ifneq (,$(findstring $(compiler),nag nagfor nag62))
icompiler := nag62
endif
ifneq (,$(findstring $(compiler),pgfortran pgfortran154 pgi pgifortran))
icompiler := pgfortran154
endif
# -*- Makefile -*-
#
# Setup file for Gnu compiler 4.6 at Stephan's UFZ Ubuntu
#
# LICENSE
# This file is part of the UFZ makefile project.
#
# The UFZ makefile project 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.
#
# The UFZ makefile project 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 Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with the UFZ makefile project. If not, see <http://www.gnu.org/licenses/>.
#
# Copyright 2012 Stephan Thober
# The Makefile assumes the standard bin, include and lib directories
# i.e. if SOMEDIR = /path/to/lib, the make file will define the two dirs
# SOMEINC ?= SOMEDIR/include
# SOMELIB ?= SOMEDIR/lib
# Define subirectories if another structure
# Paths
GNUDIR := /Users/thober/homebrew_dev
GNULIB := $(GNUDIR)/lib
GNUBIN := $(GNUDIR)/bin
# Compiling
F90 := $(GNUBIN)/gfortran
FC := $(F90)
CC := /usr/bin/gcc
CPP := /usr/bin/cpp
# GNU Fortran version >= 4.4
ifeq ($(release),debug)
F90FLAGS += -pedantic-errors -Wall -W -O -g -Wno-maybe-uninitialized
FCFLAGS += -pedantic-errors -Wall -W -O -g -Wno-maybe-uninitialized
CFLAGS += -pedantic -Wall -W -O -g -Wno-maybe-uninitialized
else
F90FLAGS += -O3
FCFLAGS += -O3
CFLAGS += -O3
endif
F90FLAGS += -cpp -ffree-form -ffixed-line-length-132
FCFLAGS += -ffixed-form -ffixed-line-length-132
CFLAGS +=
MODFLAG := -J# space significant
DEFINES += -DGFORTRAN -DgFortran
# Linking
LIBS += -L$(GNULIB)
RPATH += -Wl,-rpath,$(GNULIB)
# IMSL
IMSLDIR :=
# MKL
MKLDIR :=
MKLINC :=
MKLLIB :=
MKL95DIR :=
MKL95INC :=
MKL95LIB :=
# NETCDF
NCDIR := /Users/thober/lib/install_netcdf/test_install/netcdf-fortran-4.5.2-gfortran
SZLIB := /Users/thober/homebrew_dev/lib
HDF5LIB := /Users/thober/homebrew_dev/lib
# PROJ
PROJ4DIR :=
FPROJDIR :=
# LAPACK
LAPACKDIR :=
LAPACKLIB :=
GFORTRANDIR := $(GNUDIR)
GFORTRANLIB := $(GNULIB)
ifeq ($(lapack),true)
F90FLAGS += -framework Accelerate
FCFLAGS += -framework Accelerate
CFLAGS += -framework Accelerate
endif
# Documentation
DOXYGENDIR :=
DOTDIR :=
TEXDIR :=
PERLDIR :=
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment