- 积分
- 5079
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2017-2-15
- 最后登录
- 1970-1-1
|

楼主 |
发表于 2018-4-13 17:21:10
|
显示全部楼层
本帖最后由 骨头333 于 2018-4-13 17:23 编辑
附include.mk.gfortran.wrf,修改部分添加了背景色
#Makefile include include.mk.opt
############################## Change Log ##################################
# 1.0.0.2
#
# 000908 MJB include.mk-mrc ##
# Added MAKE environment varaible.
# Added free format option to F_OPTS for some platforms. ##
# 000907 MJB include.mk-mrc ##
# Changed the defualts to no NCAR Graphics and no parallel.
# Also commented out the machine specifics to force the user to
# select the appropriate machine for them. ##
# 000823 MJB include.mk-mrc ##
# New - defines all make environment varaibles and is included
# in all make files. ##
#
############################################################################
# Define make (gnu make works best).
MAKE=/usr/bin/make
# Activate appropriate parts below, comment out others.
# NCAR Graphics.
#---------------------------------------------------------------
# If you are using a standard installation of NCAR Graphics, set:
# LOADER=ncargf90
# in the machine-dependent sections below
#LIBNCARG=
#---------------------------------------------------------------
# If you are using the NCAR dummy libraries...
NCARG_DIR=$(BASE)
#LIBNCARG=-L$(NCARG_DIR) -lncarg-$(UTILS_VERSION) -lncarg_c-$(UTILS_VERSION) \
# -lncarg_gks-$(UTILS_VERSION)
#LIBNCARG=-L$(NCARG_DIR) -lncarg-$(UTILS_VERSION)
LIBNCARG=$(BASE)/libncarg-$(UTILS_VERSION)-$(OPT).a
#---------------------------------------------------------------
# If you are using a real distribution of NCAR Graphics...
#NCARG_DIR=/usr/local/ncarg-4.3.0/lib
#LIBNCARG=-L$(NCARG_DIR) -lncarg -lncarg_gks -lncarg_c -L/usr/X11R6/lib -lX11 -ldl
#---------------------------------------------------------------
# NETCDF libraries
NETCDF=/usr/local/netcdf
NETCDF_INC=-I$(NETCDF)/include
NETCDF_LIBS=-L$(NETCDF)/lib -lnetcdf
#-lnetcdff
# HDF libraries
HDF5=/usr/local/HDF5
HDF5_INC=-I$(HDF5)/include
HDF5_LIB=-L$(HDF5)/lib -lhdf5hl_fortran -lhdf5_fortran -lhdf5_hl -lhdf5 -ldl -L/usr/local/zlib/lib -lz -ldl
# Machine-dependent options.
#----------------- LINUX Portland Group pgf77/gcc ---------------
CMACH=PC_LINUX1
F_COMP=gfortran
C_COMP=gcc
LOADER=gfortran
C_LOADER=gcc
LIBS=
MOD_EXT=mod
F_OPTS= -Xpreprocessor -D$(CHEM) -O2 -fconvert=big-endian -frecord-marker=4
C_OPTS= -O2
LOADER_OPTS= -O2
#-----------------------------------------------------------------
# If compiling for a single-CPU platform only (without MPI):
#-----------------------------------------------------------------
PAR_LIBS=
PAR_DEFS=
#-----------------------------------------------------------------
# For IBM,HP,SGI,ALPHA use these:
#ARCHIVE=ar rs
ARCHIVE=ar -crs
# For NEC SX-6
#ARCHIVE=sxar rs
# For SUN,CONVEX
#ARCHIVE=ar r' |
|