SHELL=/bin/sh # # This makefile is modified from an original produced by /usr/bin/fmgen (cray). # 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 bufr_trangoessst. # # If it is invoked by the command line # make -f makefile bufr_trangoessst # or simply: # make # it will compile the fortran modules indicated by SRCS into the object # modules indicated by OBJS and produce an executable bufr_trangoessst. # # To remove all the objects but leave the executables use the command line # make clean # # To remove everything but the source files use the command line # make clobber # # To remove the source files and this makefile # use the command line # make 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= trangoessst.f OBJS= trangoessst.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 = LIBS = -L/nwprod/lib -lw3nco_v2.0.3_d -lbufr_v10.2.0_d_64 -lbacio_v2.0.1_4 CMD = bufr_trangoessst #DEBUG = -g -traceback FFLAGS = -O2 -xHost -integer-size 32 -real-size 64 $(DEBUG) # Lines from here on down should not need to be changed. They are the # actual rules which make uses to build bufr_trangoessst # all: $(CMD) $(CMD): $(OBJS) $(FC) $(LDFLAGS) -o $(@) $(OBJS) $(LIBS) clean: -rm -f $(OBJS) clobber: clean -rm -f $(CMD) void: clobber -rm -f $(SRCS) makefile install: mv $(CMD) ../../exec