SHELL=/bin/sh # # This makefile was produced by /usr/bin/fmgen at 12:59:42 PM on 09/23/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 = o3mr_datasets.f90 tranmls.f90 OBJS = o3mr_datasets.o tranmls.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 # FC = ifort #LDFLAGS = -Xlinker -t #LDFLAGS = -Xlinker -M LIBS = -L/nwprod/lib -lw3nco_4 -lbufr_v10.2.1_4_64 -L -lm -Bstatic -L/usrx/local/hdf5-1.8.9/lib -lhdf5_fortran -lhdf5 -lz CMD = bufr_tranmls #DEBUG = -g -traceback FFLAGS = -O2 -convert big_endian -list -auto -assume noold_ldout_format -I /usrx/local/hdf5-1.8.9/include -I /usrx/local/hdf5-1.8.9/lib $(DEBUG) # 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) .SUFFIXES: .o .f90 .f90.o: $(FC) $(FFLAGS) -c $< clean: -rm -f $(OBJS) clobber: clean -rm -f $(CMD) $(CMD).prof void: clobber -rm -f $(SRCS) makefile install: mv $(CMD) ../../exec