SHELL=/bin/bash # # This makefile was produced by /usr/bin/fmgen at 02:55:49 PM on 03/15/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 axis. # # If it is invoked by the command line # make -f makefile axis.prof # it will compile the fortran modules indicated by SRC into the object # modules indicated by OBJ and produce an executable which profiles # named axis.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= modules.f ADJUST.f akim.f BAR.f \ BOUND.f CONST.f CYCLE.f DYNVAL.f \ HDIFSN.f setconv.f sascnv.f machine.f funcphys.f \ HISRST.f HORZFX.f INIT1.f MAXMAG.f MFLXTS.f NEST.f \ PHASE.f PRDCTN.f SMDESM.f spline.f splint.f locate.f tridag.f \ TLDATA.f TWRITE.f UPDATE.f VERTDF.f VERTFX.f akim2.f monospline.f xerror.f \ XINTGL.f qdam.f tread.f twrit.f setcone.f tlift.f convect.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 = #LDFLAGS = #LDFLAGS = -lessl -bnoquiet -bloadmap:loadmap LIBS = -L/nwprod/lib -lw3nco_d CMD = gfdl_axisymet.oldinit PROFLIB = prof # 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 #TMFFLAGS = -Zv -Wf" -a static" #FFLAGS = -Zv -F #FFLAGS = -Zv -Wf"-ez" #FFLAGS = -O2 -qsave -qarch=auto -qintsize=$(ISIZE) -qrealsize=$(RSIZE) -qzerosize FFLAGS = -fpe0 -safe_cray_ptr -O1 -convert big_endian # Lines from here on down should not need to be changed. They are the # actual rules which make uses to build axis. .f.o: $(FC) $(FFLAGS) -c $*.f all: $(CMD) $(CMD): $(OBJ) $(FC) $(FFLAGS) -o $(@) $(OBJ) $(LIBS) # Make the profiled version of the command and call it axis.prof # $(CMD).prof: $(OBJ) $(FC) $(LDFLAGS) -o $(@) $(OBJ) $(PROFLIB) $(LIBS) clean: -rm -f $(OBJ) *.mod allclean: clean all clobber: clean -rm -f $(CMD) $(CMD).prof void: clobber -rm -f $(SRC) makefile