SHELL=/usr/bin/ksh INCMOD1 =/nwprod/lib/incmod/sfcio_4 # SRCS= modules.f gfdlgg.f ss2gghur.f OBJS= ${SRCS:.f=.o} # 05/10/99: Per Mark Iredell, the "-qsmp=noauto" is needed in order for # the splib to link properly. Otherwise, you'll get some # odd-looking errors. Also, you must use xlf_r instead of # just regular xlf for some reason. ISIZE = 4 RSIZE = 4 CF = ncepxlf LDFLAGS = -lessl -qsmp=noauto #LIBS = -L/nwprod/lib -lw3_4 -lsp_4 #LIBS = -L/nwprod/lib/sorc/sfcio -L/nwprod/lib -L/nwprod/lib -lw3_4 -lsp_4 -lsfcio_4 LIBS = -L/nwprod/lib/sorc/sfcio -L/nwprod/lib -lw3_4 -lsp_4 -lsfcio_4 CMD = gfdl_spc2grd PROFLIB = -lprof # WARNING: SIMULTANEOUSLY PROFILING AND FLOWTRACING IS NOT RECOMMENDED # FFLAGS = -O2 -I $(INCMOD1) -qcheck -qextchk -qsmp=noauto -qintsize=$(ISIZE) -qrealsize=$(RSIZE) -qflttrap=ov:zero:inv:enable #FFLAGS = -O2 -qintsize=$(ISIZE) -qrealsize=$(RSIZE) #FFLAGS = -O2 -qcheck -qextchk -qsmp=noauto -qintsize=$(ISIZE) -qrealsize=$(RSIZE) #FFLAGS = -qsmp=noauto -qintsize=4 -qrealsize=4 -qflttrap=ov:zero:inv:enable #FFLAGS = -qsmp=noauto -qintsize=4 -qrealsize=4 -qflttrap=ov:und:zero:inv:enable #FFLAGS = -qsmp=noauto -qintsize=4 -qrealsize=8 -qflttrap=ov:und:zero:inv:enable # Lines from here on down should not need to be changed. They are the # actual rules which make uses to build a.spcgrd. all: $(CMD) $(CMD): $(OBJS) $(CF) $(LDFLAGS) -o $(@) $(OBJS) $(LIBS) $(OBJS): $(SRCS) $(CF) $(FFLAGS) -c $< # Make the profiled version of the command and call it a.spcgrd.prof $(CMD).prof: $(OBJS) $(CF) $(LDFLAGS) -o $(@) $(OBJS) $(PROFLIB) $(LIBS) clean: -rm -f $(OBJS) *.mod copy_summ: cp summary.o.hold summary.o allclean: clean all clobber: clean -rm -f $(CMD) $(CMD).prof void: clobber -rm -f $(SRCS) makefile