# This config file contains the compile options for compilation # of the GSI code on the NOAA HPCS. # ---------------------------------- # Set library versions # ---------------------------------- SFCIO_VER = v1.0.0 W3NCO_VER = v2.0.6 CORELIB = /nwprod/lib SFCIO_INC4=$(CORELIB)/sfcio/$(SFCIO_VER)/incmod/sfcio_$(SFCIO_VER)_4 SFCIO_LIB4=$(CORELIB)/sfcio/$(SFCIO_VER)/libsfcio_$(SFCIO_VER)_4.a W3NCO_LIB4=$(CORELIB)/w3nco/$(W3NCO_VER)/libw3nco_$(W3NCO_VER)_4.a # --------------------------- # General targets/definitions # --------------------------- AR = ar -v # ---------------------------- # Fortran compiler and options # ---------------------------- CF = mpfort FC = $(CF) #--- Normal mode options PROF= OMP = FFLAGS_F90 = FFLAGS_COM_N = -I ./ -I $(SFCIO_INC4) -O3 -fp-model source -convert big_endian -assume byterecl \ -implicitnone FFLAGS_N = $(FFLAGS_F90) $(FFLAGS_COM_N) #--- Debug mode options FFLAGS_COM_D = -I ./ -I $(SFCIO_INC4) -O0 -fp-model source -convert big_endian -assume byterecl \ -implicitnone -traceback -g -warn all -debug all -check all FFLAGS_D = $(FFLAGS_F90) $(FFLAGS_COM_D) # ---------------------- # C Compiler and options # ---------------------- CC = mpcc #--- Normal mode options CFLAGS_N = -DLINUX -Dfunder -I ./ -DFortranByte=char -DFortranInt=int -DFortranLlong='long long' -O3 $(PROF) #--- Debug mode options CFLAGS_D = -DLINUX -Dfunder -I ./ -DFortranByte=char -DFortranInt=int -DFortranLlong='long long' -g # ------------------ # Linker and options # ------------------ LD = $(CF) #--- Normal mode options LIBS_N = $(W3NCO_LIB4) $(SFCIO_LIB4) LDFLAGS_N = -Wl,-Map,loadmap.txt LDFLAGS = $(LDFLAGS_N) #--- Debug mode options LIBS_D = $(LIBS_N) LDFLAGS_D = $(LDFLAGS_N) #--- Empty out mpi library definition: embedded in compiler LIBmpi =