SHELL=/bin/sh # SRCS= wmow.f afill.f datecnv10.f datecnv8.f \ ifill.f stats.f wmownd.f wndevl.f OBJS= wmow.o afill.o datecnv10.o datecnv8.o \ ifill.o stats.o wmownd.o wndevl.o # Tunable parameters # # CF 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 = ncepxlf90 #LDFLAGS = -lessl -qsmp #FC = ncepxlf -C -O -bloadmap:comperr FC = ifort #BSM LDFLAGS = -U -lessl -qsmp=noauto LDFLAGS = -openmp LIBS = -L/nwprod/lib -lip_8 -lw3nco_8 -lsp_8 -lbufr_8_64 -lbacio_8 CMD = hrly_wmow #BSM 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 = -qfixed -qintsize=8 -qrealsize=8 -O -qmaxmem=-1 -qalign=4k FFLAGS = -fixed -i8 -r8 #FFLAGS = -F #FFLAGS = -Wf"-ez" # 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