SHELL = /bin/sh # Listing of options that are usually independent of machine type. # When necessary, these are over-ridden by each architecture. ARFLAGS = -X64 # Variables set by arch/Config.pl: LIB_W3_PATH = /gpfs/hps/nco/ops/nwprod/lib/w3nco/v2.0.6/intel LIB_BACIO_PATH = /gpfs/hps/nco/ops/nwprod/lib/bacio/v2.0.1/intel LIB_G2_PATH = /gpfs/hps/nco/ops/nwprod/lib/g2/v3.1.0/intel LIB_Z_PATH = /usr/lib64 LIB_PNG_PATH = /usrx/local/prod//png/1.2.49/intel/sandybridge/lib LIB_JASPER_PATH = /usrx/local/prod/jasper/1.900.1/intel/sandybridge/lib # Extra flags needed for including or linking to GRIB2 library: GRIB2_FFLAGS = -I$(SFCIO_INC4) -I$(G2TMPL_INC) -I$(SIGIO_INC4) -I$(G2_INC4) GRIB2_LIBS = -L/usrx/local/prod/jasper/1.900.1/intel/sandybridge/lib -L/usr/lib64 -L/usrx/local/prod/png/1.2.49/intel/sandybridge/lib $(G2_LIB4) $(BACIO_LIB4) $(W3NCO_LIB4) $(W3EMC_LIB4) -lpng -ljasper -lz #### Architecture specific settings #### # Settings for Linux x86_64, Intel compiler, CrayPE (serial)# LDFLAGS = -Wl,-noinhibit-exec -L$(MPI_ROOT)/lib BYTE_ORDER = LITTLE_ENDIAN SFC = ftn -static SF90 = ftn -free -static SCC = cc DEBUG_FLAGS = -g -traceback FFLAGS_SINGLE = -i4 -r4 FFLAGS_DOUBLE = -i4 -r8 CPP = /lib/cpp CPPFLAGS = -C -P -D$(BYTE_ORDER) -DWRF FFLAGS = -O1 -fp-model precise $(FFLAGS_DOUBLE) \ -I$(MPI_ROOT)/include CFLAGS = -I$(MPI_ROOT)/include DM_FC = ftn DM_F90 = ftn -free DM_CC = cc FC = $(SFC) F90 = $(SF90) CC = $(SCC) CFLAGS = -O ################################################################## # # Macros, these should be generic for all machines LN = ln -sf MAKE = make -i -r RM = /bin/rm -f CP = /bin/cp AR = ar MKDIR = /bin/mkdir -p .IGNORE: .SUFFIXES: .c .f .F .F90 .f90 .o # There is probably no reason to modify these rules .c.o: $(RM) $@ $(CC) $(CFLAGS) -c $< .f.o: $(RM) $@ $*.mod $(FC) $(FFLAGS) -c $< .F.o: $(RM) $@ $*.mod $(CPP) $(CPPFLAGS) $(FDEFS) $< > $*.f90 $(F90) $(FFLAGS) -c $*.f90 $(RM) $*.f90 .F90.o: $(RM) $@ $*.mod $(CPP) $(CPPFLAGS) $(FDEFS) $< > $*.f90 $(F90) $(FFLAGS) -c $*.f90 $(RM) $*.f90 .f90.o: $(RM) $@ $*.mod $(F90) $(FFLAGS) -c $<