]> OCCT Git - occt-wok.git/commitdiff
No comments
authorcas <cas@opencascade.com>
Mon, 7 Feb 2000 18:00:50 +0000 (18:00 +0000)
committercas <cas@opencascade.com>
Mon, 7 Feb 2000 18:00:50 +0000 (18:00 +0000)
src/WOKBuilderDef/CMPLRS.edl
src/WOKBuilderDef/LDSHR.edl
src/WOKBuilderDef/LINKSHR.edl

index 667daa3b663d41b556ec51fabd4602395fea3676..9096e94048105f606d52f5bb1ee09ffd5c4d2bbe 100755 (executable)
 -- History:    Mon Feb 19 12:04:00 1996        Jean GAUTIER    Creation
 -- Copyright:   Matra Datavision 1996
 
+@ifnotdefined ( %CMPLRS_EDL ) then
+ @set %CMPLRS_EDL = "";
 
+ @set %CMPLRS_C_Template     = "CmdLine";
+ @set %CMPLRS_CXX_Template   = "CmdLine";
+ @set %CMPLRS_F77_Template   = "CmdLine";
+ @set %CMPLRS_C_Extensions   = "toto.c";
+ @set %CMPLRS_F77_Extensions = "toto.f ";
+ @set %CMPLRS_Tools          = "CMPLRS_C CMPLRS_CXX CMPLRS_F77";
 
-@ifnotdefined ( %CMPLRS_EDL ) then
-@set %CMPLRS_EDL = "";
+ @if ( %Station == "wnt" ) then
+  @set %CMPLRS_CXX_Extensions = "toto.cxx toto.cpp";
 
-@set %CMPLRS_C_Template     = "CmdLine";
-@set %CMPLRS_C_Extensions   = "toto.c";
+  @template CMPLRS_C_Production ( %OutputDir, %BaseName ) is
+  $ %BaseName.obj %BaseName.m
+  @end;
 
-@set %CMPLRS_Tools = "CMPLRS_C CMPLRS_CXX";
+  @template CMPLRS_CXX_Production ( %OutputDir, %BaseName ) is
+  $ %BaseName.obj %BaseName.m
+  @end;
 
-@if ( %Station == "wnt" ) then
+  @template CMPLRS_F77_Production ( %OutputDir, %BaseName ) is
+  $ %BaseName.obj %BaseName.m
+  @end;
+ @else
+  @set %CMPLRS_CXX_Extensions = "toto.cxx toto.C";
 
-       @set %CMPLRS_CXX_Extensions = "toto.cxx toto.cpp";
-       @template CMPLRS_C_Production ( %OutputDir, %BaseName ) is
-       $ %BaseName.obj %BaseName.m
-       @end;
-       @template CMPLRS_CXX_Production ( %OutputDir, %BaseName ) is
-       $ %BaseName.obj %BaseName.m
-       @end;
-@else
+  @template CMPLRS_C_Production ( %OutputDir, %BaseName ) is
+  $ %BaseName.o %BaseName.m
+  @end;
 
-        @string %CMPLRS_Tools += " CMPLRS_F77";
+  @template CMPLRS_CXX_Production ( %OutputDir, %BaseName ) is
+  $ %BaseName.o %BaseName.m
+  @end;
 
-       @set %CMPLRS_F77_Template = "CmdLine";
+  @template CMPLRS_F77_Production ( %OutputDir, %BaseName ) is
+  $ %BaseName.o %BaseName.m
+  @end;
+ @endif;
 
-       @set %CMPLRS_CXX_Extensions = "toto.cxx toto.C";
+ @template CMPLRS_IncDirective (%IncDirectory) is
+ $ -I%IncDirectory \
+ @end;
 
-       @template CMPLRS_C_Production ( %OutputDir, %BaseName ) is
-       $ %BaseName.o %BaseName.m
-       @end;
-       @template CMPLRS_CXX_Production ( %OutputDir, %BaseName ) is
-       $ %BaseName.o %BaseName.m
-       @end;
-       @set %CMPLRS_F77_Extensions = "toto.f ";
-       @template CMPLRS_F77_Production ( %OutputDir, %BaseName ) is
-       $ %BaseName.o %BaseName.m
-       @end;
-@endif;
+ @if (%DBMS == "DFLT") then
+  @set %DBMSOpt = "-DCSFDB";
+ @endif;
 
-@set %CMPLRS_CXX_Template   = "CmdLine";
+ @ifnotdefined ( %DebugMode ) then
+  @set %DebugMode = "False";
+ @endif;
 
--- Definition du Template -I
---
+ @if ( %Station != "wnt" ) then
+  @template CMPLRS_F77_OptLine (
+             %CMPLRS_F77_Command, %CMPLRS_F77_Options, %CMPLRS_F77_ModeOpt, %IncDirectives
+            ) is
+  $F77 compiler: \^
+  $%CMPLRS_F77_Command %CMPLRS_F77_Options   %CMPLRS_F77_ModeOpt \
+  $%IncDirectives -c <Source.f> -o <Object.o>
+  @end;
 
-@template CMPLRS_IncDirective (%IncDirectory) is
-$ -I%IncDirectory \
-@end;
+  @template CMPLRS_F77_CmdLine (
+             %CMPLRS_F77_Command, %CMPLRS_F77_Options, %CMPLRS_F77_ModeOpt,
+             %IncDirectives, %Source,  %BaseName, %OutputDir, %TmpFile
+            ) is 
+  $%CMPLRS_F77_Command %CMPLRS_F77_ModeOpt %CMPLRS_F77_Options -c %Source -o %OutputDir/%BaseName.o
+  $set cmplrs_status = $status
+  $if ( $status == 0 ) then
+  $ touch %OutputDir/%BaseName.m
+  $endif
+  @end;
+ @endif;
+
+--      #####  #     # #     #      --
+--     #     # #     # ##    #      --
+--     #       #     # # #   #      --
+--      #####  #     # #  #  #      --
+--           # #     # #   # #      --
+--     #     # #     # #    ##      --
+--      #####   #####  #     #      --
 
-@if( %Station == "sun" ) then
+
+ @if ( %Station == "sun" ) then
   @template CMPLRS_DBDirective (%DBDirectory) is
-    $ -ptr%DBDirectory \
+  $ -ptr%DBDirectory \
   @end;
-@endif;
 
-@if( %Station == "ao1" ) then
-  @template CMPLRS_DBDirective (%DBDirectory) is
-    $ -ptr%DBDirectory/cxx_repository \
+  @if ( %DebugMode == "True" ) then
+   @set %CMPLRS_CXX_ModeOpt = "-g0 -DDEB +w";
+   @set %CMPLRS_C_ModeOpt   = "-g0 -DDEB +w";
+   @set %CMPLRS_F77_ModeOpt = "-g";
+  @endif;
+
+  @if ( %DebugMode == "False" ) then
+   @set %CMPLRS_CXX_ModeOpt = "-O2 -DNo_Exception +w ";
+   @set %CMPLRS_C_ModeOpt   = "-O2 -DNo_Exception +w ";
+   @set %CMPLRS_F77_ModeOpt = "-O2";
+  @endif;
+
+  @set %CMPLRS_F77_Command = "f77 ";
+  @set %CMPLRS_F77_Options = "-PIC";
+
+  @if ( %DBMS == "OBJS" ) then
+   @set %CMPLRS_CXX_DBMSOpt = "-mt -vdelx -DOBJS -I/PRODUCTS/OS5.0/sunpro/include";
+  @endif;
+
+  @if ( %DBMS == "DFLT" ) then
+   @set %CMPLRS_CXX_DBMSOpt = "-mt -vdelx -DCSFDB";
+  @endif;
+
+  @set %CMPLRS_C_Command = "/opt/DEV5_1/SUNWspro/bin/cc -K PIC";
+  @set %CMPLRS_C_Options = "-Usun -DSOLARIS";
+
+  @template CMPLRS_C_OptLine (
+             %CMPLRS_C_Command, %CMPLRS_C_Options, %CMPLRS_C_ModeOpt, %IncDirectives
+            ) is
+  $C compiler: \^
+  $%CMPLRS_C_Command %CMPLRS_C_Options %CMPLRS_C_ModeOpt \
+  $%IncDirectives -c <Source.c> -o <Object.o>
   @end;
-@endif;
 
-@if( %Station == "hp" ) then
+  @template CMPLRS_C_CmdLine (
+             %CMPLRS_C_Command, %CMPLRS_C_Options, %CMPLRS_C_ModeOpt, %IncDirectives,
+             %DBDirectives, %Source, %BaseName, %OutputDir, %TmpFile
+            ) is
+  $%CMPLRS_C_Command %CMPLRS_C_Options %DBDirectives %CMPLRS_C_ModeOpt %IncDirectives -c %Source -o %OutputDir/%BaseName.o
+  $set stat = $status
+  $if ( $stat == 0 ) then
+  $ cpp  %IncDirectives %CMPLRS_C_Options -M  %Source \^
+  $      | sed -e '1d' -e 's/.*://g' -e 's/[    *]*//g' -e 's%/./%/%g' -e 's%//%/%g' \^
+  $      | sort -u  >  %OutputDir/%BaseName.m
+  $endif
+  $set status = $stat
+  @end;
+
+  @set %CMPLRS_CXX_Command = "/opt/DEV5_1/SUNWspro/bin/CC -PIC ";
+  @set %CMPLRS_CXX_Options = "-xchip=ultra -xarch=v8 -Usun -DSOLARIS -DNO_CXX_EXCEPTION ";
+
+  @template CMPLRS_CXX_OptLine (
+             %CMPLRS_CXX_Command, %CMPLRS_CXX_Options, %CMPLRS_CXX_ModeOpt,
+             %CMPLRS_CXX_DBMSOpt, 
+             %IncDirectives,  %DBDirectives
+            ) is
+  $C++ compiler: \^
+  $%CMPLRS_CXX_Command %CMPLRS_CXX_Options  %CMPLRS_CXX_DBMSOpt %CMPLRS_CXX_ModeOpt \
+  $ -I/opt/DEV5_1/SUNWspro/SC4.2/include/CC \
+  $ -I/PRODUCTS/java/jdk1.2/include         \
+  $ -I/PRODUCTS/java/jdk1.2/include/solaris \
+  $%IncDirectives %DBDirectives -H -c <Source.cxx> -o <Object.o> > &<tmp_file>
+  @end;
+
+  @template CMPLRS_CXX_CmdLine (
+             %CMPLRS_CXX_Command, %CMPLRS_CXX_Options, %CMPLRS_CXX_ModeOpt,
+             %CMPLRS_CXX_DBMSOpt, %IncDirectives, %DBDirectives, %Source,
+             %BaseName, %OutputDir, %TmpFile
+            ) is 
+  $%CMPLRS_CXX_Command %CMPLRS_CXX_Options  \
+  $ -I/opt/DEV5_1/SUNWspro/SC4.2/include/CC \
+  $ -I/PRODUCTS/java/jdk1.2/include         \
+  $ -I/PRODUCTS/java/jdk1.2/include/solaris \
+  $%CMPLRS_CXX_DBMSOpt %CMPLRS_CXX_ModeOpt %IncDirectives %DBDirectives -H \
+  $-c %Source -o %OutputDir/%BaseName.o >& %TmpFile
+  $set stat = $status
+  $if ( $stat == 0 ) then
+  $  sed -e 's/        //g' -e '/Compilation failed/d' -e '/:/d' -e 's%/\./%/%g'  -e 's%//%/%g' %TmpFile \^
+  $| grep -v 'detected.$' | sort -u  > %OutputDir/%BaseName.m
+  $endif
+  $if( -e %TmpFile ) grep ':' %TmpFile 
+  $/bin/rm -f %TmpFile
+  $set status = $stat
+  @end;
+ @endif;
+
+--     ######  #######  #####      --
+--     #     # #       #     #     --
+--     #     # #       #           --
+--     #     # #####   #           --
+--     #     # #       #           --
+--     #     # #       #     #     --
+--     ######  #######  #####      --
+
+ @if ( %Station == "ao1" ) then
   @template CMPLRS_DBDirective (%DBDirectory) is
