Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F102786979
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
Mon, Feb 24, 04:35
Size
2 KB
Mime Type
text/x-makefile
Expires
Wed, Feb 26, 04:35 (2 d)
Engine
blob
Format
Raw Data
Handle
24428509
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 = g
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$(SPC_LOCAL)/include/$(OPTLEVEL) -I$(FMDIR)/mod
LIBS := -lfutils -lhdf5_fortran -lhdf5 -lz -ldl -lpthread -lfm
LDIRS := -L$(SPC_LOCAL)/lib/$(OPTLEVEL) -L$(HDF5)/lib -L$(FMDIR)/lib
################################################################
#
# Section IV: Set up compiler and compiler flags
#
################################################################
CC = $(SPC_MPICC)
FC = $(SPC_MPIF90)
F90 = $(SPC_MPIF90)
GBS_EXEC = $(BINDIR)/gbs_$(PLAT)_$(COMP)
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