-
Notifications
You must be signed in to change notification settings - Fork 8
/
environment.am
36 lines (29 loc) · 1.36 KB
/
environment.am
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# =================================================================================================
# This code is part of PyLith, developed through the Computational Infrastructure
# for Geodynamics (https://geodynamics.org).
#
# Copyright (c) 2010-2024, University of California, Davis and the PyLith Development Team.
# All rights reserved.
#
# See https://mit-license.org/ and LICENSE.md and for license information.
# =================================================================================================
FETCH_SCRIPT = $(top_srcdir)/bin/fetch.sh
env_flags_deps = CFLAGS="$(CFLAGS)" CXXFLAGS="$(CXXFLAGS) -DMPICH_IGNORE_CXX_SEEK" FCFLAGS="$(FCFLAGS)"
if WITH_DEBUGGING
env_flags_cig = CFLAGS="$(CFLAGS) -g -O" CXXFLAGS="$(CXXFLAGS) -DMPICH_IGNORE_CXX_SEEK -g -O" FCFLAGS="$(FCFLAGS) -g -O"
else
env_flags_cig = CFLAGS="$(CFLAGS)" CXXFLAGS="$(CXXFLAGS) -DMPICH_IGNORE_CXX_SEEK" FCFLAGS="$(FCFLAGS)"
endif
if WITH_FORTRAN
env_compilers = CC="$(CC)" CXX="$(CXX)" FC="$(FC)"
env_mpicompilers = CC=mpicc CXX=mpicxx FC=mpif90
else
env_compilers = CC="$(CC)" CXX="$(CXX)"
env_mpicompilers = CC=mpicc CXX=mpicxx
endif
PYTHON_SITEPKGS=lib/python$(PYTHON_VERSION)/site-packages
PYTHON64_SITEPKGS=lib64/python$(PYTHON_VERSION)/site-packages
if WITH_CERT
env_cert = SSL_CERT_FILE="$(cert_path)/$(cert_file)" REQUESTS_CA_BUNDLE="$(cert_path)/$(cert_file)"
endif
# End of file