********> bugfix.12 Author: Dave Case Date: 12/12/97 Programs: roar Severity: won't compile correctly on HP, maybe other machines Description: System dependent routines need to be correctly referenced Fix: Make the following changes to sys.F and Makefile in src/roar Changes to sys.F: *** old, version 5.0 --- new *************** *** 17,44 **** ! !----------------------------------------------------------------------- SUBROUTINE GET_TIME(TIM) ! ! ! ! unix f77 version ! ! ! ! use etime() for elapsed time from start of execution ! ! use dtime() for delta time from last call to dtime() ! ! ! real dumm(2),tim ! ! ! #ifdef CRAY ! logical first ! data first /.true./ ! save first ! save timestart ! ! if(first)then ! timestart = secondr() ! first = .false. ! endif ! tim = secondr()-timestart ! #else ! tim = etime(dumm) ! #endif return end --- 17,30 ---- ! !----------------------------------------------------------------------- SUBROUTINE GET_TIME(TIM) ! real tim ! double precision timd ! call second(timd) ! tim = timd ! return ! end ! subroutine fdate( string ) ! character*30 string return end Changes to Makefile: *** old, version 5.0 --- new *************** *** 1,5 **** SHELL = /bin/sh ! INSTALLDIR = ../../mips4_exe CPDIR = ./src_CP NOCPDIR = ./src_NOCP CPTEST = $(CPDIR)/make.test --- 1,5 ---- SHELL = /bin/sh ! INSTALLDIR = ../../exe CPDIR = ./src_CP NOCPDIR = ./src_NOCP CPTEST = $(CPDIR)/make.test *************** *** 43,60 **** install: $(PROG) $(PROG-CP) cp $(PROG) $(PROG-CP) $(INSTALLDIR) ! $(PROG): $(NOCP-OBJS) $(OBJS) ! ../Compile LOAD -o $(PROG) $(NOCP-OBJS) $(OBJS) ! $(PROG-CP): $(CP-OBJS) $(OBJS) cd mop7mm ; make $(LIBNAME) ! ../Compile LOAD -o $(PROG-CP) $(CP-OBJS) $(OBJS) $(LIBS) $(CP-OBJS): cd $(CPDIR) ; make $(NOCP-OBJS): cd $(NOCPDIR) ; make clean: rm -f $(PROG) $(PROG-CP) $(OBJS) --- 43,66 ---- install: $(PROG) $(PROG-CP) cp $(PROG) $(PROG-CP) $(INSTALLDIR) ! $(PROG): $(NOCP-OBJS) $(OBJS) syslib ! SYSLIB=`../sysdir lib` ; ../Compile LOAD -o $(PROG) \ ! $(NOCP-OBJS) $(OBJS) $$SYSLIB; ! $(PROG-CP): $(CP-OBJS) $(OBJS) syslib cd mop7mm ; make $(LIBNAME) ! SYSLIB=`../sysdir lib` ; ../Compile LOAD -o $(PROG-CP) \ ! $(CP-OBJS) $(OBJS) $(LIBS) $$SYSLIB; $(CP-OBJS): cd $(CPDIR) ; make $(NOCP-OBJS): cd $(NOCPDIR) ; make + + syslib: + ( SYSDIR=`../sysdir dir` ; echo sysdir is $$SYSDIR ; \ + cd $$SYSDIR ; make sys.a ) clean: rm -f $(PROG) $(PROG-CP) $(OBJS)