SHELL=/bin/sh LIBSHARED?=/nwprod/lib LIBLOCAL?=/nwprod/lib # # This makefile was produced by /usr/bin/fmgen at 11:21:32 AM on 04/12/96 # 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.out. # # If it is invoked by the command line # make -f makefile a.out.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.out.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= granalysis.f int155.f u155.f u155ck.f u405a.f rdv155.f cutit.f szgrid.f bcd5.f corbc5.f eslp5.f esp5.f fstgs5.f gradck.f gthres.f itrpsl.f rdstr1.f rdstr7.f setpnt.f trnwnd.f wndcor.f xycom1.f blend.f rdprs.f lapse.f keylst.f points.f dissno.f fitwth.f restrw.f sample.f sclsno.f smothg.f withol.f clip.f densrm.f dispop.f fltagm.f szgrdm.f densrq.f dissky.f diswsp.f sclsky.f disqpf.f sclq06.f sclq12.f disq06.f OBJS= granalysis.o int155.o u155.o u155ck.o u405a.o rdv155.o cutit.o szgrid.o bcd5.o corbc5.o eslp5.o esp5.o fstgs5.o gradck.o gthres.o itrpsl.o rdstr1.o rdstr7.o setpnt.o trnwnd.o wndcor.o xycom1.o blend.o rdprs.o lapse.o keylst.o points.o dissno.o fitwth.o restrw.o sample.o sclsno.o smothg.o withol.o clip.o densrm.o dispop.o fltagm.o szgrdm.o densrq.o dissky.o diswsp.o sclsky.o disqpf.o sclq06.o sclq12.o disq06.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 # FC = ifort LDFLAGS = LIBS = -L$(LIBLOCAL) -lmdl_4 -L$(LIBSHARED) -lw3nco_4 CMD = mdl_granalysis PROFLIB = # 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 -nofree -integer-size 32 -real-size 32 -auto -fpscomp logicals -fp-model strict -assume byterecl # 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) # Make the profiled version of the command and call it a.out.prof # $(CMD).prof: $(OBJS) $(FC) $(LDFLAGS) -o $(@) $(OBJS) $(PROFLIB) $(LIBS) clean: -rm -f $(OBJS) clobber: clean -rm -f $(CMD) $(CMD).prof void: clobber -rm -f $(SRCS) makefile