-    $ -ptr%DBDirectory/ptrepository \
+  $ -ptr%DBDirectory/cxx_repository \
   @end;
-@endif;
 
-@if (%DBMS == "DFLT") then
-@set %DBMSOpt = "-DCSFDB";
-@endif;
+  @set %CMPLRS_F77_Command = "f77 ";
+  @set %CMPLRS_F77_Options = "-PIC";
 
-@ifnotdefined ( %DebugMode ) then
-@set %DebugMode = "False";
-@endif;
+  @if ( %DebugMode == "True" ) then
+   @set %CMPLRS_CXX_ModeOpt = "-g -DDEB";
+   @set %CMPLRS_C_ModeOpt   = "-g -DDEB";
+   @set %CMPLRS_F77_ModeOpt = "-g";
+  @endif;
 
-@template CMPLRS_F77_OptLine ( %CMPLRS_F77_Command, %CMPLRS_F77_Options, %CMPLRS_F77_ModeOpt, %IncDirectives ) is
+  @if ( %DebugMode == "False" ) then
+   @set %CMPLRS_CXX_ModeOpt = "-O3 -DNo_Exception ";
+   @set %CMPLRS_C_ModeOpt   = "-O3 -DNo_Exception ";
+   @set %CMPLRS_F77_ModeOpt = "-O3";
+  @endif; 
 
-  $F77 compiler: \^
-  $%CMPLRS_F77_Command %CMPLRS_F77_Options   %CMPLRS_F77_ModeOpt \
-  $%IncDirectives -c <Source.f> -o <Object.o>
-@end;
+  @if ( %DBMS == "OBJS" ) then
+   @set %CMPLRS_CXX_DBMSOpt = "-DOBJS -I/PRODUCTS/OS5.0/include";
+  @endif;
 
-@template CMPLRS_F77_CmdLine ( %CMPLRS_F77_Command, %CMPLRS_F77_Options, %CMPLRS_F77_ModeOpt, %IncDirectives, 
-                              %Source,  %BaseName, %OutputDir, %TmpFile ) is 
-  $%CMPLRS_F77_Command %CMPLRS_F77_ModeOpt %CMPLRS_F77_Options -c %Source -o %OutputDir/%BaseName.o
+  @if ( %DBMS == "DFLT" ) then
+   @set %CMPLRS_CXX_DBMSOpt = "-DCSFDB";
+  @endif;
+
+  @set %CMPLRS_C_Command = "cc";
+  @set %CMPLRS_C_Options = "-DDECOSF1";
+
+  @template CMPLRS_C_OptLine (
+             %CMPLRS_C_Command, %CMPLRS_C_Options, %CMPLRS_C_ModeOpt, %IncDirectives
+            ) is
+  $C compiler: \^
+  $%CMPLRS_C_Command %CMPLRS_C_ModeOpt  %CMPLRS_C_Options \
+  $%IncDirectives -c <Source.c> -o <Object.o>
+  @end;
+       
+  @template CMPLRS_C_CmdLine (
+             %CMPLRS_C_Command, %CMPLRS_C_Options, %CMPLRS_C_ModeOpt,
+             %IncDirectives, %Source, %BaseName, %OutputDir, %TmpFile
+            ) is
+  $%CMPLRS_C_Command %CMPLRS_C_Options %CMPLRS_C_ModeOpt %IncDirectives -c %Source -o %OutputDir/%BaseName.o
   $set cmplrs_status = $status
   $if ( $status == 0 ) then
-  $ touch %OutputDir/%BaseName.m
+  $ cpp %IncDirectives -M %CMPLRS_C_Options %Source \^
+  $| sed -e '1d' -e 's/.*://g' -e 's/[  *]*//g' -e 's%/\./%/%g' |  sort -u  >  %OutputDir/%BaseName.m 
   $endif
-@end;
-
-
--- Templates SUN/Solaris 2.4 Sparc Compilers 3.1
-
-@if ( %Station == "sun" ) then
-
-       @if ( %DebugMode == "True" ) then
-               @set %CMPLRS_CXX_ModeOpt = "-g0 -DDEB";
-               @set %CMPLRS_C_ModeOpt   = "-g0 -DDEB";
-               @set %CMPLRS_F77_ModeOpt = "-g";
-       @endif;
-
-
-       @if ( %DebugMode == "False" ) then
-               @set %CMPLRS_CXX_ModeOpt = "-O2 -DNo_Exception ";
-               @set %CMPLRS_C_ModeOpt   = "-O2 -DNo_Exception ";
-               @set %CMPLRS_F77_ModeOpt = "-O2";
-       @endif;
-
-       -- Options du Fortran 77
-       @set %CMPLRS_F77_Command = "f77 ";
-       @set %CMPLRS_F77_Options = "-PIC";
-
-       @if ( %DBMS == "OBJS" ) then
-               @set %CMPLRS_CXX_DBMSOpt = "-mt -vdelx -DOBJS -I/PRODUCTS/OS5.0/sunpro/include";
-       @endif;
-
-       @if ( %DBMS == "DFLT" ) then
-               @set %CMPLRS_CXX_DBMSOpt = "-mt -vdelx -DCSFDB";
-       @endif;
-
-       @set %CMPLRS_C_Command = "/opt/DEV5_1/SUNWspro/bin/cc -K PIC";
-       @set %CMPLRS_C_Options = "-Usun -DSOLARIS";
-
-       @template CMPLRS_C_OptLine ( %CMPLRS_C_Command, %CMPLRS_C_Options, %CMPLRS_C_ModeOpt, %IncDirectives ) is
-
-         $C compiler: \^
-         $%CMPLRS_C_Command %CMPLRS_C_Options %CMPLRS_C_ModeOpt \
-         $%IncDirectives -c <Source.c> -o <Object.o>
-       @end;
-
-       @template CMPLRS_C_CmdLine ( %CMPLRS_C_Command, %CMPLRS_C_Options, %CMPLRS_C_ModeOpt, 
-                                       %IncDirectives, %DBDirectives, %Source, %BaseName, %OutputDir, %TmpFile ) is
-
-         $%CMPLRS_C_Command %CMPLRS_C_Options %DBMSOpt %ModeOpt %IncDirectives -c %Source -o %OutputDir/%BaseName.o
-         $set stat = $status
-         $if ( $stat == 0 ) then
-         $     cpp  %IncDirectives %CMPLRS_C_Options -M  %Source \^
-         $            | sed -e '1d' -e 's/.*://g' -e 's/[       *]*//g' -e 's%/./%/%g' -e 's%//%/%g' \^
-         $            | sort -u  >  %OutputDir/%BaseName.m
-         $endif
-         $set status = $stat
-       @end;
-
-       @set %CMPLRS_CXX_Command = "/opt/DEV5_1/SUNWspro/bin/CC -PIC ";
-       @set %CMPLRS_CXX_Options = "-xchip=ultra -xarch=v8 -Usun -DSOLARIS -DNO_CXX_EXCEPTION ";
-
-       @template CMPLRS_CXX_OptLine ( %CMPLRS_CXX_Command, %CMPLRS_CXX_Options, %CMPLRS_CXX_ModeOpt, %CMPLRS_CXX_DBMSOpt, 
-                                       %IncDirectives,  %DBDirectives) is
-
-         $C++ compiler: \^
-         $%CMPLRS_CXX_Command %CMPLRS_CXX_Options  %CMPLRS_CXX_DBMSOpt %CMPLRS_CXX_ModeOpt -I/opt/DEV5_1/SUNWspro/SC4.2/include/CC \
-         $%IncDirectives %DBDirectives -c <Source.cxx> -o <Object.o>
-       @end;
-
-       @template CMPLRS_CXX_CmdLine ( %CMPLRS_CXX_Command, %CMPLRS_CXX_Options, %CMPLRS_CXX_ModeOpt, %CMPLRS_CXX_DBMSOpt,
-                                        %IncDirectives, %DBDirectives, %Source,  %BaseName, %OutputDir, %TmpFile ) is 
-         $%CMPLRS_CXX_Command %CMPLRS_CXX_Options -I/opt/DEV5_1/SUNWspro/SC4.2/include/CC \^
-         $   %CMPLRS_CXX_DBMSOpt %CMPLRS_CXX_ModeOpt %IncDirectives %DBDirectives -H -c %Source -o %OutputDir/%BaseName.o >& %TmpFile
-         $set stat = $status
-         $if ( $stat == 0 ) then
-         $  sed -e 's/ //g' -e '/Compilation failed/d' -e '/:/d' -e 's%/\./%/%g'  -e 's%//%/%g' %TmpFile \^
-         $        | grep -v 'detected.$' | sort -u  > %OutputDir/%BaseName.m
-         $endif
-         $if( -e %TmpFile ) grep ':' %TmpFile 
-         $#/bin/rm -f %TmpFile
-         $set status = $stat
-       @end;
+  $set status = $cmplrs_status
+  @end;
 
