# Multithreaded + multi-processing makefile for:
#    Darwin trane.evsc.virginia.edu 9.8.0 Darwin Kernel Version 9.8.0: Wed Jul 15 16:55:01 PDT 2009; root:xnu-1228.15.4~1/RELEASE_I386 i386
# This makefile was generated automatically on
#    Fri May  7 02:18:39 EDT 2010
# by the command:
#    ../../../tools/genmake2 -ds -m make -mods=../code -optfile=/Users/aevan/TMP/MITgcm/tools/build_options/darwin_ia32_pgf95_trane -ieee
# executed by:
#    aevan@trane.evsc.virginia.edu:/Users/aevan/TMP/MITgcm/verification/cfc_example/build
#
# OPTFILE="/Users/aevan/TMP/MITgcm/tools/build_options/darwin_ia32_pgf95_trane"
# 
# BUILDDIR     : Directory where object files are written
# SOURCEDIRS   : Directories containing the source (.F) files
# INCLUDEDIRS  : Directories containing the header-source (.h) files
# EXEDIR       : Directory where executable that is generated is written
# EXECUTABLE   : Full path of executable binary
#
# CPP          : C-preprocessor command
# INCLUDES     : Directories searched for header files
# DEFINES      : Macro definitions for CPP
# MAKEDEPEND   : Dependency generator
# KPP          : Special preprocessor command (specific to platform)
# KFLAGS       : Flags for KPP
# FC           : Fortran compiler command
# FFLAGS       : Configuration/debugging options for FC
# FOPTIM       : Optimization options for FC
# LINK         : Command for link editor program
# LIBS         : Library flags /or/ additional optimization/debugging flags

ROOTDIR     = ../../..
BUILDDIR    = .  
SOURCEDIRS  =  ../code ../../../pkg/cd_code ../../../pkg/cfc ../../../pkg/debug ../../../pkg/gchem ../../../pkg/generic_advdiff ../../../pkg/gmredi ../../../pkg/mdsio ../../../pkg/mom_common ../../../pkg/mom_fluxform ../../../pkg/mom_vecinv ../../../pkg/monitor ../../../pkg/ptracers ../../../pkg/rw ../../../pkg/timeave ../../../eesupp/src ../../../model/src
INCLUDEDIRS =  ../code ../../../pkg/cd_code ../../../pkg/cfc ../../../pkg/debug ../../../pkg/gchem ../../../pkg/generic_advdiff ../../../pkg/gmredi ../../../pkg/mdsio ../../../pkg/mom_common ../../../pkg/mom_fluxform ../../../pkg/mom_vecinv ../../../pkg/monitor ../../../pkg/ptracers ../../../pkg/rw ../../../pkg/timeave ../../../eesupp/inc ../../../model/inc
EXEDIR      = .
EXECUTABLE  = $(EXEDIR)/mitgcmuv
TOOLSDIR    = ../../../tools

#eh3  new defines for the adjoint work
AUTODIFF    = ../../../pkg/autodiff
EXE_AD      = mitgcmuv_ad
EXE_FTL     = mitgcmuv_ftl
EXE_SVD     = mitgcmuv_svd

ENABLED_PACKAGES =  -DALLOW_CD_CODE -DALLOW_CFC -DALLOW_DEBUG -DALLOW_GCHEM -DALLOW_GENERIC_ADVDIFF -DALLOW_GMREDI -DALLOW_MDSIO -DALLOW_MOM_COMMON -DALLOW_MOM_FLUXFORM -DALLOW_MOM_VECINV -DALLOW_MONITOR -DALLOW_PTRACERS -DALLOW_RW -DALLOW_TIMEAVE
DISABLED_PACKAGES =  -UALLOW_ADMTLM -UALLOW_AIM_COMPON_INTERF -UALLOW_AIM_V23 -UALLOW_ATM2D -UALLOW_ATM_COMMON -UALLOW_ATM_OCN_COUPLER -UALLOW_AUTODIFF -UALLOW_BULK_FORCE -UALLOW_CAL -UALLOW_CHEAPAML -UALLOW_CHRONOS -UALLOW_COMPON_COMMUNIC -UALLOW_COST -UALLOW_CTRL -UALLOW_DIAGNOSTICS -UALLOW_DIC -UALLOW_DOWN_SLOPE -UALLOW_EBM -UALLOW_ECCO -UALLOW_EMBED_FILES -UALLOW_EXCH2 -UALLOW_EXF -UALLOW_FIZHI -UALLOW_FLT -UALLOW_GGL90 -UALLOW_GRDCHK -UALLOW_GRIDALT -UALLOW_ICEFRONT -UALLOW_KPP -UALLOW_LAND -UALLOW_LAYERS -UALLOW_LONGSTEP -UALLOW_MATRIX -UALLOW_MNC -UALLOW_MY82 -UALLOW_MYPACKAGE -UALLOW_OBCS -UALLOW_OCN_COMPON_INTERF -UALLOW_OFFLINE -UALLOW_OPPS -UALLOW_PP81 -UALLOW_PROFILES -UALLOW_RBCS -UALLOW_REGRID -UALLOW_RUNCLOCK -UALLOW_SALT_PLUME -UALLOW_SBO -UALLOW_SEAICE -UALLOW_SHAP_FILT -UALLOW_SHELFICE -UALLOW_SHOWFLOPS -UALLOW_SMOOTH -UALLOW_SPHERE -UALLOW_THSICE -UALLOW_ZONAL_FILT

# These files are created by Makefile
SPECIAL_FILES = PACKAGES_CONFIG.h AD_CONFIG.h FC_NAMEMANGLE.h BUILD_INFO.h
EMBEDDED_FILES = 
# Unix ln (link)
LN = ln -s
# C preprocessor
CPP = cat $< | $(TOOLSDIR)/set64bitConst.sh |  /usr/bin/cpp -traditional -P
# Dependency generator
MAKEDEPEND = makedepend
# Special preprocessor (KAP on DECs, FPP on Crays)
KPP = 
# Fortran compiler
FC = pgf95
# Fortran compiler
F90C = 
# C compiler
CC = pgcc
# Link editor
LINK = pgf90 

# Defines for CPP
DEFINES = -DWORDLENGTH=4 -DNML_TERMINATOR 
# Includes for CPP
INCLUDES = -I.  -I/common/usr/local/include
# Flags for KPP
KFLAGS1 = 
KFLAGS2 = 
# Optim./debug for FC
FFLAGS = -byteswapio -Mnodclchk -Mextend -Ktrap=fp -Kieee 
FOPTIM = 
# Optim./debug for FC
F90FLAGS = 
F90OPTIM = 
F90FIXEDFORMAT = 
# Flags for CC
CFLAGS = -fast -Mipa=fast,inline,safe
# Files that should not be optimized
NOOPTFILES = 
NOOPTFLAGS = 
# Flags and libraries needed for linking
LIBS = -L/common/usr/local/lib
# Name of the Mekfile
MAKEFILE=Makefile

F77_SRC_FILES =  \
 cd_code_ini_vars.F \
 cd_code_init_fixed.F \
 cd_code_read_pickup.F \
 cd_code_scheme.F \
 cd_code_write_pickup.F \
 cfc11_forcing.F \
 cfc11_surfforcing.F \
 cfc12_forcing.F \
 cfc12_surfforcing.F \
