SHELL=/bin/sh # # SRCS=nos_ofs_combine_field_netcdf_selfe.f OBJS=nos_ofs_combine_field_netcdf_selfe.o ## specify NetCDF directory use netcdf 4.0.1 zaj 07/24/2009 #NETCDF=/usrx/local/netcdf-4.1.3 NETCDF=/usrx/local/NetCDF/4.2/serial EXECnos=../../exec LIBnos=../../lib # Tunable parameters # FC Name of the fortran compiling system to use # LDFLAGS Flags to the loader # LIBS List of libraries # CMD Name of the executable # PROFLIB Library needed for profiling FC = ifort #use for extensive compilation error reporting #LDFLAGS = -p -bnoquiet -bloadmap:mug LDFLAGS = INC = -I/nwprod/lib/incmod/g2_4 NETCDF_INCDIR = -I$(NETCDF)/include NETCDF_LIB = -L$(NETCDF)/lib -lnetcdff ## NOS COMF unitility library ##NOS_UTILITY_LIB = -L/nwtest/lib -lnosutil NOS_UTILITY_LIB = -L$(LIBnos) -lnosutil #NOS_UTILITY_LIB = -L../.. -lnosutil INCS = $(INC) $(NETCDF_INCDIR) LIB = -L/nwprod/lib -lg2_4 -lw3emc_4 -lw3nco_4 -lbacio_4 -lbufr_4_64\ -L/usrx/local/64bit/lib -ljasper -lpng -lz LIBS = $(NETCDF_LIB) $(LIB) $(NOS_UTILITY_LIB) CMD = $(EXECnos)/nos_ofs_combine_field_netcdf_selfe PROFLIB = -lprof # To perform the default compilation, use the first line # To compile with flowtracing turned on, use the second line # To compile giving profile additonal information, use the third line # WARNING: SIMULTANEOUSLY PROFILING AND FLOWTRACING IS NOT RECOMMENDED FFLAGS = -O3 -free $(INCS) #FFLAGS = -O3 -qnosave -qport=mod -qintsize=4 -qrealsize=4 #FFLAGS = -F #FFLAGS = -Wf"-ez" # Lines from here on down should not need to be changed. They are the # actual rules which make uses to build a.out. all: $(CMD) $(CMD): $(OBJS) $(FC) $(LDFLAGS) -o $(@) $(OBJS) $(LIBS) rm -f $(OBJS) # cp -p $(CMD) ../../exec/ # Make the profiled version of the command and call it a.out.prof #$(FC) $(LDFLAGS) -o $(@) $(OBJS) $(PROFLIB) $(LIBS) clean: rm -f $(OBJS) clobber: clean rm -f $(CMD) $(CMD).prof void: clobber rm -f $(SRCS) makefile