-       
+  @set %CMPLRS_CXX_Command = "/usr/bin/cxx -shared -D__STDC__";
+  @set %CMPLRS_CXX_Options = "-I/usr/include/cxx -DDECOSF1";
 
-@endif;
+  @template CMPLRS_CXX_OptLine (
+             %CMPLRS_CXX_Command, %CMPLRS_CXX_Options, %CMPLRS_CXX_ModeOpt,
+             %CMPLRS_CXX_DBMSOpt, %IncDirectives, %DBDirectives
+            ) is
+  $C++ compiler: \^
+  $%CMPLRS_CXX_Command %CMPLRS_CXX_Options %CMPLRS_CXX_DBMSOpt %CMPLRS_CXX_ModeOpt \
+  $%IncDirectives %DBDirectives -c <Source.cxx> -o <Object.o>
+  @end;
+
+  @template CMPLRS_CXX_CmdLine (
+             %CMPLRS_CXX_Command, %CMPLRS_CXX_Options, %CMPLRS_CXX_ModeOpt,
+             %CMPLRS_CXX_DBMSOpt, %IncDirectives, %DBDirectives, %Source,
+             %BaseName, %OutputDir, %TmpFile
+            ) is
+  $cd %OutputDir
+  $%CMPLRS_CXX_Command %CMPLRS_CXX_Options %CMPLRS_CXX_DBMSOpt %CMPLRS_CXX_ModeOpt %IncDirectives -M -c %Source -o %Object  \^
+  $  |  sed -e '1d' -e 's/.*://g' -e 's/[     *]*//g' > %TmpFile
+  $%CMPLRS_CXX_Command %CMPLRS_CXX_Options %IncDirectives %DBDirectives %CMPLRS_CXX_DBMSOpt %CMPLRS_CXX_ModeOpt -c %Source -o  %OutputDir/%BaseName.o
+  $set cmplrs_status = $status
+  $if ( $cmplrs_status  == 0 ) then
+  $ sed -e 's/ //g' -e '/Compilation failed/d' -e '/:/d' -e 's%/\./%/%g' -e 's%//%/%g' %TmpFile \^
+  $| sort -u > %OutputDir/%BaseName.m
+  $endif
+  $rm %TmpFile
+  $set status = $cmplrs_status
+  @end;
+ @endif;
+
+--      #####    ###   #           --
+--     #     #    #    #           --
+--     #          #    #           --
+--      #####     #    #           --
+--           #    #    #           --
+--     #     #    #    #           --
+--      #####    ###   #######     --
+
+ @if ( %Station == "sil" ) then
+  @set %CMPLRS_F77_Command = "f77 ";
+  @set %CMPLRS_F77_Options = "-n32 -mips3";
+
+  @if ( %DebugMode == "True" ) then
+   @set %CMPLRS_CXX_ModeOpt = "-g -gslim -DDEB";
+   @set %CMPLRS_C_ModeOpt   = "-g -gslim -DDEB";
+   @set %CMPLRS_F77_ModeOpt = "-g";
+  @endif;
+
+  @if ( %DebugMode == "False" ) then
+   @set %CMPLRS_CXX_ModeOpt = "-O3 -DNo_Exception  -D__INLINE_INTRINSICS -TARG:processor=R10000 ";
+   @set %CMPLRS_C_ModeOpt   = "-O3 -DNo_Exception -TARG:processor=R10000 ";
+   @set %CMPLRS_F77_ModeOpt = "-O3";
+  @endif;
 
---
--- Templates Dec/OSF1 V3.2 Cxx V1.3
---
+  @if ( %DBMS == "OBJS" ) then
+   @set %CMPLRS_CXX_DBMSOpt = "-DOBJS -I/PRODUCTS/OS5.0/include";
+  @endif;
 
-@if ( %Station == "ao1" ) then
+  @if ( %DBMS == "DFLT" ) then
+   @set %CMPLRS_CXX_DBMSOpt = "-DCSFDB";
+  @endif;
 
-       -- Options du Fortran 77
-       @set %CMPLRS_F77_Command = "f77 ";
-       @set %CMPLRS_F77_Options = "-PIC";
+  @set %CMPLRS_C_Command = "cc -signed -n32 -mips3 ";
+  @set %CMPLRS_C_Options = "-DIRIX";
 
-       @if ( %DebugMode == "True" ) then
-         @set %CMPLRS_CXX_ModeOpt = "-g -DDEB";
-         @set %CMPLRS_C_ModeOpt   = "-g -DDEB";
-         @set %CMPLRS_F77_ModeOpt = "-g";
-       @endif;
+  @template CMPLRS_C_OptLine  (
+             %CMPLRS_C_Command, %CMPLRS_C_Options, %CMPLRS_C_ModeOpt, %IncDirectives
+            ) is
+  $C compiler: \^
+  $%CMPLRS_C_Command %CMPLRS_C_ModeOpt %CMPLRS_C_Options \
+  $%IncDirectives -c <Source.c> -o <Object.o>
+  @end;
 
-       @if ( %DebugMode == "False" ) then
-         @set %CMPLRS_CXX_ModeOpt = "-O3 -DNo_Exception ";
-         @set %CMPLRS_C_ModeOpt   = "-O3 -DNo_Exception ";
-         @set %CMPLRS_F77_ModeOpt = "-O3";
-       @endif; 
+  @template CMPLRS_C_CmdLine (
+             %CMPLRS_C_Command, %CMPLRS_C_Options, %CMPLRS_C_ModeOpt,
+             %IncDirectives, %Source, %BaseName, %OutputDir, %TmpFile
+            ) is
+  $%CMPLRS_C_Command %CMPLRS_C_Options %IncDirectives %CMPLRS_C_ModeOpt -c %Source -o %OutputDir/%BaseName.o
+  $set cmplrs_status = $status
+  $if ( $cmplrs_status == 0 ) then
+  $ /usr/lib/cpp %CMPLRS_C_Options %IncDirectives -M -DIRIX %Source | \^
+  $ sed -e '1d' -e 's/.*://g' -e 's/[   *]*//g' -e 's%/./%/%g' -e 's+//+/+g' |  sort -u  >  %OutputDir/%BaseName.m 
+  $endif
+  $set status = $cmplrs_status
+  @end;
 
-       @if ( %DBMS == "OBJS" ) then
-         @set %CMPLRS_CXX_DBMSOpt = "-DOBJS -I/PRODUCTS/OS5.0/include";
-       @endif;
+  @set %CMPLRS_CXX_Command = "/usr/bin/CC -signed -n32 -mips3 -no_prelink -woff 3115 -woff 3273 -woff 1021 -woff 1188";
+  @set %CMPLRS_CXX_Options = "-I/usr/include/CC -DIRIX -DNO_CXX_EXCEPTION";
 
-       @if ( %DBMS == "DFLT" ) then
-         @set %CMPLRS_CXX_DBMSOpt = "-DCSFDB";
-       @endif;
+  @template CMPLRS_CXX_OptLine (
+             %CMPLRS_CXX_Command, %CMPLRS_CXX_Options, %CMPLRS_CXX_ModeOpt,
+             %CMPLRS_CXX_DBMSOpt, %IncDirectives, %DBDirectives
+            ) is
+  $C++ compiler: \^
+  $%CMPLRS_CXX_Command %CMPLRS_CXX_Options %CMPLRS_CXX_DBMSOpt %CMPLRS_CXX_ModeOpt \
+  $%IncDirectives %DBDirectives -MDupdate -c <Source.cxx> -o <Object.o>
+  @end;
 
-       @set %CMPLRS_C_Command = "cc";
-       @set %CMPLRS_C_Options = "-DDECOSF1";
+  @template CMPLRS_CXX_CmdLine (
+             %CMPLRS_CXX_Command, %CMPLRS_CXX_Options, %CMPLRS_CXX_ModeOpt,
+             %CMPLRS_CXX_DBMSOpt, %IncDirectives, %DBDirectives, %Source,
+             %BaseName, %OutputDir, %TmpFile
+            ) is
+  $%CMPLRS_CXX_Command %CMPLRS_CXX_Options %CMPLRS_CXX_DBMSOpt %CMPLRS_CXX_ModeOpt \
+  $ %IncDirectives %DBDirectives -MDupdate %TmpFile \
+  $  -c %Source -o %OutputDir/%BaseName.o
+  $set stat = $status
+  $if ( $stat == 0 ) then
+  $ if ( -e %TmpFile ) then
+  $  cat %TmpFile  | tr ' ' '\012' | sed  -e '1d' -e 's%/./%/%g' | grep -v '^#'| sort -u > %OutputDir/%BaseName.m
+  $ else
+  $  touch %OutputDir/%BaseName.m
+  $ endif
+  $endif
+  $ /bin/rm -f %TmpFile
+  $endif
+  $set status = $stat
+  @end;
+ @endif;
 
