]> OCCT Git - occt-wok.git/commitdiff
No comments
authorcas <cas@opencascade.com>
Wed, 3 Nov 1999 18:05:01 +0000 (18:05 +0000)
committercas <cas@opencascade.com>
Wed, 3 Nov 1999 18:05:01 +0000 (18:05 +0000)
src/WOKBuilderDef/CMPLRS.edl
src/WOKBuilderDef/CODEGEN.edl
src/WOKBuilderDef/COMMAND.edl
src/WOKBuilderDef/LD.edl
src/WOKBuilderDef/LDEXE.edl
src/WOKBuilderDef/LDSHR.edl
src/WOKBuilderDef/LINKSHR.edl

index b9bea08e0de14507f97a6749475a842dda53e6c0..667daa3b663d41b556ec51fabd4602395fea3676 100755 (executable)
@@ -500,6 +500,90 @@ $ -I%IncDirectory \
 
 @endif;
 
+--
+-- Templates Red Hat Linux (GNU c/c++)
+--
+
+ @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";
+   @set %CMPLRS_F77_ModeOpt = "-g     -DDEB -D_DEBUG";
+  @else
+   @set %CMPLRS_CXX_ModeOpt = "-O3 -DNDEBUG -DNo_Exception";
+   @set %CMPLRS_C_ModeOpt   = "-O3 -DNDEBUG -DNo_Exception";
+   @set %CMPLRS_F77ModeOpt  = "-O3 -DNDEBUG -DNo_Exception";
+  @endif;
+
+  @if ( %DBMS == "OBJS" ) then
+   @set %CMPLRS_CXX_DBMSOpt = "-DOBJS";
+  @endif;
+
+  @if ( %DBMS == "DFLT" ) then
+   @set %CMPLRS_CXX_DBMSOpt = "-DCSFDB";
+  @endif;
+
+  @set %CMPLRS_F77_Command = "/usr/bin/f77 ";
+  @set %CMPLRS_F77_Options = "-fPIC";
+
+  @set %CMPLRS_C_Command = "/usr/bin/gcc -fPIC";
+  @set %CMPLRS_C_Options = "-DLIN -DLININTEL -DCSFDB -fununsigned-char -Wall";
+
+  @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 %DBDirectives %CMPLRS_C_ModeOpt %IncDirectives -H -c %Source \^
+   $-o %OutputDir/%BaseName.o >& %TmpFile
+   $set stat = $status
+   $if ( $stat == 0 ) then
+   $ sed -e 's/ //g' -e '/:/d' %TmpFile | sort -u > %OutputDir/%BaseName.m
+   $endif
+   $if( -e %TmpFile ) grep ':' %TmpFile
+   $/bin/rm -f %TmpFile
+   $set status = $stat
+  @end;
+
+  @set %CMPLRS_CXX_Command = "/usr/bin/g++ -fPIC";
+  @set %CMPLRS_CXX_Options = "-DLIN -DLININTEL -DCSFDB -DNO_CXX_EXCEPTION -fununsigned-char -Wall";
+
+  @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
+   $%CMPLRS_CXX_Command %CMPLRS_CXX_Options \^
+   $%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 '/:/d' %TmpFile | sort -u > %OutputDir/%BaseName.m
+   $endif
+   $if( -e %TmpFile ) grep ':' %TmpFile
+   $/bin/rm -f %TmpFile
+   $set status = $stat
+  @end;
+
+ @endif;  -- "lin"
+
 @if ( defined( %UnitType ) )  then
 
   @if ( (%UnitType == "idl" || %UnitType == "server" || %UnitType == "executable") && %Station != "wnt" ) then
index c114355c1b5df6b4f46c52d3962f9b8316f948b4..ea717b21635ff659c8150d759ec6984331bcb593 100755 (executable)
 @set %CODEGEN_YACC_Extensions = "toto.yacc";
 
 @if ( %Station != "wnt" ) then
