# # # POM makefile for wake # #----------------------------------------------------------------------- # Settings that depend on the system and the compiler #----------------------------------------------------------------------- # Set macros # Set include files from jet include ../configure.pom # NETCDF=/gpfs/gd2/emc/hwrf/save/Morris.Bender/gfdl/sorc/mpipom # NETCDFINC = -I$(NETCDF)/include NETCDFLIB = -L$(NETCDF)/lib # # This makefile was produced by /usr/bin/fmgen at 01:06:19 PM on 03/18/95 # If it is invoked by the command line # make -f makefile # it will compile the fortran modules indicated by SRC into the object # modules indicated by OBJ and produce an executable named a.create. # # If it is invoked by the command line # make -f makefile a.create.prof # it will compile the fortran modules indicated by SRC into the object # modules indicated by OBJ and produce an executable which profiles # named a.create.prof. # # To remove all the objects but leave the executables use the command line # make -f makefile clean # # To remove everything but the source files use the command line # make -f makefile clobber # # To remove the source files created by /usr/bin/fmgen and this makefile # use the command line # make -f makefile void # # The parameters SRC and OBJ should not need to be changed. If, however, # you need to add a new module add the name of the source module to the # SRC parameter and add the name of the resulting object file to the OBJ # parameter. The new modules are not limited to fortran, but may be C, YACC, # LEX, or CAL. An explicit rule will need to be added for PASCAL modules. # SRC= INTERAD.f ismin.f READRST.f SETTMP.f WAKE.f get_t_restart.f OBJ= ${SRC:.f=.o} # 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 # ISIZE = 4 RSIZE = 4 FC = ifort LDFLAGS = #####LIBS= -L/nwprod/lib -lw3nco_d CMD = gfdl_wake_transatl PROFLIB = -lprof LDFLAGS = LIBS = $(NETCDFINC) $(NETCDFLIB) -lnetcdf -L/nwprod/lib -lw3nco_d # # FFLAGS = -O2 -fpe0 -i4 -convert big_endian $(LIBS) # Lines from here on down should not need to be changed. They are the # actual rules which make uses to build a.create. .f.o: $(FC) $(FFLAGS) -c $*.f all: $(CMD) $(CMD): $(OBJ) $(FC) $(FFLAGS) $(LDFLAGS) -o $(@) $(OBJ) $(LIBS) # Make the profiled version of the command and call it a.create.prof # $(CMD).prof: $(OBJ) $(FC) $(LDFLAGS) -o $(@) $(OBJ) $(PROFLIB) $(LIBS) clean: -rm -f $(OBJ) *.mod copy_summ: cp summary.o.hold summary.o allclean: clean all clobber: clean -rm -f $(CMD) $(CMD).prof void: clobber -rm -f $(SRC) makefile