forked from dftbplus/dftbplus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
make.config
73 lines (55 loc) · 2.63 KB
/
make.config
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
################################################################################
# Basic settings
################################################################################
# Build directory (default: _build within the source tree)
BUILDDIR := $(ROOT)/_build
# Installation directory
INSTALLDIR := $(ROOT)/_install
################################################################################
# Configuration of optional components
################################################################################
# Whether DFTB+ should support MPI-parallelism
WITH_MPI := 0
# Whether the socket library (external control) should be linked.
WITH_SOCKETS := 1
# Whether the ARPACK library (needed by TD-DFTB) should be linked with DFTB+
# Only affects serial build (MPI-version is built without ARPACK/TD-DFTB).
WITH_ARPACK := 1
# Whether to use the PROGRESS library
WITH_PROGRESS := 1
# Whether the DFTD3 library (dispersion) should be linked.
# NOTE: Due to license incompatibility, distribution of a DFTB+ binary built
# with this component is not permitted. Use it only for your personal research.
WITH_DFTD3 := 0
################################################################################
# General building/testing options
################################################################################
# DEBUG levels:
# 0 -- production code
# 1 -- internal runtime checks and reduced compiler optimization
# 2 -- level 1 checks plus extra runtime compiler checks
DEBUG := 0
# Nr. of MPI processes used for testing
TEST_MPI_PROCS := 1
# Nr. of OpenMP shared memory threads used for testing
TEST_OMP_THREADS := 1
################################################################################
# Architecture dependent settings
################################################################################
# Whether DFTD3 should be compiled during the build process. If set to 1 (yes),
# you will have to download the dftd3 library before starting the build using
# the utils/get_opt_externals tool.
# (Only active, if WITH_DFTB3 was set to 1 above.)
COMPILE_DFTD3 := 1
# Set the compile time include and the link time library options for
# dftd3-lib. Ignored if WITH_DFTD3 has been disabled or COMPILE_DFTD3 enabled.
DFTD3_INCS := -I/usr/local/include/dftd3-lib
DFTD3_LIBS := -L/usr/local/lib -ldftd3
# Link time library options for linking ARPACK. Ignored if WITH_ARPACK was
# disabled.
ARPACK_LIBS := -larpack
# Whether ARPACK depends on the external LAPACK and BLAS libraries
ARPACK_NEEDS_LAPACK := 0
# Include further architecture dependent settings from make.arch (make sure to
# adapt those in make.arch for your system)
include $(ROOT)/make.arch