| 1 |
# -*- Makefile -*- |
| 2 |
# Generic makefile for dealing with various machines |
| 3 |
|
| 4 |
# MACHINE |
| 5 |
#USE_HOME=USE_HOME |
| 6 |
#USE_LAPTOP=USE_LAPTOP |
| 7 |
#USE_WORK_64=USE_WORK_64 |
| 8 |
#USE_WORK_64_OLD=USE_WORK_64_OLD |
| 9 |
#USE_WORK_32=USE_WORK_32 |
| 10 |
#USE_WULF=USE_WULF |
| 11 |
#USE_WULF_32=USE_WULF_32 |
| 12 |
|
| 13 |
# MACHINE DEPENDENT DIRECTORIES |
| 14 |
|
| 15 |
# The following should be defined in the master makefile |
| 16 |
# BASE_DIR - this is the git directory and all repositories should be hung off |
| 17 |
# this directory. |
| 18 |
# OUT_DIR - directory for the object files and executable |
| 19 |
|
| 20 |
# HOME |
| 21 |
ifdef USE_HOME |
| 22 |
|
| 23 |
ifndef CC |
| 24 |
CC = gcc |
| 25 |
endif |
| 26 |
ifndef FC |
| 27 |
FC = gfortran |
| 28 |
endif |
| 29 |
ifndef CFLAGS |
| 30 |
CFLAGS = -g -static |
| 31 |
endif |
| 32 |
|
| 33 |
IMSL_BASE_DIR = /opt/vni/CTT6.0 |
| 34 |
|
| 35 |
GSL_INCLUDE_DIR = /usr/include/gsl |
| 36 |
GSL_LIBS_DIR = /usr/lib |
| 37 |
|
| 38 |
LAPACK_LIBS_DIR = $(HOME)/lapack-3.2.1/libs |
| 39 |
LAPACK_LIBS = -llapack_linux -lblas_linux |
| 40 |
|
| 41 |
MKL_BASE_DIR = /opt/intel/Compiler/11.1/069/mkl |
| 42 |
MKL_LIBS_DIR = $(MKL_BASE_DIR)/lib/em64t |
| 43 |
MKL_LIBS = -Wl,--start-group -lmkl_intel_lp64 -lmkl_gnu_thread -lmkl_core -Wl,--end-group -fopenmp |
| 44 |
#MKL_LIBS = -Wl,--start-group -lmkl_intel_lp64 -lmkl_sequential -lmkl_core -Wl,--end-group |
| 45 |
|
| 46 |
#MKL_BASE_DIR = /opt/intel/Compiler/11.1/069/mkl |
| 47 |
#MKL_LIBS_DIR = $(MKL_BASE_DIR)/lib/32 |
| 48 |
#MKL_LIBS = -Wl,--start-group -lmkl_intel -lmkl_gnu_thread -lmkl_core -Wl,--end-group -fopenmp |
| 49 |
#MKL_LIBS = -Wl,--start-group -lmkl_intel -lmkl_sequential -lmkl_core -Wl,--end-group |
| 50 |
|
| 51 |
ATLAS_LIBS_BASE = $(HOME)/atlas-3.8.3/lib-atlas |
| 52 |
ATLAS_LIBS = -llapack -lptf77blas -lptcblas -latlas |
| 53 |
|
| 54 |
NPSOL_DIR = $(HOME)/npsol-5.0/lib |
| 55 |
endif |
| 56 |
|
| 57 |
# LAPTOP |
| 58 |
ifdef USE_LAPTOP |
| 59 |
|
| 60 |
ifndef CC |
| 61 |
CC = gcc |
| 62 |
endif |
| 63 |
ifndef FC |
| 64 |
FC = gfortran |
| 65 |
endif |
| 66 |
ifndef CFLAGS |
| 67 |
CFLAGS = -g -static |
| 68 |
endif |
| 69 |
|
| 70 |
#IMSL_BASE_DIR = /opt/vni/CTT6.0 |
| 71 |
|
| 72 |
GSL_INCLUDE_DIR = /usr/local/include/gsl |
| 73 |
GSL_LIBS_DIR = /usr/local/lib |
| 74 |
|
| 75 |
MKL_BASE_DIR = /opt/intel/Compiler/11.1/069/mkl |
| 76 |
MKL_LIBS_DIR = $(MKL_BASE_DIR)/lib/32 |
| 77 |
MKL_LIBS = -Wl,--start-group -lmkl_intel -lmkl_gnu_thread -lmkl_core -Wl,--end-group -fopenmp |
| 78 |
#MKL_LIBS = -Wl,--start-group -lmkl_intel_lp64 -lmkl_sequential -lmkl_core -Wl,--end-group |
| 79 |
|
| 80 |
#NPSOL_DIR = /home/f1dfw14/data/npsol-5.0 |
| 81 |
endif |
| 82 |
|
| 83 |
# WORK_64 |
| 84 |
ifdef USE_WORK_64 |
| 85 |
|
| 86 |
ifndef CC |
| 87 |
CC = gcc |
| 88 |
endif |
| 89 |
ifndef FC |
| 90 |
FC = gfortran |
| 91 |
endif |
| 92 |
ifndef CFLAGS |
| 93 |
CFLAGS = -g -static |
| 94 |
endif |
| 95 |
|
| 96 |
MKL_BASE_DIR = /opt/intel/Compiler/11.1/069/mkl |
| 97 |
MKL_LIBS_DIR = $(MKL_BASE_DIR)/lib/em64t |
| 98 |
MKL_LIBS = -Wl,--start-group -lmkl_intel_lp64 -lmkl_gnu_thread -lmkl_core -Wl,--end-group -fopenmp |
| 99 |
#MKL_LIBS = -Wl,--start-group -lmkl_intel_lp64 -lmkl_sequential -lmkl_core -Wl,--end-group |
| 100 |
|
| 101 |
|
| 102 |
LAPACK_LIBS_DIR = $(HOME)/lapack-3.2/lib4.2.4 |
| 103 |
LAPACK_LIBS = -llapack_linux -lblas_linux |
| 104 |
#LAPACK_LIBS = -llapack_debug -lblas_debug |
| 105 |
|
| 106 |
ATLAS_LIBS_BASE = $(HOME)/atlas-3.8.3/lib-atlas |
| 107 |
ATLAS_LIBS = -llapack -lptf77blas -lptcblas -latlas |
| 108 |
|
| 109 |
GSL_INCLUDE_DIR = /usr/local/include/gsl |
| 110 |
GSL_LIBS_DIR = /usr/local/lib |
| 111 |
|
| 112 |
NPSOL_DIR = /home/f1dfw14/data/npsol-5.0 |
| 113 |
|
| 114 |
FORTRAN_LIBS = /usr/lib/gcc/x86_64-linux-gnu/4.2.4/libgfortran.a |
| 115 |
endif |
| 116 |
|
| 117 |
# WORK_32 |
| 118 |
ifdef USE_WORK_32 |
| 119 |
|
| 120 |
ifndef CC |
| 121 |
CC = gcc |
| 122 |
endif |
| 123 |
ifndef FC |
| 124 |
FC = gfortran |
| 125 |
endif |
| 126 |
ifndef CFLAGS |
| 127 |
CFLAGS = -g -static |
| 128 |
endif |
| 129 |
|
| 130 |
MKL_BASE_DIR = /opt/intel/mkl/9.1.021 |
| 131 |
MKL_LIBS_DIR = $(MKL_BASE_DIR)/lib/32 |
| 132 |
MKL_LIBS = -lmkl_lapack -lmkl_ia32 -lguide |
| 133 |
|
| 134 |
IMSL_BASE_DIR = /opt/vni/CTT6.0 |
| 135 |
endif |
| 136 |
|
| 137 |
#WULF |
| 138 |
ifdef USE_WULF |
| 139 |
|
| 140 |
ifndef CC |
| 141 |
CC = gcc |
| 142 |
endif |
| 143 |
ifndef FC |
| 144 |
FC = gfortran |
| 145 |
endif |
| 146 |
ifndef CFLAGS |
| 147 |
CFLAGS = -g -static |
| 148 |
endif |
| 149 |
|
| 150 |
MKL_BASE_DIR = /opt/intel/mkl/9.0 |
| 151 |
MKL_LIBS_DIR = $(MKL_BASE_DIR)/lib/em64t |
| 152 |
MKL_LIBS = -lmkl_lapack -lmkl_em64t -lguide |
| 153 |
|
| 154 |
GSL_INCLUDE_DIR = /usr/local/include/gsl |
| 155 |
GSL_LIBS_DIR = /usr/local/lib |
| 156 |
|
| 157 |
IMSL_BASE_DIR = /opt/vni/CTT6.0 |
| 158 |
endif |
| 159 |
|
| 160 |
#WULF_32 |
| 161 |
ifdef USE_WULF_32 |
| 162 |
|
| 163 |
ifndef CC |
| 164 |
CC = gcc |
| 165 |
endif |
| 166 |
ifndef FC |
| 167 |
FC = gfortran |
| 168 |
endif |
| 169 |
ifndef CFLAGS |
| 170 |
CFLAGS = -g -static |
| 171 |
endif |
| 172 |
|
| 173 |
MKL_BASE_DIR = /opt/intel/mkl/8.1 |
| 174 |
MKL_LIBS_DIR = $(MKL_BASE_DIR)/lib/32 |
| 175 |
MKL_LIBS = -lmkl_lapack -lmkl_ia32 |
| 176 |
|
| 177 |
GSL_INCLUDE_DIR = /usr/local/include/gsl |
| 178 |
GSL_LIBS_DIR = /usr/local/lib |
| 179 |
|
| 180 |
IMSL_BASE_DIR = /opt/vni/CTT6.0 |
| 181 |
endif |
| 182 |
|
| 183 |
ifndef TZ_DIR |
| 184 |
TZ_DIR = $(BASE_DIR)/utilities_dw/TZCcode |
| 185 |
endif |
| 186 |
ifndef DW_BASE_DIR |
| 187 |
DW_BASE_DIR = $(BASE_DIR) |
| 188 |
endif |