@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
@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;