SHELL=/usr/bin/ksh # # This makefile was produced by /usr/bin/fmgen at 12:59:36 PM on 03/27/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 synth. # # If it is invoked by the command line # make -f makefile synth.prof # it will compile the fortran modules indicated by SRCS into the object # modules indicated by OBJS and produce an executable which profiles # named synth.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 addw.f bound.f calcra.f center.f check.f compute.f readdropw.f \ fdump.f h12.f i1mach.f input.f interp.f j4save.f maxmag.f \ maxw.f readit.f separ.f wnlit.f wnlsm.f wnnls.f \ xerabt.f xerctl.f xerprt.f xerror.f xerrwv.f xersav.f xgetua.f \ amatrix.f bound2.f calcr.f calct.f findra.f maxth.f rodist.f \ asym.f wght.f interad.f srotm.f srotmg.f phase.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 # ISIZE = 4 RSIZE = 4 CF = ncepxlf LDFLAGS = -lessl #LDFLAGS = LIBS = -L/nwprod/lib -lw3_d CMD = gfdl_rmenvir 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 = -O -qintsize=$(ISIZE) -qrealsize=$(RSIZE) -qflttrap=ov:zero:inv:enable #FFLAGS = -g -qintsize=4 -qrealsize=4 -qflttrap=ov:und:zero:inv:enable #FFLAGS = -O -qintsize=4 -qrealsize=4 -qflttrap=ov:und:zero:inv:enable #FFLAGS = -Zv #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 synth. # all: $(CMD) $(CMD): $(OBJS) $(CF) $(LDFLAGS) -o $(@) $(OBJS) $(LIBS) $(OBJS): $(SRCS) $(CF) $(FFLAGS) -c $< # Make the profiled version of the command and call it synth.prof # $(CMD).prof: $(OBJS) $(CF) $(LDFLAGS) -o $(@) $(OBJS) $(PROFLIB) $(LIBS) clean: -rm -f $(OBJS) *.mod allclean: clean all clobber: clean -rm -f $(CMD) $(CMD).prof void: clobber -rm -f $(SRCS) makefile