forked from oncvpsp/oncvpsp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
make.inc
44 lines (29 loc) · 1.31 KB
/
make.inc
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
# System-dependent makefile options for ONCVPSP
# This must be carefully edited before executing "make" in src
#
# Copyright (c) 1989-2019 by D. R. Hamann, Mat-Sim Research LLC and Rutgers
# University
##### Edit the following lines to correspond to your compilers ####
F77 = gfortran
F90 = gfortran
CC = gcc
FCCPP = cpp
FLINKER = $(F90)
#FCCPPFLAGS = -ansi -DLIBXC_VERSION=301 #Use this for versions <301
FCCPPFLAGS = -ansi -DLIBXC_VERSION=400 #Use this for versions >400
##### Edit the following optimization flags for your system ####
FFLAGS = -O3 -ffast-math -funroll-loops
CFLAGS = -O3
##### Edit the following LAPACK and BLAS library paths for your system ####
LIBS = -L/usr/local/lapack/lib -llapack -lrefblas
##### Edit the following for to use libxc if available #####
OBJS_LIBXC = exc_libxc_stub.o
# oncvpsp is compatible with libxc
# To build oncvpsp with libxc, uncomment the e following lines and edit
# the paths to point to your libxc library and include directories
# make clean in src before rebuilding after changing this
LIBS += -L/usr/local/libxc/lib -lxcf90 -lxc
FFLAGS += -I/usr/local/libxc/include
#LIBS += -L/home/drh/abinit/fallbacks/exports/lib -lxcf90 -lxc
#FFLAGS += -I/home/drh/abinit/fallbacks/exports/include
OBJS_LIBXC = functionals.o exc_libxc.o