30 |
UNAMEA=`uname -a` |
UNAMEA=`uname -a` |
31 |
TODAY=`date` |
TODAY=`date` |
32 |
# F77 |
# F77 |
33 |
|
ifeq ($(GCC4),) |
34 |
|
export GCCVERS=$(shell echo `gcc -dumpversion | sed 's/\./\ /g'`) |
35 |
|
export GCCVERMAJ=$(word 1,$(GCCVERS)) |
36 |
|
export GCC4=$(shell echo `echo "${GCCVERMAJ} > 3" |bc -l`) |
37 |
|
endif |
38 |
|
ifeq ($(GCC4),1) |
39 |
|
F77=gfortran |
40 |
|
LG2C=-lgfortran |
41 |
|
EXTRAOPT= |
42 |
|
else |
43 |
F77=g77 |
F77=g77 |
44 |
|
LG2C=-lg2c |
45 |
|
EXTRAOPT=-Wno-globals -fvxt |
46 |
|
endif |
47 |
#F77FLAGS= -Wall -Wno-globals -fvxt -fno-automatic -fbounds-check -g -extend_source -static -fno-backslash ${PAM_BIT} |
#F77FLAGS= -Wall -Wno-globals -fvxt -fno-automatic -fbounds-check -g -extend_source -static -fno-backslash ${PAM_BIT} |
48 |
F77FLAGS= -Wall -Wno-globals -fvxt -fno-automatic -fbounds-check -extend_source -static -fno-backslash ${PAM_BIT} |
F77FLAGS= -Wall -funroll-loops -fPIC $(EXTRAOPT) -fno-automatic -fbounds-check -extend_source -static -fno-backslash ${PAM_BIT} |
49 |
# C++ |
# C++ |
50 |
CXX=g++ |
CXX=g++ |
51 |
#CXXFLAGS=-Wall -O -fPIC -pthread -g ${PAM_BIT} |
#CXXFLAGS=-Wall -O -fPIC -pthread -g ${PAM_BIT} |