forked from libnegf/libnegf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.user.olab
90 lines (75 loc) · 3.17 KB
/
Makefile.user.olab
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
# -*- makefile -*-
############################################################################
# Local makefile settings
#
# This is the place for including your system dependent makefile and
# for overriding the settings in that or the default settings.
#
# You must rename this file to Makefile.user
#
#############################################################################
# Set your architecture. Make sure, that 'sysmakes/make.$(ARCH)' exists for
# you architecture. If not, create your own using 'sysmakes/make.generic'
# as template.
#ARCH = x86_64-linux-ifort
ARCH1= $(shell uname -m)
ARCH = $(ARCH1)-linux-ifort
DEBUG=0
# Include system specific settings
#include $(ROOT)/sysmakes/make.$(ARCH)
############################################################################
# Overriding standard options:
############################################################################
## Set alternative path for the autotest directory
#PRGDFTB_TESTDIR = $(ROOT)/../autotest
## Set alternative file containing the name of the tests to run
#PRGDFTB_TESTFILE = $(PRGDFTB_TESTDIR)/tests
## Change directory, where the _obj* directory for the object files is created
#OBJDIR_PARENT =
## Change suffix after '_obj' for the object directory name
#OBJDIR_SUFFIX = _$(ARCH)
## Set directory, where binary should be copied when issuing 'make install'
#INSTALLDIR = .
ifeq ($(ARCH1),x86_64)
MPI_DIR = /usr/pack/mpich2-1.0.8-gp/amd64-debian-linux4.0/bin
FC90 = ifort-11.1
#FC90 =g95
MKL_LIBDIR = /usr/pack/intel_mkl-10.2-gp/lib/em64t
MKL_INCLUDE = /usr/pack/intel_mkl-10.2-gp/include/em64t
LIB_BLAS = -Wl,-rpath,$(MKL_LIBDIR) -lmkl_intel_lp64 -lmkl_intel_thread -lmkl_core -liomp5 -lguide
LIB_LAPACK =
STATIC_BLAS = -Wl,--start-group $(MKL_LIBDIR)/libmkl_intel_lp64.a $(MKL_LIBDIR)/libmkl_intel_thread.a $(MKL_LIBDIR)/libmkl_core.a -Wl,--end-group -liomp5 -lguide
endif
ifeq ($(ARCH1),i686)
#FC90=g95
FC90=ifort-9.1
MPI_DIR = /usr/pack/mpich2-1.0.8-gp/i686-debian-linux4.0/bin
# OLD MKL (Better for AMD ?)
MKL_LIBDIR = /usr/pack/intel_mkl-10.2-gp/lib/32
STATIC_BLAS = -Wl,--start-group $(MKL_LIBDIR)/libmkl_lapack.a $(MKL_LIBDIR)/libmkl_ia32.a -Wl,--end-group -lguide
#MKL_LIBDIR = /usr/pack/intel_mkl-10.2-gp/lib/32
LIB_BLAS = -Wl,-rpath,$(MKL_LIBDIR) -lmkl_intel -lmkl_intel_thread -lmkl_core -liomp5 -lguide -lpthread
#STATIC_BLAS = -Wl,--start-group $(MKL_LIBDIR)/libmkl_intel.a $(MKL_LIBDIR)/libmkl_intel_thread.a $(MKL_LIBDIR)/libmkl_core.a -Wl,--end-group -liomp5 -lguide
#MKL_LIBDIR = /home/pecchia/projects/LAPACK/lapack-3.2.1
#STATIC_BLAS = -Wl,--start-group $(MKL_LIBDIR)/lapack_LINUX.a $(MKL_LIBDIR)/blas_LINUX.a -Wl,--end-group
LIB_LAPACK =
endif
LIBTHREAD= /usr/lib
CC = gcc
CCOPT = -O2 -x c
# Options for the Fortran 90 compiler
#LNOPT = $(LNOPT)
ifeq ($(DEBUG),0)
FC90OPT = -O2 -ip
ifeq ($(FC90),g95)
FC90OPT = -O2 -fno-second-underscore -fstatic
endif
endif
ifeq ($(DEBUG),1)
FC90OPT = -g -CB -fpe0 -check all
ifeq ($(FC90),g95)
FC90OPT = -g -fbounds-check -fno-second-underscore
endif
endif
## Uncomment to keep intermediate files in OBJDIR (for debug only!)
#.PRECIOUS: %.f90 %.F %.f %.c