SHELL=/bin/sh # # This makefile was produced by /usr/bin/fmgen at 06:59:12 AM on 06/14/95 # If it is invoked by the command line # make -f makefilename # 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 makefilename 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 makefilename clean # # To remove everything but the source files use the command line # make -f makefilename clobber # # To remove the source files created by /usr/bin/fmgen and this makefile # use the command line # make -f makefilename 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= vect2grid.f u140.f int140.f pwotgm.f rdvr140.f rdstgrid.f rdtdlmc.f OBJS= vect2grid.o u140.o int140.o pwotgm.o rdvr140.o rdstgrid.o rdtdlmc.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 # BINDIR = ../../exec FC = ${COMP} # Use Intel FORTRAN Compiler, ifort LDFLAGS = LIBS = ${LMPMDL_LIB4} ${W3NCO_LIB4} CMD = glmp_vect2grid 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 = -O3 -nofree -i4 -real-size 32 -fpscomp logicals -fp-model strict -assume byterecl -traceback #FFLAGS = -O3 -nofree -xHost -i4 -real-size 32 -fpscomp logicals -fp-model strict -assume byterecl -check bounds -g -traceback DEBUG = -DDEBUG -g -traceback -check all # 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 debug: FFLAGS += $(DEBUG) debug: all install: -mv $(CMD) ${BINDIR}/ test: $(CMD) < input.txt > output.txt diff output.txt valid_output.txt