⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 makefile

📁 CCSM Research Tools: Community Atmosphere Model (CAM)
💻
字号:
#-----------------------------------------------------------------------# This Makefile is for building any of the executables in this directory.# USAGE: eg. gmake EXENAME=convert_lanwat#------------------------------------------------------------------------# Determine platform UNAMES := $(shell uname -s)UNAMEM := $(findstring CRAY,$(shell uname -m))# Architecture-specific flags and rules##------------------------------------------------------------------------# Cray #------------------------------------------------------------------------# The -Otask0 flag disables autotasking.  This is important due to the# brain-damaged nature of local memory allocation on Cray PVP machines.ifeq ($(UNAMEM),CRAY)LIB_NETCDF := /usr/local/libINC_NETCDF := /usr/local/includeFPPFLAGS := -DCRAY -N -P $(cpp_path)FFLAGS   := -DCRAY -c -G1 -Otask0 LDFLAGS  := -L $(LIB_NETCDF) -lnetcdfendif#------------------------------------------------------------------------# SGI#------------------------------------------------------------------------ifeq ($(UNAMES),IRIX64)LIB_NETCDF := /usr/local/lib64/r4i4INC_NETCDF := /usr/local/includeFFLAGS     := -DSGI -64 -r8 -i4 -O2 -c -I$(INC_NETCDF)LDFLAGS    := -64 -L$(LIB_NETCDF) -lnetcdf endif#------------------------------------------------------------------------# SUN#------------------------------------------------------------------------ifeq ($(UNAMES),SunOS)LIB_NETCDF := /contrib/libINC_NETCDF := /contrib/includeFFLAGS     := -DSUN -c -O2 -stackvar -I$(INC_NETCDF)LDFLAGS    := -L $(LIB_NETCDF) -lnetcdf -lcendif#------------------------------------------------------------------------# Default rules#------------------------------------------------------------------------FC := f90.SUFFIXES:.SUFFIXES: .F90 .o .F90.o:	$(FC) $(FFLAGS) $<$(EXENAME): $(EXENAME).o	$(FC) -o $@ $(EXENAME).o $(LDFLAGS)clean:	$(RM) -f *.o $(EXENAME)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -