# # Create an NJOY executable file. # # If creating an executable for use on 32-bit platforms, upd should have # been executed with the "*set sw" option when creating the .f source files. # # As part of g95 installation on a Windows PC, the following environmental # variables were defined (some are g95 defaults): # G95_FPU_INVALID is TRUE; # G95_FPU_PRECISION is 64; # G95_FPU_ROUND is NEAREST; # G95_FPU_ZERO is TRUE; # G95_MINUS_ZERO is TRUE. # # Variable definitions: # FC specifies the Fortran compiler. # OPTS specifies the Fortran compiler options. # O defines the object file extension (generally o or obj). # CO defines the "compile only" compiler flag (generally -c or /c). # OBJS specifies the NJOY program object modules. # FC = g95 #OPTS = -O2 -fsloppy-char -g OPTS = -O0 -fsloppy-char -ftrace=full -fbounds-check -freal=nan O = o CO = -c # # list all njoy object files in "OBJS": OBJS = njoy.$(O) reconr.$(O) broadr.$(O) unresr.$(O) heatr.$(O) thermr.$(O) \ groupr.$(O) gaminr.$(O) errorr.$(O) covr.$(O) moder.$(O) dtfr.$(O) ccccr.$(O) \ matxsr.$(O) resxsr.$(O) acer.$(O) powr.$(O) wimsr.$(O) plotr.$(O) viewr.$(O) \ mixr.$(O) purr.$(O) leapr.$(O) gaspr.$(O) # # Create the executable: xnjoy : $(OBJS) $(FC) $(OPTS) -o njoy $(OBJS) # # Make sure .f is part of .SUFFIXES. This command is needed for NMAKE, v1.5; # it is not needed when using NMAKE from the Microsoft .NET environment. .SUFFIXES : .f # # If necessary, create new object files from the corresponding source files: # .f.$(O) : $(FC) $(OPTS) $(CO) $*.f