-       @template CMPLRS_C_OptLine ( %CMPLRS_C_Command, %CMPLRS_C_Options, %CMPLRS_C_ModeOpt, %IncDirectives ) is
-         $C compiler: \^
-         $%CMPLRS_C_Command %CMPLRS_C_ModeOpt  %CMPLRS_C_Options \
-         $%IncDirectives -c <Source.c> -o <Object.o>
-       @end;
-       
-       @template CMPLRS_C_CmdLine ( %CMPLRS_C_Command, %CMPLRS_C_Options, %CMPLRS_C_ModeOpt,
-                                       %IncDirectives, %Source, %BaseName, %OutputDir, %TmpFile ) is
-
-         $%CMPLRS_C_Command %CMPLRS_C_Options %CMPLRS_C_ModeOpt %IncDirectives -c %Source -o %OutputDir/%BaseName.o
-         $set cmplrs_status = $status
-         $if ( $status == 0 ) then
-         $     cpp %IncDirectives -M %CMPLRS_C_Options %Source \^
-         $      | sed -e '1d' -e 's/.*://g' -e 's/[     *]*//g' -e 's%/\./%/%g' |  sort -u  >  %OutputDir/%BaseName.m 
-         $endif
-         $set status = $cmplrs_status
-       @end;
-
-       @set %CMPLRS_CXX_Command = "/usr/bin/cxx -shared -D__STDC__";
-       @set %CMPLRS_CXX_Options = "-I/usr/include/cxx -DDECOSF1";
-
-       @template CMPLRS_CXX_OptLine ( %CMPLRS_CXX_Command, %CMPLRS_CXX_Options, %CMPLRS_CXX_ModeOpt, %CMPLRS_CXX_DBMSOpt, 
-                                      %IncDirectives, %DBDirectives ) is
-         $C++ compiler: \^
-         $%CMPLRS_CXX_Command %CMPLRS_CXX_Options %CMPLRS_CXX_DBMSOpt %CMPLRS_CXX_ModeOpt \
-         $%IncDirectives %DBDirectives -c <Source.cxx> -o <Object.o>
-       @end;
-
-       @template CMPLRS_CXX_CmdLine ( %CMPLRS_CXX_Command, %CMPLRS_CXX_Options, %CMPLRS_CXX_ModeOpt, %CMPLRS_CXX_DBMSOpt,
-                                       %IncDirectives, %DBDirectives, %Source, %BaseName, %OutputDir, %TmpFile ) is
-
-         $cd %OutputDir
-         $%CMPLRS_CXX_Command %CMPLRS_CXX_Options %CMPLRS_CXX_DBMSOpt %CMPLRS_CXX_ModeOpt %IncDirectives -M -c %Source -o %Object  \^
-         $  |  sed -e '1d' -e 's/.*://g' -e 's/[     *]*//g' > %TmpFile
-         $%CMPLRS_CXX_Command %CMPLRS_CXX_Options %IncDirectives %DBDirectives %CMPLRS_CXX_DBMSOpt %CMPLRS_CXX_ModeOpt -c %Source -o  %OutputDir/%BaseName.o
-         $set cmplrs_status = $status
-         $if ( $cmplrs_status  == 0 ) then
-         $     sed -e 's/      //g' -e '/Compilation failed/d' -e '/:/d' -e 's%/\./%/%g' -e 's%//%/%g' %TmpFile \^
-         $         | sort -u > %OutputDir/%BaseName.m
-         $endif
-         $rm %TmpFile
-         $set status = $cmplrs_status
-       @end;
+--     #     # ######          #     # #     #     --
+--     #     # #     #         #     #  #   #      --
+--     #     # #     #         #     #   # #       --
+--     ####### ######   #####  #     #    #        --
+--     #     # #               #     #   # #       --
+--     #     # #               #     #  #   #      --
+--     #     # #                #####  #     #     --
 
-@endif;
+ @if ( %Station == "hp" ) then
+  @template CMPLRS_DBDirective (%DBDirectory) is
+  $ -ptr%DBDirectory/ptrepository \
+  @end;
 
---
--- Templates Silicon IRIX V5.3 
---
-@if ( %Station == "sil" ) then
-
-       -- Options du Fortran 77
-       @set %CMPLRS_F77_Command = "f77 ";
-       @set %CMPLRS_F77_Options = "-n32 -mips3";
-
-       @if ( %DebugMode == "True" ) then
-         @set %CMPLRS_CXX_ModeOpt = "-g -gslim -DDEB";
-         @set %CMPLRS_C_ModeOpt   = "-g -gslim -DDEB";
-         @set %CMPLRS_F77_ModeOpt = "-g";
-       @endif;
-       @if ( %DebugMode == "False" ) then
-         @set %CMPLRS_CXX_ModeOpt = "-O3 -DNo_Exception  -D__INLINE_INTRINSICS -TARG:processor=R10000 ";
-         @set %CMPLRS_C_ModeOpt   = "-O3 -DNo_Exception -TARG:processor=R10000 ";
-         @set %CMPLRS_F77_ModeOpt = "-O3";
-       @endif;
-
-       @if ( %DBMS == "OBJS" ) then
-         @set %CMPLRS_CXX_DBMSOpt = "-DOBJS -I/PRODUCTS/OS5.0/include";
-       @endif;
-       @if ( %DBMS == "DFLT" ) then
-         @set %CMPLRS_CXX_DBMSOpt = "-DCSFDB";
-       @endif;
-
-
-       @set %CMPLRS_C_Command = "cc -signed -n32 -mips3 ";
-       @set %CMPLRS_C_Options = "-DIRIX";
-
-       @template CMPLRS_C_OptLine  ( %CMPLRS_C_Command, %CMPLRS_C_Options, %CMPLRS_C_ModeOpt, %IncDirectives ) is
-         $C compiler: \^
-         $%CMPLRS_C_Command %CMPLRS_C_ModeOpt %CMPLRS_C_Options \
-         $%IncDirectives -c <Source.c> -o <Object.o>
-       @end;
-
-       @template CMPLRS_C_CmdLine ( %CMPLRS_C_Command, %CMPLRS_C_Options, %CMPLRS_C_ModeOpt,
-                                    %IncDirectives, %Source, %BaseName, %OutputDir, %TmpFile ) is
-
-         $%CMPLRS_C_Command %CMPLRS_C_Options %IncDirectives %CMPLRS_C_ModeOpt -c %Source -o %OutputDir/%BaseName.o
-         $set cmplrs_status = $status
-         $if ( $cmplrs_status == 0 ) then
-         $     cpp %CMPLRS_C_Options %IncDirectives -M -DIRIX %Source | \^
-         $         sed -e '1d' -e 's/.*://g' -e 's/[    *]*//g' -e 's%/./%/%g' -e 's+//+/+g' |  sort -u  >  %OutputDir/%BaseName.m 
-         $endif
-         $set status = $cmplrs_status
-        @end;
-
-       @set %CMPLRS_CXX_Command = "/usr/bin/CC -signed -n32 -mips3 -no_prelink -woff 3115 -LANG:bool=OFF -LANG:wchar_t=OFF";
-       @set %CMPLRS_CXX_Options = "-I/usr/include/CC -DIRIX -DNO_CXX_EXCEPTION";
-
-       @template CMPLRS_CXX_OptLine ( %CMPLRS_CXX_Command, %CMPLRS_CXX_Options, %CMPLRS_CXX_ModeOpt, %CMPLRS_CXX_DBMSOpt, 
-                                      %IncDirectives, %DBDirectives ) is
-         $C++ compiler: \^
-         $%CMPLRS_CXX_Command %CMPLRS_CXX_Options %CMPLRS_CXX_DBMSOpt %CMPLRS_CXX_ModeOpt \
-         $%IncDirectives %DBDirectives -MDupdate -c <Source.cxx> -o <Object.o>
-       @end;
-
-       @template CMPLRS_CXX_CmdLine ( %CMPLRS_CXX_Command, %CMPLRS_CXX_Options, %CMPLRS_CXX_ModeOpt, %CMPLRS_CXX_DBMSOpt, 
-                                       %IncDirectives, %DBDirectives, %Source, %BaseName, %OutputDir, %TmpFile ) is
-
-         $cd %OutputDir
-         $%CMPLRS_CXX_Command %CMPLRS_CXX_Options %CMPLRS_CXX_DBMSOpt %CMPLRS_CXX_ModeOpt \
-         $ %IncDirectives %DBDirectives -MDupdate %TmpFile \
-         $  -c %Source -o %OutputDir/%BaseName.o
-         $set stat = $status
-         $if ( $stat == 0 ) then
-         $  cat %TmpFile  | tr ' ' '\012' | sed  -e '1d' -e 's%/./%/%g' | grep -v '^#'| sort -u > %OutputDir/%BaseName.m
-         $endif
-         $/bin/rm -f %TmpFile
-         $set status = $stat
-       @end;
+  @set %CMPLRS_F77_Command = "f77 ";
+  @set %CMPLRS_F77_Options = "-PIC";
 
-@endif;
+  @if ( %DebugMode == "True" ) then
+   @set %CMPLRS_CXX_ModeOpt = "-g -DDEB";
+   @set %CMPLRS_C_ModeOpt   = "-g -DDEB";
+   @set %CMPLRS_F77_ModeOpt = "-g";
+  @endif;
 
