SHELL=/bin/sh # SRCS= WGTMKR.f POLATWGT.f makgds.f OBJS= WGTMKR.o POLATWGT.o makgds.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 # CF = xlf90 LDFLAGS = LIBS = -L/usr/local/lib -lessl -lmass \ -L/global/save/wx20gg/bgrids/ipmods -lip_4 \ -L/meso/save/wx20er/w3lib_nmmb_20080411/lib -lw3_4 \ -L/nwprod/lib -lsp_4 -lbacio_4 CMD = wgtmkr.x 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 = -qrealsize=4 -qmaxmem=-1 -qsource -qnosave -qspillsize=548 # Lines from here on down should not need to be changed. They are the # actual rules which make uses to build wgtmkr.x. # all: $(CMD) $(CMD): $(OBJS) $(CF) $(LDFLAGS) -o $(@) $(OBJS) $(LIBS) # Make the profiled version of the command and call it awprgn.xc.prof # $(CMD).prof: $(OBJS) $(CF) $(LDFLAGS) -o $(@) $(OBJS) $(PROFLIB) $(LIBS) clean: -rm -f $(OBJS) *.lst $(CMD) clobber: clean -rm -f $(CMD) $(CMD).prof void: clobber -rm -f $(SRCS) makefile