SHELL=/usr/bin/ksh # # This makefile was produced by /usr/bin/fmgen at 09:03:29 AM on 03/20/95 # If it is invoked by the command line # make -f makefile # it will compile the fortran modules indicated by SRCS into the object # modules indicated by OBJS and produce an executable named a.spcgrd. # # If it is invoked by the command line # make -f makefile a.spcgrd.prof # it will compile the fortran modules indicated by SRCS into the object # modules indicated by OBJS and produce an executable which profiles # named a.spcgrd.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 SRCS and OBJS should not need to be changed. If, however, # you need to add a new module add the name of the source module to the # SRCS parameter and add the name of the resulting object file to the OBJS # 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. # SRCS= modules.f drive.f getsm.f GAUSSG.f ORDLEG.f avnglatlon.f OBJS= ${SRCS:.f=.o} # Tunable parameters # # CF 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 # # 05/10/99: Per Mark Iredell, the "-qsmp=noauto" is needed in order for # the splib to link properly. Otherwise, you'll get some # odd-looking errors. Also, you must use xlf_r instead of # just regular xlf for some reason. ISIZE = 4 RSIZE = 4 CF = ncepxlf LDFLAGS = -lessl -qsmp=noauto INCMOD1 =/nwprod/lib/incmod/sfcio_4 LIBS = -L/nwprod/lib/sorc/sfcio -L/nwprod/lib -lw3_4 -lsp_4 -lsfcio_4 CMD = gfdl_getsst 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 = -O2 -qsmp=noauto -qintsize=$(ISIZE) -qrealsize=$(RSIZE) FFLAGS = -O -I $(INCMOD1) -qsmp=noauto -qintsize=$(ISIZE) -qrealsize=$(RSIZE) -qflttrap=ov:zero:inv:enable # Lines from here on down should not need to be changed. They are the # actual rules which make uses to build a.spcgrd. # all: $(CMD) $(CMD): $(OBJS) $(CF) $(LDFLAGS) -o $(@) $(OBJS) $(LIBS) $(OBJS): $(SRCS) $(CF) $(FFLAGS) -c $< # Make the profiled version of the command and call it a.spcgrd.prof # $(CMD).prof: $(OBJS) $(CF) $(LDFLAGS) -o $(@) $(OBJS) $(PROFLIB) $(LIBS) clean: -rm -f $(OBJS) copy_summ: cp summary.o.hold summary.o allclean: clean all clobber: clean -rm -f $(CMD) $(CMD).prof void: clobber -rm -f $(SRCS) makefile