---
--- Templates HP-UX 
---
-@if ( %Station == "hp" ) then
-
-       -- Options du Fortran 77
-       @set %CMPLRS_F77_Command = "f77 ";
-       @set %CMPLRS_F77_Options = "-PIC";
-
-
-
-       @if ( %DebugMode == "True" ) then
-         @set %CMPLRS_CXX_ModeOpt = "-g -DDEB";
-         @set %CMPLRS_C_ModeOpt   = "-g -DDEB";
-         @set %CMPLRS_F77_ModeOpt = "-g";
-       @endif;
-       @if ( %DebugMode == "False" ) then
-         @set %CMPLRS_CXX_ModeOpt = "+O2 +Onomoveflops -DNo_Exception ";
-         @set %CMPLRS_C_ModeOpt   = "+O2 +Onomoveflops -DNo_Exception ";
-         @set %CMPLRS_F77_ModeOpt = "+O2 +Onomoveflops ";
-       @endif;
-
-       @if ( %DBMS == "OBJS" ) then
-         @set %CMPLRS_CXX_DBMSOpt = "-DOBJS -I/PRODUCTS/OS5.0/include";
-       @endif;
-       @if ( %DBMS == "DFLT" ) then
-         @set %CMPLRS_CXX_DBMSOpt = "-DCSFDB";
-       @endif;
-
-       @set %CMPLRS_C_Command = "cc +Z +DAportable +DS2.0";
-       @set %CMPLRS_C_Options = "-DHPUX";
-
-       @template CMPLRS_C_OptLine  ( %CMPLRS_C_Command, %CMPLRS_C_Options, %CMPLRS_C_ModeOpt, %IncDirectives ) is
-         $C compiler: \^
-         $%CMPLRS_C_Command %CMPLRS_C_ModeOpt %CMPLRS_C_Options \
-         $%IncDirectives -c <Source.c> -o <Object.o>
-       @end;
-
-       @template CMPLRS_C_CmdLine ( %CMPLRS_C_Command, %CMPLRS_C_Options, %CMPLRS_C_ModeOpt,
-                                    %IncDirectives, %Source, %BaseName, %OutputDir ) is
-
-         $%CMPLRS_C_Command %CMPLRS_C_Options %IncDirectives %CMPLRS_C_ModeOpt -c %Source -o %OutputDir/%BaseName.o
-         $set stat = $status
-         $if ( $stat == 0 ) then
-         $  cc %IncDirectives -E %CMPLRS_C_Options  %Source | egrep -e '^#' | awk '{print $3}' \
-         $    | sed -e 's/\"//g' -e '/^$/d'  -e 's%/./%/%g' | sort -u | grep -v %Source | grep '/' > %OutputDir/%BaseName.m
-         $endif
-         $set status = $stat
-        @end;
-
-       @set %CMPLRS_CXX_Command = "/opt/aCC/bin/aCC +Z +DAportable +DS2.0 +eh";
-       @set %CMPLRS_CXX_Options = " -w -DHPUX -D_IOSTREAM_INIT_NOT_NEEDED ";
-
-       @template CMPLRS_CXX_OptLine ( %CMPLRS_CXX_Command, %CMPLRS_CXX_Options, %CMPLRS_CXX_ModeOpt, %CMPLRS_CXX_DBMSOpt, %IncDirectives ) is
-         $C++ compiler: \^
-         $%CMPLRS_CXX_Command %CMPLRS_CXX_Options %CMPLRS_CXX_DBMSOpt %CMPLRS_CXX_ModeOpt \
-         $%IncDirectives -c <Source.cxx> -o <Object.o>
-       @end;
-
-       @template CMPLRS_CXX_CmdLine ( %CMPLRS_CXX_Command, %CMPLRS_CXX_Options, %CMPLRS_CXX_ModeOpt, %CMPLRS_CXX_DBMSOpt, 
-                                      %IncDirectives, %Source, %BaseName, %OutputDir ) is
-
-         $cd %OutputDir
-         $%CMPLRS_CXX_Command %CMPLRS_CXX_Options %CMPLRS_CXX_DBMSOpt %CMPLRS_CXX_ModeOpt %IncDirectives  \
-         $  -c %Source -o %OutputDir/%BaseName.o
-         $set stat = $status
-         $if ( $stat == 0 ) then
-         $  /opt/aCC/bin/aCC -I/opt/aCC/include -I/opt/aCC/include/iostream %IncDirectives -E %CMPLRS_CXX_Options %CMPLRS_CXX_DBMSOpt %Source | egrep -e '^#' | awk '{print $3}' \
-         $    | sed -e 's/\"//g' -e '/^$/d' -e 's%/./%/%g' | sort -u | grep -v %Source | grep '/' > %OutputDir/%BaseName.m
-         $endif
-         $set status = $stat
-       @end;
+  @if ( %DebugMode == "False" ) then
+   @set %CMPLRS_CXX_ModeOpt = "+O2 +Onomoveflops -DNo_Exception ";
+   @set %CMPLRS_C_ModeOpt   = "+O2 +Onomoveflops -DNo_Exception ";
+   @set %CMPLRS_F77_ModeOpt = "+O2 +Onomoveflops ";
+  @endif;
 
-@endif;
+  @if ( %DBMS == "OBJS" ) then
+   @set %CMPLRS_CXX_DBMSOpt = "-DOBJS -I/PRODUCTS/OS5.0/include";
+  @endif;
 
---
--- Templates Windows NT ( Microsoft Visual C/C++ 5.0 )
---
+  @if ( %DBMS == "DFLT" ) then
+   @set %CMPLRS_CXX_DBMSOpt = "-DCSFDB";
+  @endif;
 
-@if ( %Station == "wnt" ) then
+  @set %CMPLRS_C_Command = "cc +Z +DAportable +DS2.0";
+  @set %CMPLRS_C_Options = "-DHPUX";
 
-       @if ( %DebugMode == "True" ) then
-               @set %CMPLRS_CXX_ModeOpt = "-Zi -DDEB -D_DEBUG";
-               @set %CMPLRS_C_ModeOpt   = "-Zi -DDEB -D_DEBUG";
-               @set %CMPLRS_F77_ModeOpt = "-Zi -DDEB -D_DEBUG";
-        @else
-               @set %CMPLRS_CXX_ModeOpt = "-Zi -DNDEBUG -DNo_Exception";
-               @set %CMPLRS_C_ModeOpt   = "-Zi -DNDEBUG -DNo_Exception";
-               @set %CMPLRS_F77ModeOpt  = "-Zi -DNDEBUG -DNo_Exception";
-       @endif;
+  @template CMPLRS_C_OptLine (
+             %CMPLRS_C_Command, %CMPLRS_C_Options, %CMPLRS_C_ModeOpt, %IncDirectives
+            ) is
+  $C compiler: \^
+  $%CMPLRS_C_Command %CMPLRS_C_ModeOpt %CMPLRS_C_Options \
+  $%IncDirectives -c <Source.c> -o <Object.o>
+  @end;
 
-       @if ( %DBMS == "OBJS" ) then
-               @set %CMPLRS_CXX_DBMSOpt = "-DOBJS";
-       @endif;
+  @template CMPLRS_C_CmdLine (
+             %CMPLRS_C_Command, %CMPLRS_C_Options, %CMPLRS_C_ModeOpt,
+             %IncDirectives, %Source, %BaseName, %OutputDir
+            ) is
+  $%CMPLRS_C_Command %CMPLRS_C_Options %IncDirectives %CMPLRS_C_ModeOpt -c %Source -o %OutputDir/%BaseName.o
+  $set stat = $status
+  $if ( $stat == 0 ) then
+  $ cc %IncDirectives -E %CMPLRS_C_Options  %Source | egrep -e '^#' | awk '{print $3}' \
+  $| sed -e 's/\"//g' -e '/^$/d'  -e 's%/./%/%g' | sort -u | grep -v %Source | grep '/' > %OutputDir/%BaseName.m
+  $endif
+  $set status = $stat
+  @end;
 
-       @if ( %DBMS == "DFLT" ) then
-               @set %CMPLRS_CXX_DBMSOpt = "-DCSFDB";
-       @endif;
+  @set %CMPLRS_CXX_Command = "/opt/aCC/bin/aCC +Z +DAportable +DS2.0 +eh";
+  @set %CMPLRS_CXX_Options = " -w -DHPUX -D_IOSTREAM_INIT_NOT_NEEDED ";
 
+  @template CMPLRS_CXX_OptLine (
+             %CMPLRS_CXX_Command, %CMPLRS_CXX_Options, %CMPLRS_CXX_ModeOpt,
+             %CMPLRS_CXX_DBMSOpt, %IncDirectives
+            ) is
+  $C++ compiler: \^
+  $%CMPLRS_CXX_Command %CMPLRS_CXX_Options %CMPLRS_CXX_DBMSOpt %CMPLRS_CXX_ModeOpt \
+  $%IncDirectives -c <Source.cxx> -o <Object.o>
+  @end;
 
-       --- SETS SYMBOL EXPORTATION BEHAVIOUR depending on the unit type
+  @template CMPLRS_CXX_CmdLine (
+             %CMPLRS_CXX_Command, %CMPLRS_CXX_Options, %CMPLRS_CXX_ModeOpt,
+             %CMPLRS_CXX_DBMSOpt, %IncDirectives, %Source, %BaseName, %OutputDir
+            ) is
+  $cd %OutputDir
+  $%CMPLRS_CXX_Command %CMPLRS_CXX_Options %CMPLRS_CXX_DBMSOpt %CMPLRS_CXX_ModeOpt %IncDirectives  \
+  $  -c %Source -o %OutputDir/%BaseName.o
+  $set stat = $status
+  $if ( $stat == 0 ) then
+  $ /opt/aCC/bin/aCC -I/opt/aCC/include -I/opt/aCC/include/iostream %IncDirectives -E %CMPLRS_CXX_Options %CMPLRS_CXX_DBMSOpt %Source | egrep -e '^#' | awk '{print $3}' \
+  $| sed -e 's/\"//g' -e '/^$/d' -e 's%/./%/%g' | sort -u | grep -v %Source | grep '/' > %OutputDir/%BaseName.m
+  $endif
+  $set status = $stat
+  @end;
+ @endif;
 
-       @ifdefined ( %UnitType ) then
+--     #     # #     # #######     --
+--     #  #  # ##    #    #        --
+--     #  #  # # #   #    #        --
+--     #  #  # #  #  #    #        --
+--     #  #  # #   # #    #        --
+--     #  #  # #    ##    #        --
+--      ## ##  #     #    #        --
 
-               @if (%UnitType != "executable") then
-                       @string %CMPLRS_ExportBehaviour = " -D__" %Entity "_DLL";
-               @else
-                       @set %CMPLRS_ExportBehaviour = " -DStandard_EXPORT= ";
-               @endif;
-       @endif;
+ @if ( %Station == "wnt" ) then
+  @if ( %DebugMode == "True" ) then
+   @set %CMPLRS_CXX_ModeOpt = "-Zi -DDEB -D_DEBUG";
+   @set %CMPLRS_C_ModeOpt   = "-Zi -DDEB -D_DEBUG";
+   @set %CMPLRS_F77_ModeOpt = "-Zi -DDEB -D_DEBUG";
+  @else
+   @set %CMPLRS_CXX_ModeOpt = "-Zi -DNDEBUG -DNo_Exception";
+   @set %CMPLRS_C_ModeOpt   = "-Zi -DNDEBUG -DNo_Exception";
+   @set %CMPLRS_F77_ModeOpt = "-Zi -DNDEBUG -DNo_Exception";
+  @endif;
 
-       @ifnotdefined ( %UnitType ) then
-               @set %CMPLRS_ExportBehaviour = "";
-       @endif;
+  @if ( %DBMS == "OBJS" ) then
+   @set %CMPLRS_CXX_DBMSOpt = "-DOBJS";
+  @endif;
 
+  @if ( %DBMS == "DFLT" ) then
+   @set %CMPLRS_CXX_DBMSOpt = "-DCSFDB";
+  @endif;
 
-       @set %CMPLRS_C_Command = "D:/DevTools/VStudio/VC98/bin/cl -nologo -MD -W3 -GX -Ob1";
-       @set %CMPLRS_C_Options = "-DWNT -D_WINDOWS -DWIN32";
+  @ifdefined ( %UnitType ) then
+   @if (%UnitType != "executable") then
+    @string %CMPLRS_ExportBehaviour = " -D__" %Entity "_DLL";
+   @else
+    @set %CMPLRS_ExportBehaviour = " -DStandard_EXPORT= ";
+   @endif;
+  @endif;
 
