Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F91627824
make.inc
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Tue, Nov 12, 21:30
Size
2 KB
Mime Type
text/x-makefile
Expires
Thu, Nov 14, 21:30 (2 d)
Engine
blob
Format
Raw Data
Handle
22296023
Attached To
rCOSOLVER COSOlver
make.inc
View Options
# Taken from GBS Skeleton
################################################################
#
# Section I: Preprocessor options
#
################################################################
#0/1 = turn OpenMP compilation off/on
USEOPENMP=0
################################################################
#
# Section II: Compiler options
#
################################################################
#Default optimization level (O=optimized, g=debug)
OPTLEVEL = O
F90FLAGS =
CFLAGS =
ifeq ($(OPTLEVEL), O) #optimized
ifeq ($(COMPTYPE), i) #intel
F90FLAGS += -O3 -xHOST
endif
ifeq ($(COMPTYPE), g) #gnu
F90FLAGS += -ffree-line-length-0 -O3
endif
ifeq ($(COMPTYPE), c) #cray
F90FLAGS +=
endif
endif
ifeq ($(OPTLEVEL), g) #debug
ifeq ($(COMPTYPE), i) #intel
F90FLAGS += -g -traceback -CB
endif
ifeq ($(COMPTYPE), g) #gnu
F90FLAGS += -ffree-line-length-0 -g -fbacktrace -fcheck=all -pedantic -Wall
endif
ifeq ($(COMPTYPE), c) #cray
F90FLAGS += -g -O0
endif
endif
################################################################
#
# Section III: Libraries and where to find them
#
################################################################
# setup of includes and library directories
# SPC_LOCAL has to be set in .bashrc
IDIRS := -I$(FMDIR)/mod -I$(BASISDIR)
LIBS := -lfm
LDIRS := -L$(FMDIR)/lib
################################################################
#
# Section IV: Set up compiler and compiler flags
#
################################################################
CC = $(SPC_MPICC)
FC = $(SPC_MPIF90)
F90 = $(SPC_MPIF90)
LDFLAGS = $(F90FLAGS)
################################################################
#
# Section V: Set up inclusion of modules and libraries during
# compiling / linking phase
#
################################################################
#Flag for finding external modules in MODDIR
ifeq ($(COMPTYPE), i) #intel
EXTMOD = -module $(MODDIR)
endif
ifeq ($(COMPTYPE), g) #gnu
EXTMOD = -J $(MODDIR)
endif
ifeq ($(COMPTYPE), c) #cray
EXTMOD = -em -J $(MODDIR)
endif
#Flag for finding external libraries in LDIR
EXTLIBS = $(LDIRS) -Wl,--start-group $(LIBS) -Wl,--end-group
#Flag for finding external include files
EXTINC = $(IDIRS)
Event Timeline
Log In to Comment