+PATCH,$CORR. +DECK,CORR1. Updates version: 1.11/00 +REP,*TITLE*,TITLE,1. USDROP 1.11/03 13/02/97 17.34.50 +REP,$VERSION,V1_11,1-2. *CMZU: 1.11/03 13/02/97 17.34.50 by Rafik Ouared *CMZ : 1.11/02 03/06/96 10.08.43 by Unknown *CMZU: 1.11/01 16/12/95 17.46.08 by Curtis A. Meyer *CMZ : 1.11/00 23/08/95 14.07.50 by Curtis A. Meyer *-- Author : Curtis A. Meyer 23/08/95 *________________________________________________________________________ * *::> VERSION 1.11/03 13/02/97 17.34.50 * * *> update of installation script. * *::> VERSION 1.11/02 03/06/96 10.08.43 * *> update of installation script for solaris * *::> VERSION 1.11/01 16/12/95 17.46.08 * *> Allow the user to disable the primary veryex requirement * on tracks by setting LVXREQ to .false. after usdini has * been called. +ADD,$KUMACS,INSTALL,0. *CMZU: 1.11/03 27/01/97 19.38.53 by M.T. Lakata *CMZU: 1.11/02 29/05/96 18.29.50 by F.-H.Heinsius +REP,$KUMACS,INSTALL,11. Macro INSTALL src=X +REP,$KUMACS,INSTALL,27-48. goto help Endif If [src]='?' Then goto help Endif * * CODEDIR Source code directory * message Putting source code files in [src] * * set defaults * BUILDLEVEL = LIB DEBUGFLAG = FALSE TEXTFLAG = FALSE INCFLAG = FALSE GNUFLAG = FALSE cbdropversion = '' cboffversion = '' +REP,$KUMACS,INSTALL,55-90. Case $Upper([%I]) In (DBG_DROP) Select DBG_DROP (DBG_KFIT) Select DBG_KFT4 (DBG_ALL) Select DBG_DROP Select DBG_KFT4 (DEBUG) DEBUGFLAG = TRUE message ' Debug print lines selected. ' (ALL) BUILDLEVEL = LIB OBJECTSTAT = KEEP (LIB) BUILDLEVEL = LIB (CAR) car cbdrop.car (SOURCE) BUILDLEVEL = SOURCE (OBJECT) BUILDLEVEL = OBJECT OBJECTSTAT = KEEP (TEXT) TEXTFLAG = TRUE (GNU) GNUFLAG = TRUE message ' Selecting g77 and gcc compilers. ' (INC) INCFLAG = TRUE message '* Creating #include files' (CBDROPVERSION:*) cbdropversion = $SUBSTRING([%I],15,100) message '* Extracting cbdrop version '//[cbdropversion] (CBOFFVERSION:*) cboffversion = $SUBSTRING([%I],14,100) message '* Extracting CBOFF version '//[cboffversion] (*) message '****************************************' message Error: Option $Upper([%I]) not understood. message '****************************************' FAIL = TRUE Endcase Enddo If [FAIL] = TRUE then goto help Endif if ([cbdropversion] .ne. '' .and. [cboffversion] = '' ) .or. ([cbdropversion] = '' .and. [cboffversion] .ne. '') then mess 'You must specific both CBDROPVERSION:x.xx/xx and CBOFFVERSION:y.yy/yy' exitm endif Message * Build Level = [BUILDLEVEL] +REP,$KUMACS,INSTALL,100-103. (VMS) Select VAX (UNIX) Select UNIX Select DECS Endcase (IBMRT) Select $OS (SGI) Select $OS (SOLARIS) Select SUN +REP,$KUMACS,INSTALL,113-124. cext = c ext = f Case $MACHINE In (IBM) ext = fortran (VAX) ext = for (ALPHA) Case $OS In (VMS) ext for (UNIX) ext f Endcase +REP,$KUMACS,INSTALL,131-153. if [OBJECTSTAT] = KEEP Then XACL = -XACLP else XACL = -XADCLP endif Case $OS In (UNIX) Set [SRC]/mkcbdrop_f.sh [XACL] Set libcbdrop.a -L (VMS) Set [SRC]mkcbdrop_f.com [XACL] Set CBDROP.OLB -L Endcase IF [INCFLAG] = TRUE Then Case $OS In (UNIX) set '#include "$SEQ.inc"' -INC F77 FileCase Keep ext = F (VMS) set ' INCLUDE 'CB$INC:$SEQ.INC'' -INC F77 Endcase Else set . -inc EndIf Case $OS In (UNIX) Set [SRC]/*.[ext] -F F77 set [SRC]/*.[cext] -F C (VMS) Set [SRC]*.[ext] -F F77 set [SRC]*.[cext] -F C Endcase +REP,$KUMACS,INSTALL,160. (HPUX,SGI,SUN,DECS,IBMRT,SOLARIS) DEBUGOPT=' -g -C' +REP,$KUMACS,INSTALL,168-216. Case $OS In (VMS) DEBUGOPT=' ' (UNIX) DEBUGOPT=' -O ' Endcase Endif * * choose fortran compiler options and other stuff * If [GNUFLAG] = TRUE THEN Set '`which g77` -c'//[DEBUGOPT]//' -w $compfile' -C f77 Set '`which gcc` -c'//[DEBUGOPT]//' -w $compfile' -C C else Case $MACHINE In (HPUX) Set 'f77 -c'//[DEBUGOPT]//' +ppu $compfile' -C f77 Set 'cc -c -w '//[DEBUGOPT]//' $compfile' -C C (SUN) Set 'f77 -c'//[DEBUGOPT]//' -fnonstd -Nl100 -w $compfile' -C f77 Set 'gcc -c'//[DEBUGOPT]//' -w $compfile' -C C (SOLARIS) Set 'f77 -c'//[DEBUGOPT]//' -w $compfile' -C f77 Set 'gcc -c'//[DEBUGOPT]//' -w $compfile' -C C (IBMRT) Set 'xlf -c'//[DEBUGOPT]//' -qextname $compfile' -C f77 Set 'cc -c -w '//[DEBUGOPT]//' $compfile' -C C (SGI) Set 'f77 -c'//[DEBUGOPT]//' $compfile G 3' -C f77 Set 'cc -c -w '//[DEBUGOPT]//' $compfile' -C C (DECS) Set 'f77 -c -w -Nl99 '//[DEBUGOPT]//' $compfile' -C f77 Set 'cc -c -w '//[DEBUGOPT]//' $compfile' -C C (VAX) Set 'FOR/OBJ=$compfile.OBJ'//[DEBUGOPT]//' $compfile' -C f77 Set 'CC/OBJ=$compfile.obj'//[DEBUGOPT]//' $compfile' -C C * (ALPHA) Case $OS In (VMS) Set 'FOR/SEPAR/OBJ=$compfile.OBJ'//[DEBUGOPT]//' $compfile' -C f77 Set 'CC/OBJ=$compfile.obj'//[DEBUGOPT]//' $compfile' -C C (UNIX) Set 'f77 -c -w -Nl99 '//[DEBUGOPT]//' $compfile' -C f77 Set 'cc -c -w '//[DEBUGOPT]//' $compfile' -C C Endcase * Endcase endif * * seq . if [cbdropversion] = '' then Sequence //cbdrop/dropcomm else Sequence -V [cbdropversion] //cbdrop/dropcomm endif * extract in include files if ([INCFLAG] = TRUE) Then Case $OS In (UNIX) CBINC = $env(CBINC)/ (VAX) CBINC = CBINC: EndCase if ( .not. ($FEXIST([CBINC]) =1)) then mess Directory [CBINC] does not exist. mess Please set CBINC environment variable properly. exitm endif seq -f [cbinc]*.inc mess CBDROP Sequences written as include files in CBINC = $ENV(CBINC) Endif if [cboffversion] = '' then Sequence //cboff/commcb else Sequence -V [cboffversion] //cboff/commcb endif * * make the library... * set F77 -LAN Cd //cbdrop Case [BUILDLEVEL] In (NONE) message 'no code extracted' (SOURCE) if [cbdropversion] = '' then Cxtract * else Cxtract -V [cbdropversion] * endif Message * fortran code extracted (OBJECT) if [cbdropversion] = '' then Ccompile * else Ccompile -V [cbdropversion] * endif Message * fortran objects created (LIB) if [cbdropversion] = '' then Clib * else Clib -V [cbdropversion] * endif Message * fortran library created EndCase +REP,$KUMACS,INSTALL,232-236. Case [BUILDLEVEL] In (LIB) CASE ( $OS ) IN (UNIX) Mess * libcbdrop.a - the object library * (VMS) Mess * cbdrop.olb - the object library * ENDCASE mess * - The source and object files * (OBJECT) mess * - The source and object files * (SOURCE) mess * - The source code files * (NONE) mess * - nothing * mess * --> Perhaps you want to use the LIB option? * mess * --> Use "cmz -install cbdrop" for help * EndCase If ([OBJECTSTAT] = DELETE .and. [BUILDLEVEL] = LIB ) Then Mess * Object code was not kept. * Endif If [INCFLAG] = TRUE Then Mess * * mess * You may want to delete *.inc from SRC dir, since * mess * they are also in CBINC * +REP,$KUMACS,INSTALL,244. exitm Help: mess 'Command template:' mess 'UNIX: cmz -install cbdrop [