-       @set %CMPLRS_PDBPrefix = " -Fd";
+  @ifnotdefined ( %UnitType ) then
+   @set %CMPLRS_ExportBehaviour = "";
+  @endif;
 
-       @template CMPLRS_C_OptLine (
-                  %CMPLRS_C_Command, %CMPLRS_C_Options,
-                  %CMPLRS_C_ModeOpt, %IncDirectives, %CMPLRS_ExportBehaviour, %PDBName ) is
-        $C compiler: \^
-        $%CMPLRS_C_Command %CMPLRS_C_ModeOpt %CMPLRS_C_Options %CMPLRS_ExportBehaviour
-        $%IncDirectives -c <source.c> -Fo<object.obj> -Fd%PDBName
-       @end;
-               
-       @template CMPLRS_C_CmdLine (
-                  %CMPLRS_C_Command, %CMPLRS_C_Options,
-                  %CMPLRS_C_ModeOpt, 
-                  %IncDirectives, %PDBName,
-                  %Source, %BaseName, %OutputDir, %TmpFile, %CMPLRS_ExportBehaviour
-                 ) is
-        $cd %TEMP%;
-        $%CMPLRS_C_Command %CMPLRS_C_Options %CMPLRS_ExportBehaviour %IncDirectives %CMPLRS_C_ModeOpt -P -Tc %Source;
-        $@cmd /c "awk -f %WOKHOME%\lib\CMPLRS_wnt.awk %BaseName.i | grep -v %BaseName.c > %OutputDir%BaseName.m";
-        $%CMPLRS_C_Command %CMPLRS_C_Options %CMPLRS_ExportBehaviour\^
-         $  %IncDirectives %CMPRS_C_ModeOpt \^
-        $ -Fd%PDBName -c -Tc %Source -Fo%OutputDir%BaseName.obj;
-        $@del %BaseName.i
-       @end;
-
-       @set %CMPLRS_CXX_Command = "D:/DevTools/VStudio/VC98/bin/cl -nologo -MD -W3 -GX -Ob1";
-       @set %CMPLRS_CXX_Options = "-DWNT -D_WINDOWS -DWIN32";
-
-       @template CMPLRS_CXX_OptLine ( %CMPLRS_CXX_Command, %CMPLRS_CXX_Options, %CMPLRS_CXX_ModeOpt, %CMPLRS_CXX_DBMSOpt,
-                                      %IncDirectives, %CMPLRS_ExportBehaviour, %PDBName) is
-        $C++ compiler: \^
-        $%CMPLRS_CXX_Command %CMPLRS_CXX_ModeOpt %CMPLRS_CXX_DBMSOpt %CMPLRS_CXX_Options %CMPLRS_ExportBehaviour
-        $%IncDirectives -c <source.c> -Fo<object.obj> -Fd %PDBName
-       @end;
+  @set %CMPLRS_C_Command = "D:/DevTools/VStudio/VC98/bin/cl -nologo -MD -W3 -GX -Ob1";
+  --@set %CMPLRS_C_Command = "C:/Program Files/Microsoft Visual Studio/VC98/bin/cl -nologo -MD -W3 -GX -Ob1";
+  @set %CMPLRS_C_Options = "-DWNT -D_WINDOWS -DWIN32";
+  @set %CMPLRS_PDBPrefix = " -Fd";
 
+  @template CMPLRS_C_OptLine (
+             %CMPLRS_C_Command, %CMPLRS_C_Options, %CMPLRS_C_ModeOpt,
+             %IncDirectives, %CMPLRS_ExportBehaviour, %PDBName
+            ) is
+  $C compiler: \^
+  $%CMPLRS_C_Command %CMPLRS_C_ModeOpt %CMPLRS_C_Options %CMPLRS_ExportBehaviour
+  $%IncDirectives -c <source.c> -Fo<object.obj> -Fd%PDBName
+  @end;
                
+  @template CMPLRS_C_CmdLine (
+             %CMPLRS_C_Command, %CMPLRS_C_Options, %CMPLRS_C_ModeOpt, 
+             %IncDirectives, %PDBName, %Source, %BaseName, %OutputDir,
+             %TmpFile, %CMPLRS_ExportBehaviour
+            ) is
+  $%CMPLRS_C_Command %CMPLRS_C_Options %CMPLRS_ExportBehaviour\^
+  $  %IncDirectives %CMPLRS_C_ModeOpt \^
+  $ -Fd%PDBName -c -Tc %Source -Fo%OutputDir%BaseName.obj;
+  $set cmplrs_status=%status%;
+  $@wokACPP -M -m -+ %CMPLRS_C_Options -D_DLL -D_MT %CMPLRS_ExportBehaviour %IncDirectives\^
+  $ %Source -o %OutputDir%BaseName.m;
+  $set status=%cmplrs_status%;
+  @end;
 
-       @template CMPLRS_CXX_CmdLine ( %CMPLRS_CXX_Command, %CMPLRS_CXX_Options, %CMPLRS_CXX_ModeOpt, %CMPLRS_CXX_DBMSOpt,
-                  %IncDirectives, %PDBName, %Source, %BaseName, %OutputDir, %TmpFile, %CMPLRS_ExportBehaviour ) is
-        $cd %TEMP%;
-        $%CMPLRS_CXX_Command %CMPLRS_CXX_Options %CMPLRS_ExportBehaviour %IncDirectives %CMPLRS_CXX_ModeOpt %CMPLRS_CXX_DBMSOpt \^
-        $ -P -Tp %Source;
-        $@cmd /c "awk -f %WOKHOME%\lib\CMPLRS_wnt.awk %BaseName.i | grep -v %BaseName.cxx > %OutputDir%BaseName.m";
-        $%CMPLRS_CXX_Command %CMPLRS_CXX_Options %CMPLRS_ExportBehaviour\^
-         $  %IncDirectives %CMPLRS_CXX_ModeOpt %CMPLRS_CXX_DBMSOpt\^
-        $ -Fd%PDBName -c -Tp %Source -Fo%OutputDir%BaseName.obj;
-        $@del %BaseName.i
-       @end;
+  @set %CMPLRS_CXX_Command = "D:/DevTools/VStudio/VC98/bin/cl -nologo -MD -W3 -GX -Ob1";
+  --@set %CMPLRS_CXX_Command = "C:/Program Files/Microsoft Visual Studio/VC98/bin/cl -nologo -MD -W3 -GX -Ob1 ";
+  @set %CMPLRS_CXX_Options = "-DWNT -D_WINDOWS -DWIN32";
 
-@endif;
+  @string %CMPLRS_CXX_Options += " -ID:/jdk1.2.2/include";
+  @string %CMPLRS_CXX_Options += " -ID:/jdk1.2.2/include/win32";
+  @string %CMPLRS_CXX_Options += " -I%WOKHOME%/jcas/include";
 
---
--- Templates Red Hat Linux (GNU c/c++)
---
+  @template CMPLRS_CXX_OptLine (
+             %CMPLRS_CXX_Command, %CMPLRS_CXX_Options, %CMPLRS_CXX_ModeOpt,
+             %CMPLRS_CXX_DBMSOpt, %IncDirectives, %CMPLRS_ExportBehaviour, %PDBName
+            ) is
+  $C++ compiler: \^
+  $%CMPLRS_CXX_Command %CMPLRS_CXX_ModeOpt %CMPLRS_CXX_DBMSOpt %CMPLRS_CXX_Options %CMPLRS_ExportBehaviour
+  $%IncDirectives -c <source.c> -Fo<object.obj> -Fd %PDBName
+  @end;
 
- @if ( %Station == "lin" ) then
+  @template CMPLRS_CXX_CmdLine (
+             %CMPLRS_CXX_Command, %CMPLRS_CXX_Options, %CMPLRS_CXX_ModeOpt,
+             %CMPLRS_CXX_DBMSOpt, %IncDirectives, %PDBName, %Source,
+             %BaseName, %OutputDir, %TmpFile, %CMPLRS_ExportBehaviour
+            ) is
+  $%CMPLRS_CXX_Command %CMPLRS_CXX_Options %CMPLRS_ExportBehaviour\^
+  $  %IncDirectives %CMPLRS_CXX_ModeOpt %CMPLRS_CXX_DBMSOpt\^
+  $ -Fd%PDBName -c -Tp %Source -Fo%OutputDir%BaseName.obj;
+  $set cmplrs_status=%status%;
+  $@wokACPP -M -m -+ %CMPLRS_CXX_Options -D__cplusplus -D_DLL -D_MT %CMPLRS_ExportBehaviour %IncDirectives\^
+  $ %Source -o %OutputDir%BaseName.m;
+  $set status=%cmplrs_status%;
+  @end;
+
+  @set %CMPLRS_F77_Command = "C:/Program Files/Microsoft Visual Studio/DF98/bin/fl32 ";
+  @set %CMPLRS_F77_Options = "-nologo -libs:dll ";
+
+  @template CMPLRS_F77_OptLine (
+             %CMPLRS_F77_Command, %CMPLRS_F77_Options, %CMPLRS_F77_ModeOpt,
+             %IncDirectives, %PDBName
+            ) is
+  $F77 compiler: \^
+  $%CMPLRS_F77_Command %CMPLRS_F77_Options   %CMPLRS_F77_ModeOpt \
+  $%IncDirectives -c <Source.f> -object:<Object.obj> -pdbfile:<Pdbfile.pdb>
+  @end;
 
+  @template CMPLRS_F77_CmdLine (
+             %CMPLRS_F77_Command, %CMPLRS_F77_Options, %CMPLRS_F77_ModeOpt,
+             %IncDirectives, %Source,  %BaseName, %OutputDir, %TmpFile, %PDBName
+            ) is 
+  $#%CMPLRS_F77_Command %CMPLRS_F77_ModeOpt %CMPLRS_F77_Options -c %Source -object:%OutputDir/%BaseName.obj -pdbfile:%PDBName
+  @end;
+ @endif;
+
+--     #         ###   #     #     --
+--     #          #    ##    #     --
+--     #          #    # #   #     --
+--     #          #    #  #  #     --
+--     #          #    #   # #     --
+--     #          #    #    ##     --
+--     #######   ###   #     #     --
+
+ @if ( %Station == "lin" ) then
   @if ( %DebugMode == "True" ) then
    @set %CMPLRS_CXX_ModeOpt = "-g -O0 -DDEB -D_DEBUG";
    @set %CMPLRS_C_ModeOpt   = "-g -O0 -DDEB -D_DEBUG";