-@set %CODEGEN_FlexBisHome = "/PRODUCTS/flexbis-253-125";
+
+ @if ( %Station != "lin" ) then
+  @set %CODEGEN_FlexBisHome = "/PRODUCTS/flexbis-253-125";
+ @else
+  @set %CODEGEN_FlexBisHome = "/usr";
+ @endif;
 
 @template CODEGEN_LEX_Production ( %BaseName ) is
 $lex.%BaseName.c
index bc3f09d6a658209ac9fd45f7c9c89bfef58854cc..8e142791c6aa125b5d1e2a04fbfed91a922bf3fb 100755 (executable)
@@ -7,7 +7,7 @@
 @set %COMMAND_EDL = ""; 
 
 @if ( %Station != "wnt" ) then
-@if ( %Station != "hp" ) then
+@if ( %Station != "hp" && %Station != "lin") then
   @set %COMMAND_CPCmd = "/usr/bin/cp";
   @set %COMMAND_CHMODCmd = "/usr/bin/chmod";
   @set %COMMAND_MVCmd = "/usr/bin/mv";
index 8eb4586ab62cce7e6ca543ccf4ff09f006a5d480..b4f515df2c59551b8857634c0cde6361ec93a9a1 100755 (executable)
@@ -110,5 +110,13 @@ $ %ExternRef \
 
 @endif;
 
+-- Definition du Linux
+
+@if ( %Station == "lin" ) then
+ @template LD_Footer ( %Station ) is
+ $ ;
+ @end;
+@endif;
+
 @endif;
 
index bddd9430d709ab88ba3f1805fd88d6eec649e705..515bbe2e817343c6fb9b65a67d0f5ec7d2e775ea 100755 (executable)
@@ -57,5 +57,11 @@ $ /usr/bin/CC -n32 -mips3 -Wl,-mmap -multigot -call_shared -o %Target \
 
 @endif;
 
+@if( %Station == "lin" ) then
+ @template LDEXE_Header ( %Target ) is
+ $/usr/bin/g++ -o %Target \
+ @end;
+@endif;
+
 @endif;
 
index caa60f3bf0ce39a4795feab0c8c1388e76bc0ea1..05272e9be2f72cd7b35663d4f45bca6ce970bdd1 100755 (executable)
@@ -121,5 +121,31 @@ $ -all %LibDir/lib%LibName.a -none \
 
 @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;
+
+ @template LDSHR_Footer ( ) is
+  $ ;
+ @end;
+
+ @template LDSHR_CheckUndefHeader ( %Target, %LDSHR_DBMSOpt ) is
+  $/usr/bin/g++ -nostartfiles %LDSHR_DBMSOpt -o %Target \
+ @end;
+
+ @template LDSHR_CheckUndefFooter ( ) is
+  $ ;
+ @end;
+
+@endif;
+
 @endif;
 
index 23feca99db6997c62c98a733f7a181bb163e66f5..e92a9245c77ecfd24726bad68b143e88c9c1526f 100755 (executable)
@@ -111,5 +111,30 @@ $ -all %LibDir/lib%LibName.a -none \
 
 @endif;
 
+@if ( %Station == "lin" ) then
+ @set %LINKSHR_Footer          = "LINKSHR_Footer";
+ @set %LINKSHR_ArchiveFullPath = "LINKSHR_ArchiveFullPath";
+
+ @template LINKSHR_ArchiveFullPath ( ) is
+  $\^
+ @end;
+
+ @template LINKSHR_Header ( %Target, %LINKSHR_DBMSOpt ) is
+  $/usr/bin/g++ -shared %LINKSHR_DBMSOpt -o %Target \
+ @end;
+
+ @template LINKSHR_Footer ( ) is
+  $ ;
+ @end;
+
+ @template LINKSHR_CheckUndefHeader ( %Target, %LINKSHR_DBMSOpt ) is
+  $/usr/bin/g++ -nostartfiles %LINKSHR_DBMSOpt -o /dev/null \
+ @end;
+
+ @template LINKSHR_CheckUndefFooter ( ) is
+  $ ;
+ @end;
+
+@endif;
 @endif;