version 1.57, 2009/09/22 22:49:55
|
version 1.60, 2009/10/06 20:13:24
|
|
|
STATIC = | STATIC = |
DBNAME = POSTGRESQL | DBNAME = POSTGRESQL |
| |
_JSOCROOT_ = .. |
|
|
|
# This optional file has custom definitions created by the configure script | # This optional file has custom definitions created by the configure script |
-include $(SRCDIR)/custom.mk | -include $(SRCDIR)/custom.mk |
| |
|
# If MACH was set when the make command was issued (eg., make MACH='N02'), then |
|
# use its value for the output/obj directory and use the custom.mk variables |
|
# relevant to its value. Otherwise, use $(JSOC_MACHINE). |
ifeq ($(MACH),) | ifeq ($(MACH),) |
MACH = $(JSOC_MACHINE) | MACH = $(JSOC_MACHINE) |
endif | endif |
|
|
# | # |
LL_ALL = $(SYSLIBS) | LL_ALL = $(SYSLIBS) |
GCC_LF_ALL = $(STATIC) | GCC_LF_ALL = $(STATIC) |
ICC_LF_ALL = $(STATIC) |
ICC_LF_ALL = $(STATIC) -openmp -static-intel |
| |
# Fortran global LINK flags | # Fortran global LINK flags |
F_LF_ALL = -nofor_main -no-ipo |
F_LF_ALL = -nofor_main -openmp -static-intel |
#***********************************************************************************************# | #***********************************************************************************************# |
| |
#***********************************************************************************************# | #***********************************************************************************************# |
Line 193 F_LF_ALL = -nofor_main -no-ipo |
|
Line 194 F_LF_ALL = -nofor_main -no-ipo |
|
# GLOBAL COMPILE FLAGS | # GLOBAL COMPILE FLAGS |
# | # |
GCC_CF_GCCCOMP = -DGCCCOMP | GCC_CF_GCCCOMP = -DGCCCOMP |
ICC_CF_ICCCOMP = -DICCCOMP |
ICC_CF_ICCCOMP = -DICCCOMP -openmp |
| |
CCFLAGS_OPT := | CCFLAGS_OPT := |
| |
ifeq ($(COMPILER), icc) | ifeq ($(COMPILER), icc) |
ifeq ($(JSOC_MACHINE), linux_x86_64) | ifeq ($(JSOC_MACHINE), linux_x86_64) |
CCFLAGS_OPT := -xW |
CCFLAGS_OPT := |
endif | endif |
endif | endif |
| |
|
|
# Fortran global COMPILE flags | # Fortran global COMPILE flags |
ifeq ($(JSOC_MACHINE), linux_x86_64) | ifeq ($(JSOC_MACHINE), linux_x86_64) |
ifeq ($(FCOMPILER), ifort) | ifeq ($(FCOMPILER), ifort) |
F_CF_ALL := -mcmodel=medium |
F_CF_ALL := -openmp |
endif | endif |
endif | endif |
| |
# Other compiler-specific Fortran COMPILE flags | # Other compiler-specific Fortran COMPILE flags |
ifeq ($(FCOMPILER), ifort) | ifeq ($(FCOMPILER), ifort) |
ifeq ($(JSOC_MACHINE), linux_x86_64) | ifeq ($(JSOC_MACHINE), linux_x86_64) |
FCFLAGS_OPT := -xW |
FCFLAGS_OPT := |
endif | endif |
FCFLAGS_INIT := -ftrapuv | FCFLAGS_INIT := -ftrapuv |
else | else |
|
|
FCOMP = $(FCOMPILER) $(F_CF_ALL) $(FF_TGT) -o $@ -c $< | FCOMP = $(FCOMPILER) $(F_CF_ALL) $(FF_TGT) -o $@ -c $< |
FLINK = $(FCOMPILER) $(F_LF_ALL) $(LF_TGT) -o $@ $^ $(LL_TGT) $(LL_ALL) | FLINK = $(FCOMPILER) $(F_LF_ALL) $(LF_TGT) -o $@ $^ $(LL_TGT) $(LL_ALL) |
| |
SLBIN = ln -sf ../../_$(JSOC_MACHINE)/$@ ../bin/$(JSOC_MACHINE)/ |
SLBIN = ln -sf ../../_$(MACH)/$@ ../bin/$(MACH)/ |
SLLIB = ln -sf ../../_$(JSOC_MACHINE)/$@ ../lib/$(JSOC_MACHINE)/ |
SLLIB = ln -sf ../../_$(MACH)/$@ ../lib/$(MACH)/ |
#***********************************************************************************************# | #***********************************************************************************************# |
| |
| |