@@ -535,7 +601,7 @@ $ -I%IncDirectory \
             ) is
    $C compiler: \^
    $%CMPLRS_C_Command %CMPLRS_C_Options %CMPLRS_C_ModeOpt \
-   $%IncDirectives -c <Source.c> -o <Object.o>
+   $%IncDirectives -H -c <Source.c> -o <Object.o> > &<tmp_file>
   @end;
 
   @template CMPLRS_C_CmdLine (
@@ -562,7 +628,7 @@ $ -I%IncDirectory \
             ) is
    $C++ compiler: \^
    $%CMPLRS_CXX_Command %CMPLRS_CXX_Options  %CMPLRS_CXX_DBMSOpt %CMPLRS_CXX_ModeOpt \
-   $%IncDirectives %DBDirectives -c <Source.cxx> -o <Object.o>
+   $%IncDirectives %DBDirectives -H -c <Source.cxx> -o <Object.o> > &<tmp_file>
   @end;
 
   @template CMPLRS_CXX_CmdLine (
@@ -581,24 +647,19 @@ $ -I%IncDirectory \
    $/bin/rm -f %TmpFile
    $set status = $stat
   @end;
-
- @endif;  -- "lin"
-
-@if ( defined( %UnitType ) )  then
-
-  @if ( (%UnitType == "idl" || %UnitType == "server" || %UnitType == "executable") && %Station != "wnt" ) then
-
-      @uses "ORBIX.edl";
-
-      @if ( %Station == "sun" ) then
-        @set %CMPLRS_CXX_Command = "/opt/DEV5_1/SUNWspro/bin/CC -PIC  ";
-      @endif;
-
-      @string %CMPLRS_CXX_Options += " -I" %ORBIX_Home "/include";
-
+ @endif;
+
+ @if (  defined( %UnitType )  )  then
+  @if (  ( %UnitType == "idl" || %UnitType == "server" || %UnitType == "executable" ) &&
+         %Station != "wnt"
+  ) then
+   @uses "ORBIX.edl";
+   @if ( %Station == "sun" ) then
+    @set %CMPLRS_CXX_Command = "/opt/DEV5_1/SUNWspro/bin/CC -PIC  ";
+   @endif;
+   @string %CMPLRS_CXX_Options += " -I" %ORBIX_Home "/include";
   @endif;
-
-@endif;
+ @endif;
 
 @endif;
 
index d84d85f8205cab020809fa9c7526e6c348d8f4dd..8610d585b66983a45e71b8b342fec4ebfe25e90c 100755 (executable)
@@ -4,53 +4,45 @@
 -- Copyright:   Matra Datavision 1996
 
 @ifnotdefined ( %LDSHR_EDL ) then
-@set %LDSHR_EDL = "";
+ @set %LDSHR_EDL = "";
 
-@ifnotdefined ( %LD_EDL ) then
+ @ifnotdefined ( %LD_EDL ) then
   @uses "LD.edl";
-@endif;
-
-@set %LDSHR_Header          = "LDSHR_Header";
-@set %LDSHR_ObjectRef       = "LD_ObjectRef";
-@set %LDSHR_ShortRef        = "LD_ShortRef";
-@set %LDSHR_LongRef         = "LD_LongRef";
-@set %LDSHR_SharedFullPath  = "LD_SharedFullPath";
-@set %LDSHR_ArchiveFullPath = "LDSHR_ArchiveFullPath";
-@set %LDSHR_ExternRef       = "LD_ExternRef";
-@set %LDSHR_Footer          = "LD_Footer";
+ @endif;
 
-@if ( ( %DBMS == "OBJS" ) && ( %Station == "sun" ) ) then
+ @set %LDSHR_Header          = "LDSHR_Header";
+ @set %LDSHR_ObjectRef       = "LD_ObjectRef";
+ @set %LDSHR_ShortRef        = "LD_ShortRef";
+ @set %LDSHR_LongRef         = "LD_LongRef";
+ @set %LDSHR_SharedFullPath  = "LD_SharedFullPath";
+ @set %LDSHR_ArchiveFullPath = "LDSHR_ArchiveFullPath";
+ @set %LDSHR_ExternRef       = "LD_ExternRef";
+ @set %LDSHR_Footer          = "LD_Footer";
 
+ @if ( ( %DBMS == "OBJS" ) && ( %Station == "sun" ) ) then
   @set %LDSHR_DBMSOpt = "-mt";
-
-@else
-
+ @else
   @set %LDSHR_DBMSOpt = "";
+ @endif;
 
-@endif;
-
-
-@if ( %Station != "hp" ) then
+ @if ( %Station != "hp" ) then
   @template LDSHR_FileName ( %LDSHR_LibName ) is
    $lib%LDSHR_LibName.so\^
   @end;
-@endif;
+ @endif;
 
-@if ( %Station == "hp" ) then
+ @if ( %Station == "hp" ) then
   @template LDSHR_FileName ( %LDSHR_LibName ) is
    $lib%LDSHR_LibName.sl\^
   @end;
-@endif;
+ @endif;
 
+ @template LDSHR_ArchiveFullPath ( %LibDir, %LibName ) is
+ $ -all %LibDir/lib%LibName.a -none \
+ @end;
 
-@template LDSHR_ArchiveFullPath ( %LibDir, %LibName ) is
-$ -all %LibDir/lib%LibName.a -none \
-@end;
-
-@if( %Station == "sun" ) then 
-
+ @if( %Station == "sun" ) then 
   @set %LDSHR_Footer          = "LDSHR_Footer";
-
   @set %LDSHR_ArchiveFullPath = "LDSHR_ArchiveFullPath";
 
   @template LDSHR_ArchiveFullPath ( %LibDir, %LibName ) is
@@ -61,41 +53,47 @@ $ -all %LibDir/lib%LibName.a -none \
    $/opt/DEV5_1/SUNWspro/bin/CC -xchip=ultra -xarch=v8 -G %LDSHR_DBMSOpt -o %Target \
   @end;
 
-  @template LDSHR_Footer ( ) is
-    $ -lC -lc ;
+  @template LDSHR_Footer () is
+   $ -lC -lc ;
+   $ set ld_status=$status; 
   @end;
 
-@endif;
+  @template LDSHR_CheckUndefHeader ( %Target, %LDSHR_DBMSOpt ) is
+   $/opt/DEV5_1/SUNWspro/bin/CC -xchip=ultra -xarch=v8 %LDSHR_DBMSOpt -o %Target \
+  @end;
 
-@if( %Station == "ao1") then
+  @template LDSHR_CheckUndefFooter () is
+   $ -lC -lc ;
+   $ set status=$ld_status;
+  @end;
+ @endif;
 
+ @if( %Station == "ao1") then
   @set %LDSHR_LibLimit = "1";
 
   @template LDSHR_Header ( %LDSHR_DBMSOpt, %Target, %LogicalName ) is 
    $cxx -shared %LDSHR_DBMSOpt -msym -o %Target -soname %LogicalName -expect_unresolved '*' \
   @end;
+ @endif;
 
-@endif;
-
-@if( %Station == "sil" ) then
-
-  @set %LDSHR_ObjectRef       = "LDSHR_ObjectRef";
-
-  @template LDSHR_ObjectRef ( %ObjectPath ) is
-   $\^
-  @end;
-
+ @if( %Station == "sil" ) then
   @template LDSHR_Header ( %LDSHR_DBMSOpt, %Target, %LogicalName, %LD_ObjList ) is
-   $/usr/bin/CC -n32 -mips3 -Wl,-mmap -multigot -no_prelink -ignore_unresolved -shared %LDSHR_DBMSOpt -o %Target -soname %LogicalName \
-   $  -all -objectlist %LD_ObjList -none \
+   $/usr/bin/CC -n32 -mips3 -Wl,-mmap -multigot -ignore_unresolved -shared %LDSHR_DBMSOpt -o %Target \
+   $  -all -none \
   @end;
 
-@endif;
+  @template LDSHR_CheckUndefHeader ( %Target, %LDSHR_DBMSOpt ) is
+   $/usr/bin/CC -n32 -mips3 -Wl,-mmap -multigot -no_prelink %LDSHR_DBMSOpt -o %Target -soname %LogicalName \
+  @end;
 
-@if( %Station == "hp" ) then
+  @template LDSHR_CheckUndefFooter () is
+   $ ;
+  @end;
+ @endif;
 
-  @set %LDSHR_Footer          = "LDSHR_Footer";
-  @set %LDSHR_ObjectRef       = "LDSHR_ObjectRef";
+ @if( %Station == "hp" ) then
+  @set %LDSHR_Footer    = "LDSHR_Footer";
+  @set %LDSHR_ObjectRef = "LDSHR_ObjectRef";
 
   @template LDSHR_Header ( %LDSHR_DBMSOpt,  %LD_ObjList, %Target, %LogicalName ) is
     $\mv %LD_ObjList %LD_ObjList.o
@@ -114,38 +112,36 @@ $ -all %LibDir/lib%LibName.a -none \
     $\^
   @end;
 
-
   @template LDSHR_ArchiveFullPath ( %LibDir, %LibName ) is
    $ -Wl,-Fl%LibDir/lib%LibName.a \
   @end;
+ @endif;
 
-@endif;
-
-@if ( %Station == "lin" ) then
- @set %LDSHR_Footer          = "LDSHR_Footer";
- @set %LDSHR_ArchiveFullPath = "LDSHR_ArchiveFullPath";
-
- @template LDSHR_ArchiveFullPath ( %LibDir, %LibName ) is
-  $\^
- @end;
-
- @template LDSHR_Header ( %Target, %LDSHR_DBMSOpt ) is
-  $/usr/bin/g++ -shared %LDSHR_DBMSOpt -o %Target \
- @end;
+ @if ( %Station == "lin" ) then
+  @set %LDSHR_Footer          = "LDSHR_Footer";
+  @set %LDSHR_ArchiveFullPath = "LDSHR_ArchiveFullPath";
 
@template LDSHR_Footer ( ) is
-  $ ;
- @end;
 @template LDSHR_ArchiveFullPath ( %LibDir, %LibName ) is
+   $\^
 @end;
 
@template LDSHR_CheckUndefHeader ( %Target, %LDSHR_DBMSOpt ) is
-  $/usr/bin/g++ -nostartfiles %LDSHR_DBMSOpt -o %Target \
- @end;
 @template LDSHR_Header ( %Target, %LDSHR_DBMSOpt ) is
+   $/usr/bin/g++ -shared %LDSHR_DBMSOpt -o %Target \
 @end;
 
- @template LDSHR_CheckUndefFooter ( ) is
-  $ ;
- @end;
+  @template LDSHR_Footer () is
+   $ ;
+   $ set ld_status=$status;
+  @end;
 
-@endif;
+  @template LDSHR_CheckUndefHeader ( %Target, %LDSHR_DBMSOpt ) is
+   $/usr/bin/g++ -nostartfiles %LDSHR_DBMSOpt -o %Target \
+  @end;
 
+  @template LDSHR_CheckUndefFooter () is
+   $ ;
+   $ set status=$ld_status;
+  @end;
+ @endif;
 @endif;
 
index fdeda0dea7ba40ed4f43827fa60c0057a1c78f6b..3d5aaa9e4a4df4df5656d038143bb9e0c2c4c5d7 100755 (executable)
@@ -4,51 +4,48 @@
 -- Copyright:   Matra Datavision 1996
 
 @ifnotdefined ( %LINKSHR_EDL ) then
-@set %LINKSHR_EDL = "";
+ @set %LINKSHR_EDL = "";
 
-@ifnotdefined ( %LDSHR_EDL ) then
+ @ifnotdefined ( %LDSHR_EDL ) then
   @uses "LDSHR.edl";
-@endif;
-
-@set %LINKSHR_Header          = "LINKSHR_Header";
-@set %LINKSHR_ObjectRef       = "LD_ObjectRef";
-@set %LINKSHR_ShortRef        = "LD_ShortRef";
-@set %LINKSHR_LongRef         = "LD_LongRef";
-@set %LINKSHR_SharedFullPath  = "LD_SharedFullPath";
-@set %LINKSHR_ArchiveFullPath = "LDSHR_ArchiveFullPath";
-@set %LINKSHR_ExternRef       = "LD_ExternRef";
-@set %LINKSHR_Footer          = "LD_Footer";
-
-@if ( %Station == "sun" ) then
+ @endif;
+
+ @set %LINKSHR_Header          = "LINKSHR_Header";
+ @set %LINKSHR_ObjectRef       = "LD_ObjectRef";
+ @set %LINKSHR_ShortRef        = "LD_ShortRef";
+ @set %LINKSHR_LongRef         = "LD_LongRef";
+ @set %LINKSHR_SharedFullPath  = "LD_SharedFullPath";
+ @set %LINKSHR_ArchiveFullPath = "LDSHR_ArchiveFullPath";
+ @set %LINKSHR_ExternRef       = "LD_ExternRef";
+ @set %LINKSHR_Footer          = "LD_Footer";
+ @if ( %Station == "sun" ) then
   @set %LINKSHR_DBMSOpt = "-mt";
-@else
+ @else
   @set %LINKSHR_DBMSOpt = "";
-@endif;
+ @endif;
 
-@if ( %Station != "hp" ) then
+ @if ( %Station != "hp" ) then
   @template LINKSHR_FileName ( %LINKSHR_LibName ) is
    $lib%LINKSHR_LibName.so\^
   @end;
-@endif;
+ @endif;
 
-@if ( %Station == "hp" ) then
+ @if ( %Station == "hp" ) then
   @template LINKSHR_FileName ( %LINKSHR_LibName ) is
    $lib%LINKSHR_LibName.sl\^
   @end;
-@endif;
-
-
-@template LINKSHR_ArchiveFullPath ( %LibDir, %LibName ) is
-$ -all %LibDir/lib%LibName.a -none \
-@end;
+ @endif;
 
-@if( %Station == "sun" ) then 
+ @template LINKSHR_ArchiveFullPath ( %LibDir, %LibName ) is
+ $ -all %LibDir/lib%LibName.a -none \
+ @end;
 
+ @if( %Station == "sun" ) then 
   @set %LINKSHR_Footer          = "LINKSHR_Footer";
-
   @set %LINKSHR_ArchiveFullPath = "LINKSHR_ArchiveFullPath";
 
-  @template LINKSHR_ArchiveFullPath ( ) is
+  @template LINKSHR_ArchiveFullPath () is
    $\^
   @end;
 
@@ -56,24 +53,45 @@ $ -all %LibDir/lib%LibName.a -none \
    $/opt/DEV5_1/SUNWspro/bin/CC -xchip=ultra -xarch=v8  -G %LINKSHR_DBMSOpt -o %Target \
   @end;
 
-  @template LINKSHR_Footer ( ) is
+  @template LINKSHR_Footer () is
     $ -lC -lc ;
+    $ set ld_status=$status;
+    $ if ( $?LD_LIBRARY_PATH ) then
+    $  set ld_library_path=$LD_LIBRARY_PATH
+    $ endif
   @end;
 
-@endif;
+  @template LINKSHR_CheckUndefHeader (
+             %Target, %LINKSHR_DBMSOpt, %LD_LIBRARY_PATH
+            ) is 
+   $if ( $?LD_LIBRARY_PATH ) then
+   $ setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:%LD_LIBRARY_PATH
+   $else
+   $ setenv LD_LIBRARY_PATH %LD_LIBRARY_PATH
+   $endif
+   $/opt/DEV5_1/SUNWspro/bin/CC -xchip=ultra -xarch=v8 %LINKSHR_DBMSOpt -o /dev/null \
+  @end;
 
-@if( %Station == "ao1") then
+  @template LINKSHR_CheckUndefFooter () is
+    $ -lC -lc ;
+    $ set status=$ld_status
+    $ if ( $?ld_library_path ) then
+    $  setenv LD_LIBRARY_PATH $ld_library_path
+    $ else
+    $  unsetenv LD_LIBRARY_PATH
+    $ endif
+  @end;
+ @endif;
 
+ @if( %Station == "ao1") then
   @set %LINKSHR_LibLimit = "300";
 
   @template LINKSHR_Header ( %LINKSHR_DBMSOpt, %Target, %LogicalName ) is 
    $cxx -shared %LINKSHR_DBMSOpt -msym -o %Target -soname %LogicalName \
   @end;
+ @endif;
 
-@endif;
-
-@if( %Station == "sil" ) then
-
+ @if( %Station == "sil" ) then
   @set %LINKSHR_ObjectRef       = "LINKSHR_ObjectRef";
 
   @template LINKSHR_ObjectRef ( %ObjectPath ) is
@@ -85,56 +103,63 @@ $ -all %LibDir/lib%LibName.a -none \
    $  -all -objectlist %LD_ObjList -none \
   @end;
 
-@endif;
+  @template LINKSHR_CheckUndefHeader ( %LINKSHR_DBMSOpt, %Target, %LogicalName, %LD_ObjList ) is
+   $/usr/bin/CC -n32 -mips3 -Wl,-mmap -multigot -no_prelink %LINKSHR_DBMSOpt -o /dev/null \
+   $  -all -objectlist %LD_ObjList -none \
+  @end;
 
-@if( %Station == "hp" ) then
+  @template LINKSHR_CheckUndefFooter () is
+    $ ;
+  @end;
+ @endif;
 
+ @if( %Station == "hp" ) then
   @set %LINKSHR_Footer          = "LINKSHR_Footer";
   @set %LINKSHR_ObjectRef       = "LINKSHR_ObjectRef";
 
   @template LINKSHR_Header ( %LINKSHR_DBMSOpt, %Target, %LD_ObjList, %LogicalName ) is
-    $\mv %LD_ObjList %LD_ObjList.o
-    $/opt/aCC/bin/aCC %LINKSHR_DBMSOpt -b -o %Target  \
-    $-Wl,-c%LD_ObjList.o \
+   $\mv %LD_ObjList %LD_ObjList.o
+   $/opt/aCC/bin/aCC %LINKSHR_DBMSOpt -b -o %Target  \
+   $-Wl,-c%LD_ObjList.o \
   @end;
 
   @template LINKSHR_Footer (%LD_ObjList) is
-    $;
-    $set lnk_status = $status
-    $\mv %LD_ObjList.o %LD_ObjList;
-    $set status = $lnk_status
+   $;
+   $set lnk_status = $status
+   $\mv %LD_ObjList.o %LD_ObjList;
+   $set status = $lnk_status
   @end;
 
   @template LINKSHR_ObjectRef () is
-    $\^
+   $\^
   @end;
+ @endif;
 
-@endif;
-
-@if ( %Station == "lin" ) then
- @set %LINKSHR_Footer          = "LINKSHR_Footer";
- @set %LINKSHR_ArchiveFullPath = "LINKSHR_ArchiveFullPath";
-
- @template LINKSHR_ArchiveFullPath ( ) is
-  $\^
- @end;
+ @if ( %Station == "lin" ) then
+  @set %LINKSHR_Footer          = "LINKSHR_Footer";
+  @set %LINKSHR_ArchiveFullPath = "LINKSHR_ArchiveFullPath";
 
@template LINKSHR_Header ( %Target, %LINKSHR_DBMSOpt ) is
-  $/usr/bin/g++ -shared %LINKSHR_DBMSOpt -o %Target \
- @end;
 @template LINKSHR_ArchiveFullPath () is
+   $\^
 @end;
 
@template LINKSHR_Footer ( ) is
-  $ ;
- @end;
 @template LINKSHR_Header ( %Target, %LINKSHR_DBMSOpt ) is
+   $/usr/bin/g++ -shared %LINKSHR_DBMSOpt -o %Target \
 @end;
 
- @template LINKSHR_CheckUndefHeader ( %Target, %LINKSHR_DBMSOpt ) is
-  $/usr/bin/g++ -nostartfiles %LINKSHR_DBMSOpt -o /dev/null \
- @end;
+  @template LINKSHR_Footer () is
+   $ ;
+   $ set ld_status=$status;
+  @end;
 
@template LINKSHR_CheckUndefFooter ( ) is
-  $ ;
- @end;
 @template LINKSHR_CheckUndefHeader ( %Target, %LINKSHR_DBMSOpt ) is
+   $/usr/bin/g++ -nostartfiles %LINKSHR_DBMSOpt -o /dev/null \
 @end;
 
-@endif;
+  @template LINKSHR_CheckUndefFooter () is
+   $ ;
+   $ set status=$ld_status;
+  @end;
+ @endif;
 @endif;