From: cas Date: Wed, 3 Nov 1999 18:05:01 +0000 (+0000) Subject: No comments X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=a76941a772e0dd2d50e075118a03bcf49d7fff52;p=occt-wok.git No comments --- diff --git a/src/WOKBuilderDef/CMPLRS.edl b/src/WOKBuilderDef/CMPLRS.edl index b9bea08..667daa3 100755 --- a/src/WOKBuilderDef/CMPLRS.edl +++ b/src/WOKBuilderDef/CMPLRS.edl @@ -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 -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 -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 diff --git a/src/WOKBuilderDef/CODEGEN.edl b/src/WOKBuilderDef/CODEGEN.edl index c114355..ea717b2 100755 --- a/src/WOKBuilderDef/CODEGEN.edl +++ b/src/WOKBuilderDef/CODEGEN.edl @@ -15,7 +15,12 @@ @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 diff --git a/src/WOKBuilderDef/COMMAND.edl b/src/WOKBuilderDef/COMMAND.edl index bc3f09d..8e14279 100755 --- a/src/WOKBuilderDef/COMMAND.edl +++ b/src/WOKBuilderDef/COMMAND.edl @@ -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"; diff --git a/src/WOKBuilderDef/LD.edl b/src/WOKBuilderDef/LD.edl index 8eb4586..b4f515d 100755 --- a/src/WOKBuilderDef/LD.edl +++ b/src/WOKBuilderDef/LD.edl @@ -110,5 +110,13 @@ $ %ExternRef \ @endif; +-- Definition du Linux + +@if ( %Station == "lin" ) then + @template LD_Footer ( %Station ) is + $ ; + @end; +@endif; + @endif; diff --git a/src/WOKBuilderDef/LDEXE.edl b/src/WOKBuilderDef/LDEXE.edl index bddd943..515bbe2 100755 --- a/src/WOKBuilderDef/LDEXE.edl +++ b/src/WOKBuilderDef/LDEXE.edl @@ -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; diff --git a/src/WOKBuilderDef/LDSHR.edl b/src/WOKBuilderDef/LDSHR.edl index caa60f3..05272e9 100755 --- a/src/WOKBuilderDef/LDSHR.edl +++ b/src/WOKBuilderDef/LDSHR.edl @@ -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; diff --git a/src/WOKBuilderDef/LINKSHR.edl b/src/WOKBuilderDef/LINKSHR.edl index 23feca9..e92a924 100755 --- a/src/WOKBuilderDef/LINKSHR.edl +++ b/src/WOKBuilderDef/LINKSHR.edl @@ -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;