]> OCCT Git - occt-wok.git/commitdiff
No comments
authorcas <cas@opencascade.com>
Mon, 21 Aug 2000 18:15:52 +0000 (18:15 +0000)
committercas <cas@opencascade.com>
Mon, 21 Aug 2000 18:15:52 +0000 (18:15 +0000)
src/WOKBuilderDef/CMPLRS.edl
src/WOKBuilderDef/CSF.edl
src/WOKBuilderDef/LINKSHR.edl

index 852c7a6789934a8397e6c2c30f4f75c3bfc6fc9a..ebb2a20d34c9aa01a0d7e642fee6138fd666b6ef 100755 (executable)
              %CMPLRS_CXX_DBMSOpt, %IncDirectives, %DBDirectives, %Source,
              %BaseName, %OutputDir, %TmpFile
             ) is
-   $cd %OutputDir
    $%CMPLRS_CXX_Command %CMPLRS_CXX_Options \^
    $-I/usr/java_dev2/include \
    $%CMPLRS_CXX_DBMSOpt %CMPLRS_CXX_ModeOpt %IncDirectives %DBDirectives  \^
    $-M  -c %Source -o %OutputDir/%BaseName.o 
    $set stat = $status
    $if ( $stat == 0 ) then
-   $ sed   -e 's#%OutputDir/%BaseName.o:##g' %BaseName.u | sort -u > %OutputDir/%BaseName.m
+   $ sed   -e 's#%OutputDir/%BaseName.o:##g' %OutputDir/%BaseName.u | sort -u > %OutputDir/%BaseName.m
    $endif
-   $/bin/rm -f %BaseName.u
+   $#/bin/rm -f %OutputDir/%BaseName.u
    $set status = $stat
   @end;
 
index 53830aad3d158b915caafdd7d4845ffc6871f554..b6e9c3032a29cc9b28ee2658043597c567318bce 100755 (executable)
       @set %CSF_TCL_INCLUDE = "/usr/include ";
 
       @set %X11_LIB = "/usr/X11R6/lib";
+--- POP : pour Mesa 3.0  on utilise MesaGL et MesaGLU
+--- A partir de Mesa 3.1 on peut utiliser GL et GLU
       @set %CSF_XwLibs = "-L/usr/X11R6/lib -lX11 -lXext -lXmu -lMesaGL -lMesaGLU -lglut -lXi";
+---      @set %CSF_XwLibs = "-L/usr/X11R6/lib -lX11 -lXext -lXmu -lGL -lGLU -lglut -lXi";
 
       @set %CSF_TclLibs = "-L/usr/lib -Xlinker -rpath -Xlinker /usr/lib -ltcl8.0"; 
       @set %CSF_TclTkLibs = "-L/usr/lib -Xlinker -rpath -Xlinker /usr/lib -ltk8.0 -L/usr/X11R6/lib -lX11";
index 5e95a513eac2ae8c7a42ffb28a524a7b5416bc70..394523d8a3608adf530f4268ebfae80b8894eba3 100755 (executable)
     $ set status=$ld_status
   @end;
  @endif;
-@endif;
+
+--     #######   ###   #     #     --
+--     #     #    #     #   #      --
+--     #     #    #      # #       --
+--     #######    #       #        --
+--     #     #    #      # #       --
+--     #     #    #     #   #      --
+--     #     #   ###   #     #     --
+
+ @if ( %Station == "aix" ) then
+
+  @set %LINKSHR_Footer          = "LINKSHR_Footer";
+  @set %LINKSHR_ArchiveFullPath = "LINKSHR_ArchiveFullPath";
+  @set %LINKSHR_ObjectRef       = "LINKSHR_ObjectRef";
+  @set %LINKSHR_ShortRef        = "LINKSHR_ShortRef";
+  @set %LINSHR_ShortRef         = "LD_ShortRef";
+
+  @template LINKSHR_ObjectRef ( %ObjectPath ) is
+   $\^
+  @end;
+
+  @template LINKSHR_ArchiveFullPath ( %LibName) is
+  $ lib%LibName.a \
+  $\^
+  @end;
+
+  @template LD_ShortRef ( %LibNameUsed ) is
+   $ -Ilib%LibNameUsed.exp \
+  @end;
+
+  @template LINKSHR_Header ( %Target, %LINKSHR_DBMSOpt , %LD_ObjList ) is 
+   $ set allLibPath  = `dirname %LD_ObjList`/../../lib/
+   $ set localud     = `basename %LD_ObjList .ObjList`
+   $ set locallib    = `dirname %LD_ObjList`/../${localud}/lib${localud}.a
+   $ mv -f $locallib $allLibPath
+   $ chmod 777 $allLibPath/lib${localud}.a
+   $/usr/ibmcxx/bin/makeC++SharedLib   -o %Target \
+   $ -bM:SRE \
+   $ -p 0 \
+  @end;
+
+  @template LINKSHR_Footer ( %Target, %LibName) is
+    $ -e$allLibPath/lib%LibName.imp \
+    $ -bnoentry ;
+    $ echo "#\!lib%LibName"             > $allLibPath/lib%LibName.exp
+    $ cat $allLibPath/lib%LibName.imp  >> $allLibPath/lib%LibName.exp
+    $ set ld_status=$status
+    $ if ( $?LIBPATH ) then
+    $  set ld_library_path="${LIBPATH}"
+    $ endif
+  @end;
+
+  @template LINKSHR_CheckUndefHeader (
+             %Target, %LINKSHR_DBMSOpt, %LD_LIBRARY_PATH
+            ) is 
+   $if ( $?LIBPATH ) then
+   $ setenv LIBPATH %LD_LIBRARY_PATH:${LIBPATH}
+   $else
+   $if ( $?LD_LIBRARY_PATH) then
+   $ setenv LIBPATH %LD_LIBRARY_PATH
+   $else 
+   $ setenv LIBPATH ""
+   $endif
+   $endif
+   $echo "Check of undefined symbols with LIBPATH : $LIBPATH" \
+---   $/usr/ccs/bin/ld -o /dev/null \
+  @end;
+
+  @template LINKSHR_CheckUndefFooter () is
+    $ ;
+    $ if ( $status ) then
+    $   echo "Check failed"
+    $ else
+    $   echo "Check successed"
+    $ endif
+    $ if ( $?ld_library_path ) then
+    $  setenv LIBPATH $ld_library_path
+    $ else
+    $  unsetenv LIBPATH
+    $ endif
+    $ set status=$ld_status
+  @end;
+
+
+ @endif;
+
+ @endif;