From: cas Date: Tue, 10 Jul 2001 15:27:28 +0000 (+0000) Subject: No comments X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=639b7e79fc406206d99d95015beb4ac12b8c79ec;p=occt-wok.git No comments --- diff --git a/src/WOKBuilderDef/CMPLRS.edl b/src/WOKBuilderDef/CMPLRS.edl index ebb2a20..a6e33e1 100755 --- a/src/WOKBuilderDef/CMPLRS.edl +++ b/src/WOKBuilderDef/CMPLRS.edl @@ -1,453 +1,631 @@ --- File: CMPLRS.edl --- Author: Jean GAUTIER --- 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"; - - @if ( %Station == "wnt" ) then - @set %CMPLRS_CXX_Extensions = "toto.cxx toto.cpp"; - - @template CMPLRS_C_Production ( %OutputDir, %BaseName ) is - $ %BaseName.obj %BaseName.m - @end; + @ifnotdefined( %CSF_EDL ) then + @uses "CSF.edl"; + @endif; - @template CMPLRS_CXX_Production ( %OutputDir, %BaseName ) is - $ %BaseName.obj %BaseName.m - @end; + @ifnotdefined( %CMPLRS_Unit_C_Options ) then + @set %CMPLRS_Unit_C_Options = "" ; + @endif; + @ifnotdefined( %CMPLRS_Unit_CXX_Options ) then + @set %CMPLRS_Unit_CXX_Options = "" ; + @endif; - @template CMPLRS_F77_Production ( %OutputDir, %BaseName ) is - $ %BaseName.obj %BaseName.m - @end; - @else - @set %CMPLRS_CXX_Extensions = "toto.cxx toto.C"; + @set %CMPLRS_C_PDBName = "PDBName"; + @set %CMPLRS_C_Object = "Object"; + @set %CMPLRS_C_Files = "Files"; + @set %CMPLRS_C_TmpFile = "DTmpFile"; + @set %CMPLRS_C_Header = "Header"; + @set %CMPLRS_C_InputDirective = "InputDirective"; + @set %CMPLRS_C_Directives = "Directives"; + @set %CMPLRS_C_Template = "CmdLine"; + @set %CMPLRS_C_Footer = "Footer"; + @set %CMPLRS_CXX_PDBName = "PDBName"; + @set %CMPLRS_CXX_Object = "Object"; + @set %CMPLRS_CXX_Files = "Files"; + @set %CMPLRS_CXX_TmpFile = "DTmpFile"; + @set %CMPLRS_CXX_Header = "Header"; + @set %CMPLRS_CXX_InputDirective = "InputDirective"; + @set %CMPLRS_CXX_Directives = "Directives"; + @set %CMPLRS_CXX_Template = "CmdLine"; + @set %CMPLRS_CXX_Footer = "Footer"; + @set %CMPLRS_F77_PDBName = "PDBName"; + @set %CMPLRS_F77_Object = "Object"; + @set %CMPLRS_F77_Files = "Files"; + @set %CMPLRS_F77_TmpFile = "DTmpFile"; + @set %CMPLRS_F77_Header = "Header"; + @set %CMPLRS_F77_InputDirective = "InputDirective"; + @set %CMPLRS_F77_Directives = "Directives"; + @set %CMPLRS_F77_Template = "CmdLine"; + @set %CMPLRS_F77_Footer = "Footer"; + + @set %CMPLRS_CXX_Extensions = "toto.cxx toto.C toto.cpp"; + @set %CMPLRS_C_Extensions = "toto.c"; + @set %CMPLRS_F77_Extensions = "toto.f "; + @set %CMPLRS_Tools = "CMPLRS_C CMPLRS_CXX CMPLRS_F77"; - @template CMPLRS_C_Production ( %OutputDir, %BaseName ) is - $ %BaseName.o %BaseName.m - @end; + @if ( %CSF_CREATECOMP_DEP == "Yes" ) then + @set %CMPLRS_CXX_WOKDirectives = "-MD "; + @set %CMPLRS_C_WOKDirectives = "-MD "; + @else + @set %CMPLRS_CXX_WOKDirectives = ""; + @set %CMPLRS_C_WOKDirectives = ""; + @endif; - @template CMPLRS_CXX_Production ( %OutputDir, %BaseName ) is - $ %BaseName.o %BaseName.m - @end; - @template CMPLRS_F77_Production ( %OutputDir, %BaseName ) is - $ %BaseName.o %BaseName.m - @end; + @if ( %DBMS == "OBJS" ) then + @set %CMPLRS_CXX_DBMSOpt = "-DOBJS"; @endif; - @template CMPLRS_IncDirective (%IncDirectory) is - $ -I%IncDirectory \ - @end; - - @if (%DBMS == "DFLT") then - @set %DBMSOpt = "-DCSFDB"; + @if ( %DBMS == "DFLT" ) then + @set %CMPLRS_CXX_DBMSOpt = "-DCSFDB"; @endif; @ifnotdefined ( %DebugMode ) then - @set %DebugMode = "False"; - @endif; - - @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 -o - @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; + @set %DebugMode = "False"; @endif; --- ##### # # # # -- --- # # # # ## # -- --- # # # # # # -- --- ##### # # # # # -- --- # # # # # # -- --- # # # # # ## -- --- ##### ##### # # -- + @if ( %Station == "wnt" ) then + --WARNING : For WNT, it is necessary to have $set symbol_name=%symbol_value% + -- WITHOUT BLANK before and after equal sign ! + -- WITHOUT double quote + + @set %CMPLRS_CXX_InOutPut = "-c -Tp -Fo -Fd" ; + @set %CMPLRS_C_InOutPut = "-c -Tc -Fo -Fd" ; + @set %CMPLRS_F77_InOutPut = "-c -object: -pdbfile:" ; + + @ifdefined ( %UnitType ) then + @if (%UnitType != "executable") then + @string %CMPLRS_ExportBehaviour = " -D__" %Entity "_DLL"; + @else + @set %CMPLRS_ExportBehaviour = " -DStandard_EXPORT= "; + @endif; + @endif; + + @ifnotdefined ( %UnitType ) then + @set %CMPLRS_ExportBehaviour = ""; + @endif; + + @template CMPLRS_C_PDBName ( %PDBName ) is + $-Fd%PDBName \^ + @end; + + @template CMPLRS_CXX_PDBName ( %PDBName ) is + $-Fd%PDBName \^ + @end; + + @template CMPLRS_F77_PDBName ( %PDBName ) is + $-pdbfile:%PDBName \^ + @end; + + @template CMPLRS_C_Files ( %InputDir , %Source , + %OutputDir , %ObjectName ) is + $-c -Tc %InputDir/%Source -Fo%OutputDir/%ObjectName \^ + @end; + + @template CMPLRS_CXX_Files ( %InputDir , %Source , + %OutputDir , %ObjectName ) is + $-c -Tp %InputDir/%Source -Fo%OutputDir/%ObjectName \^ + @end; + + @template CMPLRS_F77_Files ( %InputDir , %Source , + %OutputDir , %ObjectName ) is + $-c %InputDir/%Source -object:%OutputDir/%ObjectName \^ + @end; + + @template CMPLRS_C_Object ( %BaseName ) is + $%BaseName.obj \^ + @end; + + @template CMPLRS_CXX_Object ( %BaseName ) is + $%BaseName.obj \^ + @end; + + @template CMPLRS_F77_Object ( %BaseName ) is + $%BaseName.obj \^ + @end; + + @template CMPLRS_C_Production ( %OutputDir, %BaseName ) is + $ %BaseName.obj %BaseName.m + @end; + + @template CMPLRS_CXX_Production ( %OutputDir, %BaseName ) is + $ %BaseName.obj %BaseName.m + @end; + + @template CMPLRS_F77_Production ( %OutputDir, %BaseName ) is + $ %BaseName.obj %BaseName.m + @end; - @if ( %Station == "sun" ) then - @template CMPLRS_DBDirective (%DBDirectory) is - $ -ptr%DBDirectory \ - @end; + @else + --WARNING : For UNIX, it is necessary to have $set symbol_name="symbol_value" + -- WITH double quote - @if ( %DebugMode == "True" ) then - @set %CMPLRS_CXX_ModeOpt = "-g0 -DDEB +w"; - @set %CMPLRS_C_ModeOpt = "-g0 -DDEB +w"; - @set %CMPLRS_F77_ModeOpt = "-g"; - @endif; + @set %CMPLRS_CXX_InOutPut = "-c -o " ; + @set %CMPLRS_C_InOutPut = "-c -o " ; + @set %CMPLRS_F77_InOutPut = "-c -o " ; - @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_ExportBehaviour = "" ; - @set %CMPLRS_F77_Command = "f77 "; - @set %CMPLRS_F77_Options = "-PIC"; + @template CMPLRS_C_PDBName ( %PDBName ) is + $ \^ + @end; - @if ( %DBMS == "OBJS" ) then - @set %CMPLRS_CXX_DBMSOpt = "-mt -vdelx -DOBJS -I/PRODUCTS/OS5.0/sunpro/include"; - @endif; + @template CMPLRS_CXX_PDBName ( %PDBName ) is + $ \^ + @end; - @if ( %DBMS == "DFLT" ) then - @set %CMPLRS_CXX_DBMSOpt = "-vdelx -DCSFDB"; - @endif; + @template CMPLRS_F77_PDBName ( %PDBName ) is + $ \^ + @end; - @set %CMPLRS_C_Command = "/opt/DEV5_1/SUNWspro/bin/cc -K PIC"; - @set %CMPLRS_C_Options = "-Usun -DSOLARIS"; + @template CMPLRS_C_Files ( %InputDir , %Source , + %OutputDir , %ObjectName ) is + $-c %InputDir/%Source -o %OutputDir/%ObjectName \ + @end; - @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_CXX_Files ( %InputDir , %Source , + %OutputDir , %ObjectName ) is + $-c %InputDir/%Source -o %OutputDir/%ObjectName \ + @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 -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; + @template CMPLRS_F77_Files ( %InputDir , %Source , + %OutputDir , %ObjectName ) is + $-c %InputDir/%Source -o %OutputDir/%ObjectName \ + @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_C_Object ( %BaseName ) is + $%BaseName.o \ + @end; - @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 -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 \ - $ -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/cxx_repository \ - @end; + @template CMPLRS_CXX_Object ( %BaseName ) is + $%BaseName.o \ + @end; - @set %CMPLRS_F77_Command = "f77 "; - @set %CMPLRS_F77_Options = "-PIC"; + @template CMPLRS_F77_Object ( %BaseName ) is + $%BaseName.o \ + @end; - @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_Production ( %OutputDir, %BaseName ) is + $ %BaseName.o %BaseName.m + @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_CXX_Production ( %OutputDir, %BaseName ) is + $ %BaseName.o %BaseName.m + @end; - @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"; - @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 -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 -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; + @template CMPLRS_F77_Production ( %OutputDir, %BaseName ) is + $ %BaseName.o %BaseName.m + @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; - - @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; + @template CMPLRS_IncDirective (%IncDirectory) is + $-I%IncDirectory \ + @end; - @set %CMPLRS_C_Command = "cc -signed -n32 -mips3 "; - @set %CMPLRS_C_Options = "-DIRIX"; + @if ( %Station != "wnt" ) then + @template CMPLRS_ValDirective (%Symbol) is + $${%Symbol}\^ + @end; + @template CMPLRS_SetDirective (%Symbol , %Value) is + $setenv %Symbol "%Value"\^ + @end; + + @template CMPLRS_UnitSetDirectives ( + %IncDirectives , + %OutputDir ) is + $set IncDirectives="%IncDirectives" + $set OutputDir="%OutputDir" + @end; + + @template CMPLRS_C_Header ( + %Unit_C_Options , + %CMPLRS_C_ModeOpt, + %CMPLRS_ExportBehaviour , + %C_PDBName ) is + $set Unit_C_Options="%Unit_C_Options" + $set C_ModeOpt="%CMPLRS_C_ModeOpt" + $set C_Export="%CMPLRS_ExportBehaviour" + $set C_PDBName="%C_PDBName" + @end; + + @template CMPLRS_CXX_Header ( + %Unit_CXX_Options , + %CMPLRS_CXX_ModeOpt , + %CMPLRS_ExportBehaviour , + %CMPLRS_CXX_DBMSOpt , + %CXX_PDBName ) is + $set Unit_CXX_Options="%Unit_CXX_Options" + $set CXX_ModeOpt="%CMPLRS_CXX_ModeOpt" + $set CXX_Export="%CMPLRS_ExportBehaviour" + $set CXX_DBMSOpt="%CMPLRS_CXX_DBMSOpt" + $set CXX_PDBName="%CXX_PDBName" + @end; + + @template CMPLRS_F77_Header ( + %CMPLRS_F77_ModeOpt , + %F77_PDBName ) is + $set F77_ModeOpt="%CMPLRS_F77_ModeOpt" + $set F77_PDBName="%F77_PDBName" + @end; - @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 -o - @end; + @else + @template CMPLRS_ValDirective (%Symbol) is + $%%Symbol%\^ + @end; + @template CMPLRS_SetDirective (%Symbol , %Value) is + $set %Symbol=%Value\^ + @end; + + @template CMPLRS_UnitSetDirectives ( + %IncDirectives , + %OutputDir ) is + $set IncDirectives=%IncDirectives + $set OutputDir=%OutputDir + @end; + + @template CMPLRS_C_Header ( + %Unit_C_Options , + %CMPLRS_C_ModeOpt, + %CMPLRS_ExportBehaviour , + %C_PDBName ) is + $set Unit_C_Options=%Unit_C_Options + $set C_ModeOpt=%CMPLRS_C_ModeOpt + $set C_Export=%CMPLRS_ExportBehaviour + $set C_PDBName=%C_PDBName + @end; + + @template CMPLRS_CXX_Header ( + %Unit_CXX_Options , + %CMPLRS_CXX_ModeOpt , + %CMPLRS_ExportBehaviour , + %CMPLRS_CXX_DBMSOpt , + %CXX_PDBName ) is + $set Unit_CXX_Options=%Unit_CXX_Options + $set CXX_ModeOpt=%CMPLRS_CXX_ModeOpt + $set CXX_Export=%CMPLRS_ExportBehaviour + $set CXX_DBMSOpt=%CMPLRS_CXX_DBMSOpt + $set CXX_PDBName=%CXX_PDBName + @end; + + @template CMPLRS_F77_Header ( + %CMPLRS_F77_ModeOpt , + %F77_PDBName ) is + $set F77_ModeOpt=%CMPLRS_F77_ModeOpt + $set F77_PDBName=%F77_PDBName + @end; + + @endif ; + + @set %CMPLRS_CXX_COMPILER = %CSF_CXX_COMPILER ; + @set %CMPLRS_CXX_SysOptions = %CSF_CXX_SysOptions ; + @set %CMPLRS_CXX_Options = %CSF_CXX_Options ; + @set %CMPLRS_CXX_INCLUDE = %CSF_CXX_INCLUDE ; + + @set %CMPLRS_C_COMPILER = %CSF_C_COMPILER ; + @set %CMPLRS_C_SysOptions = %CSF_C_SysOptions; + @set %CMPLRS_C_Options = %CSF_C_Options; + @set %CMPLRS_C_INCLUDE = %CSF_C_INCLUDE ; + + @set %CMPLRS_F77_COMPILER = %CSF_F77_COMPILER ; + @set %CMPLRS_F77_SysOptions = %CSF_F77_SysOptions; + @set %CMPLRS_F77_Options = %CSF_F77_Options; + + + @template CMPLRS_F77_CmdLine ( %CMPLRS_F77_COMPILER , %CMPLRS_F77_SysOptions , %CMPLRS_F77_ModeOpt , + %CMPLRS_F77_WOKDirectives , %Source , %OutputDir , %BaseName , %Entity ) is + $%CMPLRS_F77_COMPILER %CMPLRS_F77_SysOptions %CMPLRS_F77_ModeOpt %CMPLRS_F77_WOKDirectives -c %Source -o %OutputDir/%BaseName.o + $echo '$F77_COMPILER %CMPLRS_F77_SysOptions %CMPLRS_F77_ModeOpt $INCDIRS -c $SOURCE -o $OBJECT' > %OutputDir/../%Entity/.adm/f77.compile + $ touch %OutputDir/%BaseName.m + @end; + @template CMPLRS_F77_OptLine ( %CMPLRS_F77_COMPILER , %CMPLRS_F77_SysOptions , %CMPLRS_F77_ModeOpt ) is + $Following parameters make up F77 compilation command in this order: + $CMPLRS_F77_COMPILER = %CMPLRS_F77_COMPILER + $CMPLRS_F77_SysOptions = %CMPLRS_F77_SysOptions + $CMPLRS_F77_ModeOpt = %CMPLRS_F77_ModeOpt + @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 - $ /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; +-- # ### # # -- +-- # # ## # -- +-- # # # # # -- +-- # # # # # -- +-- # # # # # -- +-- # # # ## -- +-- ####### ### # # -- - @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 ( %Station == "lin" ) then - @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/PRODUCTS/java1.2.2/include \ - $ -I/PRODUCTS/java1.2.2/include/irix \ - $%IncDirectives %DBDirectives -MDupdate -c -o - @end; + @template CMPLRS_C_DTmpFile (%TmpFile) is + $>& %TmpFile \ + @end; + + @template CMPLRS_CXX_DTmpFile (%TmpFile) is + $>& %TmpFile \ + @end; + + @template CMPLRS_F77_DTmpFile (%TmpFile) is + $ \ + @end; + + @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_F77_ModeOpt = "-O3 -DNDEBUG -DNo_Exception"; + @endif; + + @set %CMPLRS_CXX_WOKDirectives = "-MD "; + @set %CMPLRS_C_WOKDirectives = "-MD "; + @set %CMPLRS_F77_WOKDirectives = ""; + + + @template CMPLRS_F77_OptLine ( + %CMPLRS_F77_COMPILER , + %CMPLRS_F77_SysOptions , + %CMPLRS_F77_ModeOpt + ) is + $Following parameters make up F77 compilation command in this order: + $CMPLRS_F77_COMPILER = %CMPLRS_F77_COMPILER + $CMPLRS_F77_SysOptions = %CMPLRS_F77_SysOptions + $CMPLRS_F77_ModeOpt = %CMPLRS_F77_ModeOpt + @end; + + @template CMPLRS_F77_CmdLine ( %CMPLRS_F77_COMPILER , %CMPLRS_F77_SysOptions , %CMPLRS_F77_ModeOpt , + %CMPLRS_F77_WOKDirectives , %Source , %OutputDir , %BaseName , %Entity ) is + $%CMPLRS_F77_COMPILER %CMPLRS_F77_SysOptions %CMPLRS_F77_ModeOpt %CMPLRS_F77_WOKDirectives -c %Source -o %OutputDir/%BaseName.o + $echo '$F77_COMPILER %CMPLRS_F77_SysOptions %CMPLRS_F77_ModeOpt $INCDIRS -c $SOURCE -o $OBJECT' > %OutputDir/../%Entity/.adm/f77.compile + $ touch %OutputDir/%BaseName.m + @end; + + + @template CMPLRS_C_OptLine (%CMPLRS_C_COMPILER , + %CMPLRS_C_SysOptions , + %CMPLRS_C_Options , + %CMPLRS_C_ModeOpt , + %IncDirectives , + %CMPLRS_Unit_C_Options , + %CMPLRS_C_WOKDirectives , + %Entity ) is + $Following parameters make up C compilation command in this order: + $CMPLRS_C_COMPILER = %CMPLRS_C_COMPILER + $CMPLRS_C_SysOptions = %CMPLRS_C_SysOptions + $CMPLRS_C_Options = %CMPLRS_C_Options + $CMPLRS_Unit_C_Options = %CMPLRS_Unit_C_Options + $CMPLRS_C_WOKDirectives= %CMPLRS_C_WOKDirectives + $Dynamic include directives are : + $%IncDirectives + @end; + @template CMPLRS_C_CmdLine ( %CMPLRS_C_COMPILER , + %CMPLRS_C_SysOptions , + %CMPLRS_C_Options , + %CMPLRS_C_ModeOpt , +-- %C_Export , + %IncDirectives , + %CMPLRS_Unit_C_Options , + %CMPLRS_C_WOKDirectives , + %Source , + %BaseName, + %OutputDir , + %TmpFile , %Entity ) is + $%CMPLRS_C_COMPILER %CMPLRS_C_SysOptions %CMPLRS_C_Options %CMPLRS_C_ModeOpt %IncDirectives %CMPLRS_Unit_C_Options %CMPLRS_C_WOKDirectives -c %Source -o %OutputDir/%BaseName.o + $set stat = $status + $echo '$C_COMPILER %CMPLRS_C_SysOptions %CMPLRS_C_Options $INCDIRS %CMPLRS_C_ModeOpt %CMPLRS_Unit_C_Options %CMPLRS_C_WOKDirectives -c $SOURCE -o $OBJECT' > %OutputDir/../%Entity/.adm/c.compile + $if ( $stat == 0 ) then + $ if ( -e %OutputDir/%BaseName.d ) then + $ sed -e '/:/d' -e 's/\\/ /g' %OutputDir/%BaseName.d | tr ' ' '\012' | sort -u > %OutputDir/%BaseName.m + $ endif + $endif + $set status = $stat + @end; + + @template CMPLRS_CXX_OptLine (%CMPLRS_CXX_COMPILER, + %CMPLRS_CXX_SysOptions , + %CMPLRS_CXX_Options , + %CMPLRS_CXX_ModeOpt , %CMPLRS_CXX_DBMSOpt , + %CMPLRS_CXX_INCLUDE , + %CMPLRS_CXX_WOKDirectives , + %IncDirectives , + %DBDirectives , + %Entity ) is + $Following parameters make up C++ compilation command in this order: + $CMPLRS_CXX_COMPILER = %CMPLRS_CXX_COMPILER + $CMPLRS_CXX_SysOptions = %CMPLRS_CXX_SysOptions + $CMPLRS_CXX_Options = %CMPLRS_CXX_Options + $CMPLRS_CXX_ModeOpt = %CMPLRS_CXX_ModeOpt + $CMPLRS_CXX_DBMSOpt = %CMPLRS_CXX_DBMSOpt + $CMPLRS_CXX_INCLUDE = %CMPLRS_CXX_INCLUDE + $CMPLRS_CXX_WOKDirectives = %CMPLRS_CXX_WOKDirectives + $Dynamic include directives are : + $%IncDirectives + @end; + + @template CMPLRS_CXX_CmdLine ( %CMPLRS_CXX_COMPILER, + %CMPLRS_CXX_SysOptions , + %CMPLRS_CXX_Options , + %CMPLRS_CXX_ModeOpt , %CMPLRS_CXX_DBMSOpt , + %CMPLRS_CXX_INCLUDE , + %CMPLRS_CXX_WOKDirectives , + %IncDirectives , + %DBDirectives , + %Source, + %BaseName, + %OutputDir , + %TmpFile , %Entity ) is + $%CMPLRS_CXX_COMPILER %CMPLRS_CXX_SysOptions %CMPLRS_CXX_Options %CMPLRS_CXX_INCLUDE %CMPLRS_CXX_DBMSOpt %CMPLRS_CXX_ModeOpt %IncDirectives %DBDirectives %CMPLRS_CXX_WOKDirectives -c %Source -o %OutputDir/%BaseName.o >& %TmpFile + $set stat = $status + $echo '$CXX_COMPILER %CMPLRS_CXX_SysOptions %CMPLRS_CXX_Options $INCDIRS %CMPLRS_CXX_INCLUDE %CMPLRS_CXX_DBMSOpt %CMPLRS_CXX_ModeOpt %DBDirectives -c $SOURCE -o $OBJECT' > %OutputDir/../%Entity/.adm/cxx.compile + $if ( $stat == 0 ) then + $ if ( -e %OutputDir/%BaseName.d ) then + $ sed -e '/:/d' -e 's/\\/ /g' %OutputDir/%BaseName.d | tr ' ' '\012' | sort -u > %OutputDir/%BaseName.m + $ endif + $endif + $if( -e %TmpFile ) grep ':' %TmpFile + $/bin/rm -f %TmpFile + $set status = $stat + @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 \ - $ -I/PRODUCTS/java1.2.2/include \ - $ -I/PRODUCTS/java1.2.2/include/irix \ - $ %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; --- # # ###### # # # # -- --- # # # # # # # # -- --- # # # # # # # # -- --- ####### ###### ##### # # # -- --- # # # # # # # -- --- # # # # # # # -- --- # # # ##### # # -- - @if ( %Station == "hp" ) then - @template CMPLRS_DBDirective (%DBDirectory) is - $ -ptr%DBDirectory/ptrepository \ - @end; - - @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 -Aa +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 -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 -o - @end; + @if ( %Station == "sun" ) then + @template CMPLRS_DBDirective (%DBDirectory) is + $ -ptr%DBDirectory \ + @end; + + @template CMPLRS_C_DTmpFile (%TmpFile) is + $ \ + @end; + + @template CMPLRS_CXX_DTmpFile (%TmpFile) is + $>& %TmpFile \ + @end; + + @template CMPLRS_F77_DTmpFile (%TmpFile) is + $ \ + @end; + + @if ( %DebugMode == "True" ) then + @set %CMPLRS_CXX_ModeOpt = "-g0 -DDEB +w"; + @set %CMPLRS_C_ModeOpt = "-g0 -DDEB +w"; + @set %CMPLRS_F77_ModeOpt = "-g"; + @else + @set %CMPLRS_CXX_ModeOpt = "-O2 -DNo_Exception +w "; + @set %CMPLRS_C_ModeOpt = "-O2 -DNo_Exception +w "; + @set %CMPLRS_F77_ModeOpt = "-O2"; + @endif; + + @set %CMPLRS_CXX_WOKDirectives = "-H "; + @set %CMPLRS_C_WOKDirectives = ""; + @set %CMPLRS_F77_WOKDirectives = ""; + + @if ( %DBMS == "OBJS" ) then + @set %CMPLRS_CXX_DBMSOpt = "-mt -DOBJS -I/PRODUCTS/OS5.0/sunpro/include"; + @endif; + + @template CMPLRS_F77_OptLine ( + %CMPLRS_F77_COMPILER , + %CMPLRS_F77_SysOptions , + %CMPLRS_F77_ModeOpt + ) is + $Following parameters make up F77 compilation command in this order: + $CMPLRS_F77_COMPILER = %CMPLRS_F77_COMPILER + $CMPLRS_F77_SysOptions = %CMPLRS_F77_SysOptions + $CMPLRS_F77_ModeOpt = %CMPLRS_F77_ModeOpt + @end; + + @template CMPLRS_F77_CmdLine ( %CMPLRS_F77_COMPILER , %CMPLRS_F77_SysOptions , %CMPLRS_F77_ModeOpt , + %CMPLRS_F77_WOKDirectives , %Source , %OutputDir , %BaseName , %Entity ) is + $%CMPLRS_F77_COMPILER %CMPLRS_F77_SysOptions %CMPLRS_F77_ModeOpt %CMPLRS_F77_WOKDirectives -c %Source -o %OutputDir/%BaseName.o + $echo '$F77_COMPILER %CMPLRS_F77_SysOptions %CMPLRS_F77_ModeOpt $INCDIRS -c $SOURCE -o $OBJECT' > %OutputDir/../%Entity/.adm/f77.compile + $ touch %OutputDir/%BaseName.m + @end; + + + @template CMPLRS_C_OptLine (%CMPLRS_C_COMPILER , + %CMPLRS_C_SysOptions , + %CMPLRS_C_Options , + %CMPLRS_C_ModeOpt , + %IncDirectives , + %CMPLRS_Unit_C_Options , + %CMPLRS_C_WOKDirectives , + %Entity ) is + $Following parameters make up C compilation command in this order: + $CMPLRS_C_COMPILER = %CMPLRS_C_COMPILER + $CMPLRS_C_SysOptions = %CMPLRS_C_SysOptions + $CMPLRS_C_Options = %CMPLRS_C_Options + $CMPLRS_Unit_C_Options = %CMPLRS_Unit_C_Options + $CMPLRS_C_WOKDirectives= %CMPLRS_C_WOKDirectives + $Dynamic include directives are : + $%IncDirectives + @end; + + @template CMPLRS_C_CmdLine ( %CMPLRS_C_COMPILER , + %CMPLRS_C_SysOptions , + %CMPLRS_C_Options , + %CMPLRS_C_ModeOpt , + %IncDirectives , + %CMPLRS_Unit_C_Options , + %CMPLRS_C_WOKDirectives , + %Source , + %BaseName, + %OutputDir , + %TmpFile , %Entity ) is + + $%CMPLRS_C_COMPILER %CMPLRS_C_SysOptions %CMPLRS_C_Options %CMPLRS_C_ModeOpt %IncDirectives %CMPLRS_Unit_C_Options %CMPLRS_C_WOKDirectives -c %Source -o %OutputDir/%BaseName.o + $set stat = $status + $echo '$C_COMPILER %CMPLRS_C_SysOptions %CMPLRS_C_Options $INCDIRS %CMPLRS_C_ModeOpt -c $SOURCE -o $OBJECT' > %OutputDir/../%Entity/.adm/c.compile + $if ( $stat == 0 ) then + $ cpp %IncDirectives -Usun -DSOLARIS -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; + + @template CMPLRS_CXX_OptLine (%CMPLRS_CXX_COMPILER, + %CMPLRS_CXX_SysOptions , + %CMPLRS_CXX_Options , + %CMPLRS_CXX_ModeOpt , + %CMPLRS_CXX_DBMSOpt , + %CMPLRS_CXX_INCLUDE , + %CMPLRS_CXX_WOKDirectives , + %IncDirectives , + %DBDirectives , + %Entity ) is + $Following parameters make up C++ compilation command in this order: + $CMPLRS_CXX_COMPILER = %CMPLRS_CXX_COMPILER + $CMPLRS_CXX_SysOptions = %CMPLRS_CXX_SysOptions + $CMPLRS_CXX_Options = %CMPLRS_CXX_Options + $CMPLRS_CXX_ModeOpt = %CMPLRS_CXX_ModeOpt + $CMPLRS_CXX_DBMSOpt = %CMPLRS_CXX_DBMSOpt + $CMPLRS_CXX_INCLUDE = %CMPLRS_CXX_INCLUDE + $CMPLRS_CXX_WOKDirectives = %CMPLRS_CXX_WOKDirectives + $Dynamic include directives are : + $%IncDirectives + @end; + + @template CMPLRS_CXX_CmdLine ( %CMPLRS_CXX_COMPILER, + %CMPLRS_CXX_SysOptions , + %CMPLRS_CXX_Options , + %CMPLRS_CXX_ModeOpt , + %CMPLRS_CXX_DBMSOpt , + %CMPLRS_CXX_INCLUDE , + %CMPLRS_CXX_WOKDirectives , + %IncDirectives , + %DBDirectives , + %Source, + %BaseName, + %OutputDir , + %TmpFile , %Entity) is + $%CMPLRS_CXX_COMPILER %CMPLRS_CXX_SysOptions %CMPLRS_CXX_Options %CMPLRS_CXX_INCLUDE %CMPLRS_CXX_DBMSOpt %CMPLRS_CXX_ModeOpt %IncDirectives %DBDirectives %CMPLRS_CXX_WOKDirectives -c %Source -o %OutputDir/%BaseName.o >& %TmpFile + $set stat = $status + $echo '$CXX_COMPILER %CMPLRS_CXX_SysOptions %CMPLRS_CXX_Options $INCDIRS %CMPLRS_CXX_INCLUDE %CMPLRS_CXX_DBMSOpt %CMPLRS_CXX_ModeOpt -c $SOURCE -o $OBJECT' > %OutputDir/../%Entity/.adm/cxx.compile + $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; - @template CMPLRS_CXX_CmdLine ( - %CMPLRS_CXX_Command, %CMPLRS_CXX_Options, %CMPLRS_CXX_ModeOpt, - %CMPLRS_CXX_DBMSOpt, %IncDirectives, %Source, %BaseName, %OutputDir - ) is - $%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; - -- # # # # ####### -- -- # # # ## # # -- -- # # # # # # # -- @@ -457,203 +635,391 @@ -- ## ## # # # -- @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; - - @if ( %DBMS == "OBJS" ) then - @set %CMPLRS_CXX_DBMSOpt = "-DOBJS"; - @endif; - - @if ( %DBMS == "DFLT" ) then - @set %CMPLRS_CXX_DBMSOpt = "-DCSFDB"; - @endif; - - @ifdefined ( %UnitType ) then - @if (%UnitType != "executable") then - @string %CMPLRS_ExportBehaviour = " -D__" %Entity "_DLL"; - @else - @set %CMPLRS_ExportBehaviour = " -DStandard_EXPORT= "; - @endif; - @endif; + @template CMPLRS_C_DTmpFile (%TmpFile) is + $ ; + @end; + + @template CMPLRS_CXX_DTmpFile (%TmpFile) is + $ ; + @end; + + @template CMPLRS_F77_DTmpFile (%TmpFile) is + $ ; + @end; + + @if ( %DebugMode == "True" ) then + @set %CMPLRS_CXX_ModeOpt = "-DDEB -D_DEBUG"; + @set %CMPLRS_C_ModeOpt = "-DDEB -D_DEBUG"; + @set %CMPLRS_F77_ModeOpt = "-DDEB -D_DEBUG"; + @else + @set %CMPLRS_CXX_ModeOpt = "-DNDEBUG -DNo_Exception"; + @set %CMPLRS_C_ModeOpt = "-DNDEBUG -DNo_Exception"; + @set %CMPLRS_F77_ModeOpt = "-DNDEBUG -DNo_Exception"; + @endif; + + @set %CMPLRS_CXX_WOKDirectives = ""; + @set %CMPLRS_C_WOKDirectives = ""; + @set %CMPLRS_F77_WOKDirectives = ""; + + @if ( %DBMS == "OBJS" ) then + @set %CMPLRS_CXX_DBMSOpt = "-DOBJS"; + @endif; + + @template CMPLRS_C_Footer ( + %CMPLRS_C_Options, + %CMPLRS_ExportBehaviour , + %IncDirectives, + %Unit_C_Options , + %InputDir , + %Source, + %BaseName, + %OutputDir ) is + $set cmplrs_status=%status%; + $@acpp.exe -M -m -+ %CMPLRS_C_Options -D_DLL -D_MT %CMPLRS_ExportBehaviour %IncDirectives %Unit_C_Options \^ + $ %InputDir/%Source -o %OutputDir%BaseName.m; + $set status=%cmplrs_status%; + @end; + + @template CMPLRS_CXX_Footer( + %CMPLRS_CXX_Options, + %CMPLRS_ExportBehaviour , + %IncDirectives, + %Unit_CXX_Options , + %InputDir , + %Source, + %BaseName, + %OutputDir) is + $set cmplrs_status=%status%; + $@acpp.exe -M -m -+ %CMPLRS_CXX_Options -D__cplusplus -D_DLL -D_MT %CMPLRS_ExportBehaviour %IncDirectives %Unit_CXX_Options \^ + $ %InputDir/%Source -o %OutputDir%BaseName.m; + $set status=%cmplrs_status%; + @end; + + +--> wnt + + @template CMPLRS_CXX_OptLine (%CMPLRS_CXX_COMPILER, + %CMPLRS_CXX_SysOptions , + %CMPLRS_CXX_Options , + %CMPLRS_ExportBehaviour , + %CMPLRS_CXX_ModeOpt , + %CMPLRS_CXX_DBMSOpt , + %CMPLRS_CXX_INCLUDE , + %CMPLRS_CXX_WOKDirectives , + %IncDirectives , + %DBDirectives , + %Entity ) is + $Following parameters make up C++ compilation command in this order: + $CMPLRS_CXX_COMPILER = %CMPLRS_CXX_COMPILER + $CMPLRS_CXX_SysOptions = %CMPLRS_CXX_SysOptions + $CMPLRS_CXX_Options = %CMPLRS_CXX_Options + $CMPLRS_ExportBehaviour = %CMPLRS_ExportBehaviour + $CMPLRS_CXX_ModeOpt = %CMPLRS_CXX_ModeOpt + $CMPLRS_CXX_DBMSOpt = %CMPLRS_CXX_DBMSOpt + $CMPLRS_CXX_INCLUDE = %CMPLRS_CXX_INCLUDE + $CMPLRS_CXX_WOKDirectives = %CMPLRS_CXX_WOKDirectives + $Dynamic include directives are : + $%IncDirectives + @end; - @ifnotdefined ( %UnitType ) then - @set %CMPLRS_ExportBehaviour = ""; - @endif; - @set %CMPLRS_C_Command = "D:/DevTools/VStudio/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 -Fo -Fd%PDBName - @end; - - @template CMPLRS_C_CmdLine ( - %CMPLRS_C_Command, %CMPLRS_C_Options, %CMPLRS_C_ModeOpt, - %IncDirectives, %PDBName, %Source, %BaseName, %OutputDir, - %TmpFile, %CMPLRS_ExportBehaviour + @template CMPLRS_CXX_CmdLine ( + %CMPLRS_CXX_COMPILER, %CMPLRS_CXX_SysOptions, %CMPLRS_CXX_Options, %CMPLRS_CXX_ModeOpt, + %IncDirectives, %PDBName, %Source, + %BaseName, %OutputDir, %CMPLRS_ExportBehaviour ) is - $%CMPLRS_C_Command %CMPLRS_C_Options %CMPLRS_ExportBehaviour\^ - $ %IncDirectives %CMPLRS_C_ModeOpt \^ - $ -Fd%PDBName -c -Tc %Source -Fo%OutputDir%BaseName.obj; + $%CMPLRS_CXX_COMPILER %CMPLRS_CXX_SysOptions %CMPLRS_CXX_Options %CMPLRS_ExportBehaviour\^ + $ %IncDirectives %CMPLRS_CXX_ModeOpt \^ + $ -Fd%PDBName -c -Tp %Source -Fo%OutputDir%BaseName.obj; $set cmplrs_status=%status%; - $@acpp.exe -M -m -+ %CMPLRS_C_Options -D_DLL -D_MT %CMPLRS_ExportBehaviour %IncDirectives\^ + $@acpp.exe -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_CXX_Command = "D:/DevTools/VStudio/VC98/bin/cl -nologo -MD -W3 -GX -Ob1"; - @set %CMPLRS_CXX_Options = "-DWNT -D_WINDOWS -DWIN32"; - - @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"; - - @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 -Fo -Fd %PDBName + @template CMPLRS_C_OptLine (%CMPLRS_C_COMPILER , + %CMPLRS_C_SysOptions , + %CMPLRS_C_Options , + %CMPLRS_C_ModeOpt , + %IncDirectives , + %CMPLRS_Unit_C_Options , + %CMPLRS_C_WOKDirectives , + %CMPLRS_ExportBehaviour , + %Entity ) is + $Following parameters make up C compilation command in this order: + $CMPLRS_C_COMPILER = %CMPLRS_C_COMPILER + $CMPLRS_C_SysOptions = %CMPLRS_C_SysOptions + $CMPLRS_C_Options = %CMPLRS_C_Options + $CMPLRS_C_ModeOpt = %CMPLRS_C_ModeOpt + $CMPLRS_Unit_C_Options = %CMPLRS_Unit_C_Options + $CMPLRS_C_WOKDirectives = %CMPLRS_C_WOKDirectives + $CMPLRS_ExportBehaviour = %CMPLRS_ExportBehaviour + $Dynamic include directives are : + $%IncDirectives @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 + @template CMPLRS_C_CmdLine ( + %CMPLRS_C_COMPILER, %CMPLRS_C_SysOptions, %CMPLRS_C_Options, %CMPLRS_C_ModeOpt, + %IncDirectives, %PDBName, %Source, + %BaseName, %OutputDir, %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; + $%CMPLRS_C_COMPILER %CMPLRS_C_SysOptions %CMPLRS_C_Options %CMPLRS_ExportBehaviour\^ + $ %IncDirectives %CMPLRS_C_ModeOpt \^ + $ -Fd%PDBName -c -Tc %Source -Fo%OutputDir%BaseName.obj; $set cmplrs_status=%status%; - $@acpp.exe -M -m -+ %CMPLRS_CXX_Options -D__cplusplus -D_DLL -D_MT %CMPLRS_ExportBehaviour %IncDirectives\^ + $@acpp.exe -M -m -+ %CMPLRS_C_Options -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 -object: -pdbfile: - @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"; - @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_F77_ModeOpt = "-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"; + @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; + + @set %CMPLRS_CXX_WOKDirectives = "-MDupdate "; + @set %CMPLRS_C_WOKDirectives = ""; + @set %CMPLRS_F77_WOKDirectives = ""; + + @if ( %DBMS == "OBJS" ) then + @set %CMPLRS_CXX_DBMSOpt = "-DOBJS -I/PRODUCTS/OS5.0/include"; + @endif; + + + @template CMPLRS_F77_OptLine ( + %CMPLRS_F77_COMPILER , + %CMPLRS_F77_SysOptions , + %CMPLRS_F77_ModeOpt ) is + $Following parameters make up F77 compilation command in this order: + $CMPLRS_F77_COMPILER = %CMPLRS_F77_COMPILER + $CMPLRS_F77_SysOptions = %CMPLRS_F77_SysOptions + $CMPLRS_F77_ModeOpt = %CMPLRS_F77_ModeOpt + @end; + + @template CMPLRS_F77_CmdLine ( %CMPLRS_F77_COMPILER , %CMPLRS_F77_SysOptions , %CMPLRS_F77_ModeOpt , + %CMPLRS_F77_WOKDirectives , %Source , %OutputDir , %BaseName , %Entity ) is + $%CMPLRS_F77_COMPILER %CMPLRS_F77_SysOptions %CMPLRS_F77_ModeOpt %CMPLRS_F77_WOKDirectives -c %Source -o %OutputDir/%BaseName.o + $echo '$F77_COMPILER %CMPLRS_F77_SysOptions %CMPLRS_F77_ModeOpt $INCDIRS -c $SOURCE -o $OBJECT' > %OutputDir/../%Entity/.adm/f77.compile + $ touch %OutputDir/%BaseName.m + @end; + + @template CMPLRS_C_OptLine (%CMPLRS_C_COMPILER , + %CMPLRS_C_SysOptions , + %CMPLRS_C_Options , + %CMPLRS_C_ModeOpt , + %IncDirectives , + %CMPLRS_Unit_C_Options , + %CMPLRS_C_WOKDirectives , + %Entity ) is + $Following parameters make up C compilation command in this order: + $CMPLRS_C_COMPILER = %CMPLRS_C_COMPILER + $CMPLRS_C_SysOptions = %CMPLRS_C_SysOptions + $CMPLRS_C_Options = %CMPLRS_C_Options + $CMPLRS_Unit_C_Options = %CMPLRS_Unit_C_Options + $CMPLRS_C_WOKDirectives= %CMPLRS_C_WOKDirectives + $Dynamic include directives are : + $%IncDirectives + @end; + + @template CMPLRS_C_CmdLine ( %CMPLRS_C_COMPILER , + %CMPLRS_C_SysOptions , + %CMPLRS_C_Options , + %CMPLRS_C_ModeOpt , + --%CMPLRS_C_Export , + %IncDirectives , + %CMPLRS_Unit_C_Options , + %CMPLRS_C_WOKDirectives , + %CMPLRS_C_PDBName , + %Source , + %BaseName, + %OutputDir, %Entity ) is + $%CMPLRS_C_COMPILER %CMPLRS_C_SysOptions %CMPLRS_C_Options %CMPLRS_C_ModeOpt %IncDirectives %CMPLRS_Unit_C_Options %CMPLRS_C_WOKDirectives -c %Source -o %OutputDir/%BaseName.o + $set cmplrs_status = $status + $echo '$C_COMPILER %CMPLRS_C_SysOptions %CMPLRS_C_Options $INCDIRS %CMPLRS_C_ModeOpt -c $SOURCE -o $OBJECT' > %OutputDir/../%Entity/.adm/c.compile + $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; + + @template CMPLRS_CXX_OptLine (%CMPLRS_CXX_COMPILER, + %CMPLRS_CXX_SysOptions , + %CMPLRS_CXX_Options , + %CMPLRS_CXX_ModeOpt , + %CMPLRS_CXX_DBMSOpt , + %CMPLRS_CXX_INCLUDE , + %CMPLRS_CXX_WOKDirectives , + %IncDirectives , + %DBDirectives , + %Entity ) is + $Following parameters make up C++ compilation command in this order: + $CMPLRS_CXX_COMPILER = %CMPLRS_CXX_COMPILER + $CMPLRS_CXX_SysOptions = %CMPLRS_CXX_SysOptions + $CMPLRS_CXX_Options = %CMPLRS_CXX_Options + $CMPLRS_CXX_ModeOpt = %CMPLRS_CXX_ModeOpt + $CMPLRS_CXX_DBMSOpt = %CMPLRS_CXX_DBMSOpt + $CMPLRS_CXX_INCLUDE = %CMPLRS_CXX_INCLUDE + $CMPLRS_CXX_WOKDirectives = %CMPLRS_CXX_WOKDirectives + $Dynamic include directives are : + $%IncDirectives + @end; + + @template CMPLRS_CXX_CmdLine ( %CMPLRS_CXX_COMPILER, + %CMPLRS_CXX_SysOptions , + %CMPLRS_CXX_Options , + %CMPLRS_CXX_ModeOpt , + %CMPLRS_CXX_DBMSOpt , + %CMPLRS_CXX_INCLUDE , + %CMPLRS_CXX_WOKDirectives , + %IncDirectives , + %DBDirectives , + %Source, + %BaseName, + %OutputDir , + %TmpFile, %Entity ) is + $%CMPLRS_CXX_COMPILER %CMPLRS_CXX_SysOptions %CMPLRS_CXX_Options %CSF_CXX_INCLUDE %CMPLRS_CXX_DBMSOpt %CMPLRS_CXX_ModeOpt %IncDirectives %DBDirectives %CMPLRS_CXX_WOKDirectives %TmpFile -c %Source -o %OutputDir/%BaseName.o + $set stat = $status + $echo '$CXX_COMPILER %CMPLRS_CXX_SysOptions %CMPLRS_CXX_Options $INCDIRS %CMPLRS_CXX_INCLUDE %CMPLRS_CXX_DBMSOpt %CMPLRS_CXX_ModeOpt -c $SOURCE -o $OBJECT' > %OutputDir/../%Entity/.adm/cxx.compile + $if ( $stat == 0 ) then + $ if ( -e %TmpFile ) then + $ sed -e '1d' -e 's%/./%/%g' %TmpFile | grep -v '^#'| tr ' ' '\012' | sort -u > %OutputDir/%BaseName.m + $ else + $ touch %OutputDir/%BaseName.m + $ endif + $endif + $ /bin/rm -f %TmpFile + $endif + $set status = $stat + @end; - @set %CMPLRS_C_Command = "/usr/bin/gcc -fPIC"; - @set %CMPLRS_C_Options = " -DLIN -DLININTEL -DCSFDB -funsigned-char -Wall"; + @endif; - @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 -H -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 -funsigned-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 \ - $-I/PRODUCTS/java/jdk1.2.2/include/linux \ - $%IncDirectives %DBDirectives -H -c -o > & - @end; + @if ( %Station == "hp" ) then + @template CMPLRS_DBDirective (%DBDirectory) is + $ -ptr%DBDirectory/ptrepository \ + @end; + + @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; + + @set %CMPLRS_CXX_WOKDirectives = ""; + @set %CMPLRS_C_WOKDirectives = ""; + @set %CMPLRS_F77_WOKDirectives = ""; + + @if ( %DBMS == "OBJS" ) then + @set %CMPLRS_CXX_DBMSOpt = "-DOBJS -I/PRODUCTS/OS5.0/include "; + @endif; + + @template CMPLRS_F77_OptLine ( + %CMPLRS_F77_COMPILER , + %CMPLRS_F77_SysOptions , + %CMPLRS_F77_ModeOpt ) is + $Following parameters make up F77 compilation command in this order: + $CMPLRS_F77_COMPILER = %CMPLRS_F77_COMPILER + $CMPLRS_F77_SysOptions = %CMPLRS_F77_SysOptions + $CMPLRS_F77_ModeOpt = %CMPLRS_F77_ModeOpt + @end; + + @template CMPLRS_F77_CmdLine ( %CMPLRS_F77_COMPILER , %CMPLRS_F77_SysOptions , %CMPLRS_F77_ModeOpt , + %CMPLRS_F77_WOKDirectives , %Source , %OutputDir , %BaseName , %Entity ) is + $%CMPLRS_F77_COMPILER %CMPLRS_F77_SysOptions %CMPLRS_F77_ModeOpt %CMPLRS_F77_WOKDirectives -c %Source -o %OutputDir/%BaseName.o + $echo '$F77_COMPILER %CMPLRS_F77_SysOptions %CMPLRS_F77_ModeOpt $INCDIRS -c $SOURCE -o $OBJECT' > %OutputDir/../%Entity/.adm/f77.compile + $ touch %OutputDir/%BaseName.m + @end; + + @template CMPLRS_C_CmdLine ( %CMPLRS_C_COMPILER , + %CMPLRS_C_SysOptions , + %CMPLRS_C_Options , + %CMPLRS_C_ModeOpt , + %CMPLRS_C_Export , + %IncDirectives , + %Unit_C_Options , + %C_WOKDirectives , + %C_PDBName , + %Source , + %BaseName, + %OutputDir , + %TmpFile ) is + $%CMPLRS_C_COMPILER %C_SysOptions %C_Options %C_ModeOpt %C_Export %IncDirectives %Unit_C_Options %C_WOKDirectives %C_PDBName %Files %DTmpFile + $if ( $status == 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; + + @template CMPLRS_CXX_CmdLine ( %CSF_CXX_COMPILER, + %CMPLRS_CXX_SysOptions , + %CMPLRS_CXX_Options , + %CMPLRS_CXX_ModeOpt , %CMPLRS_CXX_DBMSOpt , + %CSF_CXX_INCLUDE , + %CMPLRS_CXX_WOKDirectives , + %IncDirectives , + %DBDirectives , + %Source, + %BaseName, + %OutputDir , + %TmpFile ) is + $%CSF_CXX_COMPILER %CMPLRS_CXX_SysOptions %CMPLRS_CXX_Options %CSF_CXX_INCLUDE %CMPLRS_CXX_DBMSOpt %CMPLRS_CXX_ModeOpt %IncDirectives %DBDirectives %CMPLRS_CXX_WOKDirectives -c %Source -o %OutputDir/%BaseName.o >& %TmpFile + $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; - @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 \^ - $-I/PRODUCTS/java/jdk1.2.2/include \^ - $-I/PRODUCTS/java/jdk1.2.2/include/linux \^ - $%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; + -- ####### ### # # -- -- # # # # # -- -- # # # # # -- @@ -663,83 +1029,88 @@ -- # # ### # # -- @if ( %Station == "aix" ) then - @if ( %DebugMode == "True" ) then - @set %CMPLRS_CXX_ModeOpt = "-g -DDEB -D_DEBUG"; - @set %CMPLRS_C_ModeOpt = "-g -DDEB -D_DEBUG"; - @set %CMPLRS_F77_ModeOpt = "-g -DDEB -D_DEBUG"; - @else - @set %CMPLRS_CXX_ModeOpt = "-O2 "; - @set %CMPLRS_C_ModeOpt = "-O2 "; - @set %CMPLRS_F77_ModeOpt = "-O2 "; - @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 = "xlC_r"; - @set %CMPLRS_C_Options = " -DAIX -DCSFDB "; - - @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 -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 = "xlC_r"; - @set %CMPLRS_CXX_Options = " -DAIX -DCSFDB "; - - @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/usr/java_dev2/include \ - $%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 \^ - $-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' %OutputDir/%BaseName.u | sort -u > %OutputDir/%BaseName.m - $endif - $#/bin/rm -f %OutputDir/%BaseName.u - $set status = $stat - @end; - + @if ( %DebugMode == "True" ) then + @set %CMPLRS_CXX_ModeOpt = "-g0 -DDEB -D_DEBUG"; + @set %CMPLRS_C_ModeOpt = "-g0 -DDEB -D_DEBUG"; + @set %CMPLRS_F77_ModeOpt = "-g -DDEB -D_DEBUG"; + @else + @set %CMPLRS_CXX_ModeOpt = "-O2 "; + @set %CMPLRS_C_ModeOpt = "-O2 "; + @set %CMPLRS_F77_ModeOpt = "-O2 "; + @endif; + + @set %CMPLRS_CXX_WOKDirectives = ""; + @set %CMPLRS_C_WOKDirectives = ""; + @set %CMPLRS_F77_WOKDirectives = ""; + + @if ( %DBMS == "OBJS" ) then + @set %CMPLRS_CXX_DBMSOpt = "-DOBJS"; + @endif; + + + + @template CMPLRS_F77_OptLine ( + %CMPLRS_F77_COMPILER , + %CMPLRS_F77_SysOptions , + %CMPLRS_F77_ModeOpt ) is + $Following parameters make up F77 compilation command in this order: + $CMPLRS_F77_COMPILER = %CMPLRS_F77_COMPILER + $CMPLRS_F77_SysOptions = %CMPLRS_F77_SysOptions + $CMPLRS_F77_ModeOpt = %CMPLRS_F77_ModeOpt + @end; + + @template CMPLRS_F77_CmdLine ( %CMPLRS_F77_COMPILER , %CMPLRS_F77_SysOptions , %CMPLRS_F77_ModeOpt , + %CMPLRS_F77_WOKDirectives , %Source , %OutputDir , %BaseName , %Entity ) is + $%CMPLRS_F77_COMPILER %CMPLRS_F77_SysOptions %CMPLRS_F77_ModeOpt %CMPLRS_F77_WOKDirectives -c %Source -o %OutputDir/%BaseName.o + $echo '$F77_COMPILER %CMPLRS_F77_SysOptions %CMPLRS_F77_ModeOpt $INCDIRS -c $SOURCE -o $OBJECT' > %OutputDir/../%Entity/.adm/f77.compile + $ touch %OutputDir/%BaseName.m + @end; + + @template CMPLRS_C_CmdLine ( %CMPLRS_C_COMPILER , + %CMPLRS_C_SysOptions , + %CMPLRS_C_Options , + %CMPLRS_C_ModeOpt , + %CMPLRS_C_Export , + %IncDirectives , + %CMPLRS_Unit_C_Options , + %CMPLRS_C_WOKDirectives , + %CMPLRS_C_PDBName , + %Files , + %BaseName, + %OutputDir , + %TmpFile ) is + $%CMPLRS_C_COMPILER %CMPLRS_C_SysOptions %CMPLRS_C_Options %CMPLRS_C_ModeOpt %CMPLRS_C_Export %IncDirectives %CMPLRS_Unit_C_Options %CMPLRS_C_WOKDirectives %CMPLRS_C_PDBName %Files %DTmpFile + + $if ( $status == 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; + + + @template CMPLRS_CXX_CmdLine ( %CSF_CXX_COMPILER, + %CMPLRS_CXX_SysOptions, + %CMPLRS_CXX_Options , + %CMPLRS_CXX_ModeOpt , %CMPLRS_CXX_DBMSOpt , + %CSF_CXX_INCLUDE , + %CMPLRS_CXX_WOKDirectives , + %IncDirectives , + %DBDirectives , + %Source, + %BaseName, + %OutputDir , + %TmpFile ) is + $%CSF_CXX_COMPILER %CMPLRS_CXX_SysOptions %CMPLRS_CXX_Options %CSF_CXX_INCLUDE %CMPLRS_CXX_DBMSOpt %CMPLRS_CXX_ModeOpt %IncDirectives %DBDirectives %CMPLRS_CXX_WOKDirectives -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; @@ -747,13 +1118,12 @@ @if ( ( %UnitType == "idl" || %UnitType == "server" || %UnitType == "executable" ) && %Station != "wnt" ) then - @uses "ORBIX.edl"; + --@uses "ORBIX.edl"; @if ( %Station == "sun" ) then - @set %CMPLRS_CXX_Command = "/opt/DEV5_1/SUNWspro/bin/CC -PIC "; + @set %CMPLRS_CXX_Command = %CSF_CXX_COMPILER ; @endif; - @string %CMPLRS_CXX_Options += " -I" %ORBIX_Home "/include"; + --@string %CMPLRS_CXX_Options += " -I" %ORBIX_Home "/include "; @endif; @endif; @endif; - diff --git a/src/WOKBuilderDef/CSF.edl b/src/WOKBuilderDef/CSF.edl index b6e9c30..436c565 100755 --- a/src/WOKBuilderDef/CSF.edl +++ b/src/WOKBuilderDef/CSF.edl @@ -1,14 +1,173 @@ -- File: CSF.edl --- Author: Jean GAUTIER +-- Author: Jean GAUTIER - Jean Rahuel -- History: Thu Mar 14 19:28:20 1996 Jean GAUTIER Creation -- Copyright: Matra Datavision 1996 -@ifnotdefined ( %CSF_EDL) then +-- Symbols for global WOK management + +@ifnotdefined ( %CSF_EDL ) then @set %CSF_EDL = ""; + @set %CSF_SYMBOLS = "C_COMPILER C_SysOptions C_Options CXX_COMPILER CXX_SysOptions CXX_Options F77_COMPILER F77_SysOptions F77_Options CSF_LINKER CXX_COMPILERLINKER CSF_VirtualDevice LINKER_DBMSOpt LINKER_SysShared LINKER_SysExeC LINKER_SysExeW LINKER_SysOpt LINKER_SysLib LINKER_CheckOpt LINKER_CheckOut LibraryHeaderLib LibraryHeaderOpt JavaHome JavaLibs C_INCLUDE CXX_INCLUDE TCL_INCLUDE JAVA_COMPILER JAVA_JNI JAVA_INCLUDE X11_INCLUDE XMU_INCLUDE MOTIF_INCLUDE OPENGL_INCLUDE SOCKETLibs FPELibs advapi32 gdi32 user32 glu32 opengl32 wsock32 dpsLibs XwLibs OpenGlLibs MotifLibs TclLibs TclTkLibs" ; + +-- Standard configuration will be : +-- ============================== +-- %CSF_USE_CDL = "Yes" +-- see "ucreate -h", "uinfo -h", "w_info -h" and "wprocess -h" +-- For executable units, default is now WITHOUT cdl processing +-- %CSF_CREATE_FILES = "No" +-- %CSF_CREATE_CLASSES = "No" +-- %CSF_CREATE_GENERATED = "No" +-- %CSF_CREATE_CGEN_FILES = "No" +-- %CSF_USE_SOURCEINCLUDE = "No" +-- %CSF_CREATE_COMP = "No" +-- %CSF_ECHO_COMP = "No" +-- %CSF_CREATE_DEP = "No" +-- %CSF_USEFILES_COMP = "No" +-- %CSF_CREATEOBJECTS = "No"; +-- %CSF_CREATE_LINK = "No" +-- %CSF_ECHO_LINK = "No" +-- %CSF_USE_EXTERNLIB = "Yes" + + + + + +-- if "Yes" ===> WOK will "extract" cdl files listed in FILES +-- "generate" source and include files +-- listed in GENERATED.files +-- (not listed in FILES) +-- if "No" ====> WOK will NOT "extract" cdl files +-- NOT "generate" cxx, ixx, jxx & hxx files +-- ( only for management team of CasCade sources : +-- see "ucreate -h", "uinfo -h", "w_info -h" and "wprocess -h" for new options +-- For executable units, default was WITHOUT cdl processing ) +-- For executable units, default is now WITH cdl processing ) + @set %CSF_USE_CDL = "Yes"; + +-- if "Yes" ===> Will force creation src/UdName/FILES +-- after reading src/UdName/FILES +-- extraction process (add .cdl and .cxx) +-- add EXTERNLIB for toolkits and executables +-- add PACKAGES for toolkits +-- if "No" ====> If src/UdName/FILES does not exist, +-- will create src/UdName/FILES +-- after reading src/UdName/FILES +-- will create CLASSES.files +-- will create GENERATED.files ... +-- ====> If src/UdName/FILES exists in src/UdName/ +-- will check existences of files +-- will check CLASSES.files and update if necessary +-- will check GENERATED.files and update if necessary +-- ( only for management team of CasCade sources ) + @set %CSF_CREATE_FILES = "No"; + +-- if "Yes" ===> Will force creation src/UdName/CLASSES.files +-- if "No" ====> Will check that files listed in src/UdName/CLASSES.files +-- exist in src/UdName/ directory. +-- With standard mode (%CSF_USE_CDL = "Yes"), +-- if there is modifications of sources files, this file is +-- updated automatically. +-- ( only for management team of CasCade sources ) + @set %CSF_CREATE_CLASSES = "No"; + +-- if "Yes" ===> Will force creation src/UdName/GENERATED.files +-- if "No" ====> Will check that files listed in src/UdName/GENERATED.files +-- exist in drv/UdName/ and inc directories. +-- With standard mode (%CSF_USE_CDL = "Yes"), +-- if there is modifications of derivated files, this file is +-- updated automatically. +-- ( only for management team of CasCade sources ) + @set %CSF_CREATE_GENERATED = "No"; + +-- if "Yes" ===> will do obj.cgen step and generate lex/yacc files +-- ( only for management team of CasCade sources ) + @set %CSF_CREATE_CGEN_FILES = "No"; + +-- if "Yes" ===> will accept .edl files with %WOKStepsDef_UseSourceInclude +-- defined in src/UdName/UdName_WOKStepsDef.edl +-- in order to add -I/.../src/UdName at compile time +-- ( only for management team of CasCade sources ) + @set %CSF_USE_SOURCEINCLUDE = "No"; + +-- if "Yes" ===> will create compile .build file in src/UdName/ +-- ( only for management team of CasCade sources ) + @set %CSF_CREATE_COMP = "Yes"; + +-- if "Yes" ===> Echo of Compiler commands +-- ( only for management team of CasCade sources ) + @set %CSF_ECHO_COMP = "Yes"; + +-- if "Yes" ===> will create .d files (include dependencies) +-- ( only for management team of CasCade sources ) + @set %CSF_CREATECOMP_DEP = "Yes"; + +-- if "Yes" ===> will create OBJECTS.files (list of .o or .so files) +-- ( only for management team of CasCade sources ) + @set %CSF_CREATEOBJECTS = "Yes"; + +-- if "Yes" ===> Will use FILES and GENERATED.files for compiling +-- Not yet implemented +-- if "No" ====> will use dependencies computed by WOK +-- but controls that compiled files are listed in FILES, +-- CLASSES.files or in GENERATED.files +-- ( only for management team of CasCade sources ) + @set %CSF_USEFILES_COMP = "No"; + +-- if "Yes" ===> will create link .build file in src/UdName/ +-- ( only for management team of CasCade sources ) + @set %CSF_CREATE_LINK = "Yes"; + +-- if "Yes" ===> Echo of Link commands +-- ( only for management team of CasCade sources ) + @set %CSF_ECHO_LINK = "Yes"; + +-- if "Yes" ===> will use EXTERNLIB file in Toolkits and Executables +-- will use OBJECTS.files of units listed in PACKAGES in Toolkits +-- will use OBJECTS.files in Executables +-- if "No" ====> will use dependencies computed by WOK +-- only for management team of CasCade sources + @set %CSF_USE_EXTERNLIB = "Yes"; + + @set %CSF_C_COMPILER = ""; + @set %CSF_C_SysOptions = ""; + @set %CSF_C_Options = ""; + + @set %CSF_CXX_COMPILER = ""; + @set %CSF_CXX_SysOptions = ""; + @set %CSF_CXX_Options = ""; + + @set %CSF_F77_COMPILER = ""; + @set %CSF_F77_SysOptions = ""; + @set %CSF_F77_Options = ""; + + @set %CSF_LINKER = ""; + @set %CSF_CSF_VirtualDevice = ""; + @set %CSF_LINKER_DBMSOpt = ""; + @set %CSF_LINKER_SysShared = ""; + @set %CSF_LINKER_SysExe = ""; + @set %CSF_LINKER_SysExeC = ""; + @set %CSF_LINKER_SysExeW = ""; + @set %CSF_LINKER_SysOpt = ""; + @set %CSF_LINKER_SysLib = ""; + @set %CSF_LINKER_CheckOpt = ""; + @set %CSF_LINKER_CheckOut = ""; + + @set %CSF_LibraryHeaderLib = ""; + @set %CSF_LibraryHeaderOpt = ""; + + @set %CSF_JavaHome = ""; + @set %CSF_JavaLibs = ""; + + @set %CSF_C_INCLUDE = ""; + @set %CSF_CXX_INCLUDE = ""; + + @set %CSF_TCL_HOME = ""; @set %CSF_TCL_INCLUDE = ""; + @set %CSF_JAVA_INCLUDE = ""; @set %CSF_X11_INCLUDE = ""; + @set %CSF_X11_INCLUDE_EXTENSION = ""; @set %CSF_XMU_INCLUDE = ""; @set %CSF_MOTIF_INCLUDE = ""; @set %CSF_OPENGL_INCLUDE = ""; @@ -27,6 +186,7 @@ @set %CSF_dpsLibs = "" ; @set %CSF_XwLibs = "" ; @set %CSF_OpenGlLibs = "" ; + @set %CSF_MotifLibs = "" ; @set %CSF_TclLibs = "" ; @set %CSF_TclTkLibs = "" ; @@ -50,29 +210,167 @@ @set %CSF_STANDARDDB = "StandardOBJS"; @endif; + + + + @if ( %Station == "lin" ) then + @if ( %DBMS == "OBJS" ) then + @set %CSF_OODBLibs = ""; + @endif; + + @set %CSF_CXX_COMPILER = "/usr/bin/g++ "; + @set %CSF_CXX_SysOptions = "-fPIC -funsigned-char -Wall "; + @set %CSF_CXX_Options = "-DLIN -DLININTEL -DNO_CXX_EXCEPTION "; + + @set %CSF_C_COMPILER = "/usr/bin/gcc "; + @set %CSF_C_SysOptions = "-fPIC -funsigned-char -Wall"; + @set %CSF_C_Options = "-DLIN -DLININTEL "; + + @set %CSF_F77_COMPILER = "/usr/bin/f77 "; + @set %CSF_F77_SysOptions = "-fPIC "; + + @set %CSF_LINKER = "/usr/bin/ld "; + @set %CSF_CXX_COMPILERLINKER = %CSF_CXX_COMPILER ; + @set %CSF_LINKER_DBMSOpt = ""; + @set %CSF_LINKER_SysShared = "-shared "; + @set %CSF_LINKER_SysExe = ""; + @set %CSF_LINKER_SysOpt = ""; + @set %CSF_LINKER_SysLib = "-ldl -lc "; + @set %CSF_LINKER_CheckOpt = "-nostartfiles "; + @set %CSF_LINKER_CheckOut = "-o /dev/null "; + + @set %CSF_SOCKETLibs = " -ldl" ; + + @set %CSF_TCL_HOME = "/usr"; + @set %CSF_TCL_INCLUDE = "-I%CSF_TCL_HOME/include "; + + @set %CSF_JavaHome = "/opt/jdk1.2.2"; + @string %CSF_JAVA_INCLUDE = "-I" %CSF_JavaHome "/include -I" %CSF_JavaHome "/include/linux "; + @set %CSF_JAVA_COMPILER = "javac"; + @set %CSF_JAVA_JNI = "javah"; + + @set %CSF_X11_INCLUDE = "-I/usr/X11R6/include "; + @set %CSF_OPENGL_INCLUDE = "-I/usr/X11R6/include "; + + @set %X11_LIB = "/usr/X11R6/lib"; + + @string %CSF_XwLibs = "-L" %X11_LIB " -lX11 -lXext -lXmu -lXi "; + + @string %CSF_OpenGlLibs = "-L" %X11_LIB " -lGLU -lGL -lglut " ; + + @string %CSF_TclLibs = "-L" %CSF_TCL_HOME "/lib -Xlinker -rpath -Xlinker " %CSF_TCL_HOME "/lib -ltcl"; + @string %CSF_TclTkLibs = "-L" %CSF_TCL_HOME "/lib -Xlinker -rpath -Xlinker " %CSF_TCL_HOME "/lib -ltk -L" %X11_LIB " -lX11"; + @endif; + + @if ( %Station == "sun" ) then @if ( %DBMS == "OBJS" ) then @set %CSF_OODBLibs = " -L/PRODUCTS/OS4.0.2/sunpro/lib/ -los -losthr -loscol -losmop"; @endif; - @set %CSF_SOCKETLibs = "-lsocket -lnsl -lsunmath -lm -ldl" ; - @set %CSF_RISCRETURNObject = "/adv_23/KL/dev/ref/src/EngineStarter/risc_return.o" ; + @set %CSF_CXX_COMPILER = "/opt/DEV5_1/SUNWspro/bin/CC "; + @set %CSF_CXX_SysOptions = "-PIC -xchip=ultra -xarch=v8 -vdelx -Usun " ; + @set %CSF_CXX_Options = "-DSOLARIS -DNO_CXX_EXCEPTION " ; + @set %CSF_CXX_INCLUDE = "-I/opt/DEV5_1/SUNWspro/SC4.2/include/CC "; + + @set %CSF_C_COMPILER = "/opt/DEV5_1/SUNWspro/bin/cc "; + @set %CSF_C_SysOptions = "-K PIC -Usun "; + @set %CSF_C_Options = "-DSOLARIS "; + @set %CSF_C_INCLUDE = ""; + + @set %CSF_F77_COMPILER = "f77 "; + @set %CSF_F77_SysOptions = "-PIC"; + + @set %CSF_LINKER = "/usr/ccs/bin/ld "; + @set %CSF_CXX_COMPILERLINKER = %CSF_CXX_COMPILER ; + @if ( %DBMS == "OBJS" ) then + @set %CSF_LINKER_DBMSOpt = "-mt "; + @endif; + @set %CSF_LINKER_SysShared = "-G "; + @set %CSF_LINKER_SysExe = ""; + @set %CSF_LINKER_SysOpt = "-xchip=ultra -xarch=v8 "; + @set %CSF_LINKER_SysLib = ""; + @set %CSF_LINKER_CheckOpt = ""; + @set %CSF_LINKER_CheckOut = "-o /dev/null "; + + @set %CSF_JavaHome = "/PRODUCTS/java/jdk1.2"; + @string %CSF_JAVA_INCLUDE = "-I" %CSF_JavaHome "/include -I" %CSF_JavaHome "/include/solaris "; + @set %CSF_JAVA_COMPILER = "javac"; + @set %CSF_JAVA_JNI = "javah"; - @set %PHIGS_LIB = "/opt/SUNWits/Graphics-sw/sunphigs-3.0/lib"; - @set %XGL_LIB = "/opt/SUNWits/Graphics-sw/xgl-3.0/lib"; - @set %MOTIF_LIB = "/usr/dt/lib"; - @set %CSF_TCL_INCLUDE = "/usr/tcltk/include "; + @set %CSF_SOCKETLibs = "-lsocket -lnsl -lsunmath -lm -ldl -lC -lc " ; + --@set %CSF_RISCRETURNObject = "/adv_23/KL/dev/ref/src/EngineStarter/risc_return.o" ; + @set %CSF_RISCRETURNObject = "/missing/missing/risc_return.o" ; + + @string %CSF_JavaLibs = " -L" %CSF_JavaHome "/jre/lib/sparc/ -ljava "; + + @set %CSF_TCL_HOME = "/usr/tcltk"; + @string %CSF_TCL_INCLUDE = "-I" %CSF_TCL_HOME "/include/itcl "; + + @set %CSF_X11_INCLUDE = "-I/usr/openwin/include/X11 "; + @set %CSF_OPENGL_INCLUDE = "-I/usr/openwin/include "; + + @string %CSF_TclLibs = "-L" %CSF_TCL_HOME "/lib -R" %CSF_TCL_HOME "/lib -ltcl "; + @string %CSF_TclTkLibs = "-L" %CSF_TCL_HOME "/lib -R" %CSF_TCL_HOME "/lib -ltk "; @set %X11_LIB = "/usr/openwin/lib"; @string %CSF_dpsLibs = "-L" %X11_LIB " -ldps" ; @string %CSF_XwLibs = "-L" %X11_LIB " -lX11 -lXext -lXmu"; @string %CSF_OpenGlLibs = "-L" %X11_LIB " -lGLU -lGL " ; - @string %CSF_MotifLibs = "-L" %MOTIF_LIB " -lXm -L"%X11_LIB " -lXt -lX11 " ; + @string %CSF_MotifLibs = "-L/usr/dt/lib -lXm -L" %X11_LIB " -lXt -lX11"; + + @endif; + + + + @if (%Station == "wnt") then + + @set %CSF_CXX_COMPILER = "D:/DevTools/VStudio/VC98/bin/cl "; + @set %CSF_CXX_SysOptions = "-nologo -MD -W3 -GX -Ob1 -Zi "; + @set %CSF_CXX_Options = "-DWNT -D_WINDOWS -DWIN32 "; + + @set %CSF_C_COMPILER = "D:/DevTools/VStudio/VC98/bin/cl "; + @set %CSF_C_SysOptions = "-nologo -MD -W3 -GX -Ob1 -Zi "; + @set %CSF_C_Options = "-DWNT -D_WINDOWS -DWIN32 "; + + @set %CSF_F77_COMPILER = "D:/DevTools/VStudio/DF98/bin/fl32 "; + @set %CSF_F77_SysOptions = "-nologo -libs:dll -Zi "; + + @set %CSF_LINKER = "D:/DevTools/VStudio/VC98/bin/link "; + @set %CSF_CXX_COMPILERLINKER = %CSF_LINKER ; + @set %CSF_VirtualDevice = "Q:"; + @set %CSF_LINKER_DBMSOpt = ""; + @set %CSF_LINKER_SysShared = "-subsystem:windows -dll "; + @set %CSF_LINKER_SysExe = "CSF_LINKER_SysExeC"; + @set %CSF_LINKER_SysExeC = "-subsystem:CONSOLE"; + @set %CSF_LINKER_SysExeW = "-subsystem:WINDOWS"; + @set %CSF_LINKER_SysOpt = "-nologo -incremental:no -machine:IX86 -debug "; + @set %CSF_LINKER_SysLib = ""; + + @set %CSF_LibraryHeaderLib = "D:/DevTools/VStudio/VC98/bin/lib "; + @set %CSF_LibraryHeaderOpt = "-nologo "; + + @string %CSF_JavaHome = "D:/AppTools/jdk1.2.2"; + @string %CSF_JAVA_INCLUDE = "-I" %CSF_JavaHome "/include -I" %CSF_JavaHome "/include/win32 "; + @set %CSF_JAVA_COMPILER = "javac"; + @set %CSF_JAVA_JNI = "javah"; + + @set %CSF_TCL_HOME = "D:/DevTools/TclTk"; + @set %CSF_TCL_INCLUDE = "%CSF_TCL_HOME/include "; + @set %CSF_TclLibs = "%CSF_TCL_HOME/lib/tcl76i.lib"; + + @set %CSF_OpenGlLibs = "opengl32.lib glu32.lib" ; + + @set %CSF_advapi32 = "advapi32.lib" ; + @set %CSF_gdi32 = "gdi32.lib" ; + @set %CSF_user32 = "user32.lib" ; + @set %CSF_glu32 = "glu32.lib" ; + @set %CSF_opengl32 = "opengl32.lib" ; + @set %CSF_wsock32 = "wsock32.lib" ; + - @set %CSF_TclLibs = "-L/usr/tcltk/lib -R /usr/tcltk/lib -ltcl7.5i"; - @set %CSF_TclTkLibs = "-L/usr/tcltk/lib -R /usr/tcltk/lib -ltk4.1i"; @endif; @if ( %Station == "ao1" ) then @@ -80,13 +378,23 @@ @set %CSF_OODBLibs = " -L/PRODUCTS/OS4.0.2/lib/ -los -losthr -loscol -losmop"; @endif; - @set %CSF_TCL_INCLUDE = "/usr/tcltk/include "; + @set %CSF_C_COMPILER = "cc "; + @set %CSF_CXX_COMPILER = "/usr/bin/cxx "; + @set %CSF_F77_COMPILER = ""; + + @set %CSF_TCL_HOME = "/usr/tcltk"; + @set %CSF_TCL_INCLUDE = "-I%CSF_TCL_HOME/include "; + + @string %CSF_JavaHome = "/missing/JavaHome"; + @string %CSF_JAVA_INCLUDE = "-I" %CSF_JavaHome "/include -I" %CSF_JavaHome "/include/ultrix "; + @set %CSF_JAVA_COMPILER = "javac"; + @set %CSF_JAVA_JNI = "javah"; @set %X11_LIB = "/usr/shlib"; @string %CSF_XwLibs = "-L" %X11_LIB " -lX11 -lXext -lXmu"; @set %CSF_dpsLibs = "-ldps" ; - @set %CSF_TclLibs = "-L/usr/tcltk/lib -rpath /usr/tcltk/lib -ltcl7.5i"; + @set %CSF_TclLibs = "-L%CSF_TCL_HOME/lib -rpath %CSF_TCL_HOME/lib -ltcl"; @endif; @if ( %Station == "sil" ) then @@ -94,19 +402,38 @@ @set %CSF_OODBLibs = " -L/PRODUCTS/OS4.0.3/lib/ -los -losths -loscol -losmop"; @endif; + @set %CSF_C_COMPILER = "cc "; + @set %CSF_C_SysOptions = " -signed -n32 -mips3 "; + + @set %CSF_CXX_COMPILER = "/usr/bin/CC "; + @set %CSF_CXX_SysOptions = " -signed -n32 -mips3 -no_prelink -woff 3115 -woff 3273 -woff 1021 -woff 1188 "; + + + @set %CSF_F77_COMPILER = "f77 "; + @set %CSF_FPELibs = "-L/usr/lib32 -lfpe" ; - @set %CSF_TCL_INCLUDE = "/usr/tcltk/include "; + @set %CSF_TCL_HOME = "/usr/tcltk.64"; + @set %CSF_TCL_INCLUDE = "-I%CSF_TCL_HOME/include "; + + @set %CSF_X11_INCLUDE_EXTENSION = " -I/usr/include/X11/extensions "; + + + + @string %CSF_JavaHome = "/missing/JavaHome"; + @string %CSF_JAVA_INCLUDE = "-I" %CSF_JavaHome "/include -I" %CSF_JavaHome "/include/irix "; + @set %CSF_JAVA_COMPILER = "javac"; + @set %CSF_JAVA_JNI = "javah"; + @set %X11_LIB = "/usr/lib32"; @set %CSF_dpsLibs = "-L/usr/lib32 -ldps" ; @string %CSF_XwLibs = "-L" %X11_LIB " -lX11 -lXext -lXmu"; @string %CSF_OpenGlLibs = "-L" %X11_LIB " -lGLU -lGL " ; - @string %CSF_MotifLibs = " -lXm -lXt -lX11 " ; - @set %CSF_TclLibs = "-L/usr/tcltk.64/lib -rpath /usr/tcltk.64/lib -ltcl7.5i"; - @set %CSF_TclTkLibs = "-L/usr/tcltk.64/lib -rpath /usr/tcltk.64/lib -ltk4.1i"; + @set %CSF_TclLibs = "-L%CSF_TCL_HOME/lib -rpath %CSF_TCL_HOME/lib -ltcl"; + @set %CSF_TclTkLibs = "-L%CSF_TCL_HOMElib -rpath %CSF_TCL_HOME/lib -ltk"; @endif; @if ( %Station == "hp" ) then @@ -114,12 +441,17 @@ @set %CSF_OODBLibs = " -L/PRODUCTS/OS4.0.2/lib/ -los -losthr -loscol -losmop"; @endif; - @set %CSF_TCL_INCLUDE = "/adv_53/hp/jr/tcltk/include "; + @set %CSF_C_COMPILER = "cc "; + @set %CSF_CXX_COMPILER = "/opt/aCC/bin/aCC "; + @set %CSF_F77_COMPILER = "f77 "; + + @set %CSF_TCL_HOME = "/missing/missing "; + @set %CSF_TCL_INCLUDE = "-I%CSF_TCL_HOME/include "; - @set %CSF_X11_INCLUDE = "/usr/include/X11R6"; - @set %CSF_XMU_INCLUDE = "/usr/contrib/X11R6/include"; - @set %CSF_MOTIF_INCLUDE = "/usr/include/Motif1.2"; - @set %CSF_OPENGL_INCLUDE = "/opt/graphics/OpenGL/include"; + @set %CSF_X11_INCLUDE = "-I/usr/include/X11R6 "; + @set %CSF_XMU_INCLUDE = "-I/usr/contrib/X11R6/include "; + @set %CSF_MOTIF_INCLUDE = "-I/usr/include/Motif1.2 "; + @set %CSF_OPENGL_INCLUDE = "-I/opt/graphics/OpenGL/include "; @set %CSF_SOCKETLibs = "" ; @@ -129,53 +461,21 @@ @set %OPENGL_LIB = "/opt/graphics/OpenGL/lib"; - --@string %CSF_XwLibs = "-L" %X11_LIB " -L" %XMU_LIB " -lX11 -lXext -lXmu"; @string %CSF_XwLibs = "-L" %X11_LIB " -lX11 -lXext -L" %XMU_LIB " -lXmu"; @string %CSF_OpenGlLibs = "-L" %OPENGL_LIB " -lGLU -lGL "; - --@set %CSF_TclLibs = "-L/usr/tcltk/lib/itcl -ltcl7.5i"; - @set %CSF_TclLibs = "-L/adv_53/hp/jr/tcltk/lib -ltcl"; - --@set %CSF_TclTkLibs = "-L/usr/tcltk/lib/itcl -ltk4.1i"; - @set %CSF_TclTkLibs = "-L/adv_53/hp/jr/tcltk/lib -ltk"; - @endif; - -@if (%Station == "wnt") then - - @set %CSF_advapi32 = "advapi32.lib" ; - @set %CSF_gdi32 = "gdi32.lib" ; - @set %CSF_user32 = "user32.lib" ; - @set %CSF_glu32 = "glu32.lib" ; - @set %CSF_opengl32 = "opengl32.lib" ; - @set %CSF_wsock32 = "wsock32.lib" ; - - @set %CSF_TCL_INCLUDE = "D:/DevTools/TclTk/include "; - - @set %X11_LIB = ""; + @set %CSF_TclLibs = "-L%CSF_TCL_HOME/lib -ltcl"; + @set %CSF_TclTkLibs = "-L%CSF_TCL_HOME/lib -ltk"; - @string %CSF_XwLibs = ""; - - @set %CSF_TclLibs = "D:/DevTools/TclTk/lib/tcl76i.lib"; - -@endif; - - @if ( %Station == "lin" ) then - @if ( %DBMS == "OBJS" ) then - @set %CSF_OODBLibs = ""; - @endif; - @set %CSF_SOCKETLibs = " -ldl" ; - @set %CSF_TCL_INCLUDE = "/usr/include "; + @string %CSF_JavaHome = "/missing/JavaHome"; + @string %CSF_JAVA_INCLUDE = "-I" %CSF_JavaHome "/include -I" %CSF_JavaHome "/include/hp-ux "; + @set %CSF_JAVA_COMPILER = "javac"; + @set %CSF_JAVA_JNI = "javah"; - @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"; @endif; @if ( %Station == "aix" ) then @@ -183,9 +483,14 @@ @set %CSF_OODBLibs = ""; @endif; + @set %CSF_C_COMPILER = "xlC_r "; + @set %CSF_CXX_COMPILER = "xlC_r "; + @set %CSF_F77_COMPILER = "/usr/bin/f77 "; + @set %CSF_SOCKETLibs = " " ; - @set %CSF_TCL_INCLUDE = "/usr/local/include "; + @set %CSF_TCL_HOME = "/missing/missing "; + @set %CSF_TCL_INCLUDE = "-I%CSF_TCL_HOME/include "; @set %X11_LIB = "/usr/lpp/X11/lib/R6"; @set %CSF_XwLibs = "-L/usr/lpp/X11/lib/R6 -lX11 -lXext -lXmu "; @@ -193,9 +498,21 @@ @set %OPENGL_LIB = "/usr/lpp/OpenGL/lib"; @string %CSF_OpenGlLibs = "-L" %OPENGL_LIB " -lGLU -lGL "; - @set %CSF_TclLibs = "-I/usr/local/lib/libtcl8.1.exp "; - @set %CSF_TclTkLibs = "-I/usr/local/lib/libtk8.1.exp "; + @set %CSF_TclLibs = "-I%CSF_TCL_HOME/lib/libtcl.exp "; + @set %CSF_TclTkLibs = "-I%CSF_TCL_HOME/lib/libtk.exp "; + + + @string %CSF_JavaHome = "/missing/JavaHome"; + @string %CSF_JAVA_INCLUDE = "-I" %CSF_JavaHome "/include -I" %CSF_JavaHome "/include/aix "; + @set %CSF_JAVA_COMPILER = "javac"; + @set %CSF_JAVA_JNI = "javah"; + + @endif; + @set %CSF_TCL_HOME = "/PRODUCTS/tcltk-83"; + @string %CSF_TCL_INCLUDE = %CSF_TCL_HOME "/include "; + @string %CSF_TclLibs = "-L" %CSF_TCL_HOME "/lib -R" %CSF_TCL_HOME "/lib -ltcl "; + @string %CSF_TclTkLibs = "-L" %CSF_TCL_HOME "/lib -R" %CSF_TCL_HOME "/lib -ltk "; @endif; diff --git a/src/WOKBuilderDef/JAVA.edl b/src/WOKBuilderDef/JAVA.edl index d799814..4c77b4c 100755 --- a/src/WOKBuilderDef/JAVA.edl +++ b/src/WOKBuilderDef/JAVA.edl @@ -1,25 +1,12 @@ @ifnotdefined ( %JAVA_EDL ) then @set %JAVA_EDL = ""; - @set %JAVA_Home = "/PRODUCTS/java/jdk1.2.2"; - @if ( %Station == "sun" ) then - @set %JAVA_Home = "/PRODUCTS/java/jdk1.2.2"; - @endif; - @if ( %Station == "sil" ) then - @set %JAVA_Home = "/PRODUCTS/java1.2.2"; - @endif; - @if ( %Station == "lin" ) then - @set %JAVA_Home = "/PRODUCTS/java/jdk1.2"; - @endif; - @if ( %Station == "wnt" ) then - @set %JAVA_Home = "D:/jdk1.2.2"; - @endif; - @if ( %Station == "aix" ) then - @set %JAVA_Home = "/usr/java_dev2"; + @ifnotdefined( %CSF_EDL ) then + @uses "CSF.edl"; @endif; - @string %JAVA_Command = %JAVA_Home "/bin/javac"; - @string %JAVA_HeaderCommand = %JAVA_Home "/bin/javah"; + @string %JAVA_Command = "javac"; + @string %JAVA_HeaderCommand = "javah"; @set %JAVA_Options = ""; @set %JAVA_HeaderOptions = ""; diff --git a/src/WOKBuilderDef/LD.edl b/src/WOKBuilderDef/LD.edl index 9f1ffd2..5af5a76 100755 --- a/src/WOKBuilderDef/LD.edl +++ b/src/WOKBuilderDef/LD.edl @@ -4,123 +4,110 @@ -- Copyright: Matra Datavision 1996 @ifnotdefined ( %LD_EDL ) then -@set %LD_EDL = ""; +-- @set %LD_EDL = ""--;Syntax error +-- @cout "LD"; -@template LD_ShortRef ( %LibName ) is -$ -l%LibName \ -@end; + @template LD_ShortRef ( %LibName ) is + $ -l%LibName \ + @end; -@template LD_LongRef ( %LibDir, %LibName ) is -$ -L%LibDir -l%LibName \ -@end; + @template LD_LongRef ( %LibDir, %LibName ) is + $ -L%LibDir -l%LibName \ + @end; -@if( %Station == "sun" ) then - @template LD_DBDirective (%DBDir) is + @if( %Station == "sun" ) then + @template LD_DBDirective (%DBDir) is $ -ptr%DBDir \ - @end; -@endif; + @end; + @endif; -@if( %Station == "ao1" ) then - @template LD_DBDirective (%DBDir) is + @if( %Station == "ao1" ) then + @template LD_DBDirective (%DBDir) is $ -ptr%DBDir/cxx_repository \ - @end; -@endif; + @end; + @endif; -@if( %Station == "hp" ) then - @template LD_DBDirective (%DBDir) is + @if( %Station == "hp" ) then + @template LD_DBDirective (%DBDir) is $ -ptr%DBDir/ptrepository \ - @end; -@endif; + @end; + @endif; -@template LD_LibSearchPath ( %LibDir ) is -$ -L%LibDir \ -@end; + @template LD_LibSearchPath ( %LibDir ) is + $ -L%LibDir \ + @end; -@if( %Station != "hp" ) then - @template LD_SharedFullPath ( %LibDir, %LibName ) is - $ %LibDir/lib%LibName.so \ - @end; -@endif; + @if( %Station != "hp" ) then + @template LD_SharedFullPath ( %LibDir, %LibName ) is + $ %LibDir/lib%LibName.so \ + @end; + @endif; -@if( %Station == "hp" ) then - @template LD_SharedFullPath ( %LibDir, %LibName ) is - $ %LibDir/lib%LibName.sl \ - @end; -@endif; - -@template LD_ArchiveFullPath ( %LibDir, %LibName ) is -$ %LibDir/lib%LibName.a \ -@end; + @if( %Station == "hp" ) then + @template LD_SharedFullPath ( %LibDir, %LibName ) is + $ %LibDir/lib%LibName.sl \ + @end; + @endif; -@template LD_ObjectRef ( %ObjectPath ) is -$ %ObjectPath \ -@end; + @template LD_ArchiveFullPath ( %LibDir, %LibName ) is + $ %LibDir/lib%LibName.a \ + @end; -@template LD_ExternRef ( %ExternRef ) is -$ %ExternRef \ -@end; + @template LD_ObjectRef ( %ObjectPath ) is + $ %ObjectPath \ + @end; + @template LD_ExternRef ( %ExternRef ) is + $ %ExternRef \ + @end; --- Definition du Link Sun/Solaris 2.4 +-- Definition du Link Linux + @if ( %Station == "lin" ) then + @template LD_Footer ( %Station ) is + $ ; + @end; + @endif; -@if( %Station == "sun" ) then - @template LD_Footer ( ) is - $ -lC -lc ; - $ ; - @end; +-- Definition du Link Sun/Solaris 2.4 -@endif; + @if ( %Station == "sun" ) then + @template LD_Footer ( ) is + $ ; + @end; + @endif; -- Definition du Link DEC/OSF1 - -@if( %Station == "ao1") then - - @template LD_Footer ( ) is - $ -lm -lcxx -lc; - $set stat = $status - $/usr/bin/rm -f so_locations - $set status = $stat - @end; - -@endif; + @if ( %Station == "ao1") then + @template LD_Footer ( ) is + $ -lm -lcxx -lc; + $set stat = $status + $/usr/bin/rm -f so_locations + $set status = $stat + @end; + @endif; -- Definition du Link Silicon Graphics - - -@if( %Station == "sil" ) then - - @template LD_Footer ( %Station ) is - $-lm ; - $ set ld_status=$status; - $ /usr/bin/rm -f so_locations - $ if ( $?LD_LIBRARY_PATH ) then - $ set ld_library_path=$LD_LIBRARY_PATH - $ endif - @end; -@endif; + @if ( %Station == "sil" ) then + @template LD_Footer ( %Station ) is + $-lm ; + $ set ld_status=$status; + $ /usr/bin/rm -f so_locations + $ if ( $?LD_LIBRARY_PATH ) then + $ set ld_library_path=$LD_LIBRARY_PATH + $ endif + @end; + @endif; -- Definition du Link HP-UX - - -@if( %Station == "hp" ) then - - @template LD_Footer ( %Station ) is - $-L/lib -lm ; - $ ; - @end; - -@endif; - --- Definition du Linux - -@if ( %Station == "lin" ) then - @template LD_Footer ( %Station ) is - $ ; - @end; -@endif; + @if ( %Station == "hp" ) then + @template LD_Footer ( %Station ) is + $-L/lib -lm ; + $ ; + @end; + @endif; @endif; diff --git a/src/WOKBuilderDef/LDAR.edl b/src/WOKBuilderDef/LDAR.edl index df76761..b6f4c81 100755 --- a/src/WOKBuilderDef/LDAR.edl +++ b/src/WOKBuilderDef/LDAR.edl @@ -57,7 +57,7 @@ $lib%LDAR_LibName.a\^ @template LDAR_Iter (%LibName,%ObjectList) is - $ /opt/DEV5_1/SUNWspro/bin/CC -xar -o %LibName \ + $ %CSF_CXX_COMPILER -xar -o %LibName \ $ %ObjectList \ $ ; @end; diff --git a/src/WOKBuilderDef/LDEXE.edl b/src/WOKBuilderDef/LDEXE.edl index c124c15..c29298f 100755 --- a/src/WOKBuilderDef/LDEXE.edl +++ b/src/WOKBuilderDef/LDEXE.edl @@ -4,65 +4,84 @@ -- Copyright: Matra Datavision 1996 @ifnotdefined ( %LDEXE_EDL ) then -@set %LDEXE_EDL = ""; - -@ifnotdefined ( %LD_EDL ) then -@uses "LD.edl"; -@endif; - -@set %LDEXE_Header = "LDEXE_Header"; -@set %LDEXE_ObjectRef = "LD_ObjectRef"; -@set %LDEXE_ShortRef = "LD_ShortRef"; -@set %LDEXE_LongRef = "LD_LongRef"; -@set %LDEXE_SharedFullPath = "LD_SharedFullPath"; -@set %LDEXE_ArchiveFullPath = "LD_ArchiveFullPath"; -@set %LDEXE_ExternRef = "LD_ExternRef"; -@set %LDEXE_Footer = "LD_Footer"; - --- Definition du Link Sun/Solaris 2.4 - -@if( %Station == "sun" ) then - -@template LDEXE_Header ( %Target ) is -$ /opt/DEV5_1/SUNWspro/bin/CC -xchip=ultra -xarch=v8 -dy -o %Target \ -@end; - -@endif; +--@set %LDEXE_EDL = ""--;Syntax error + + @ifnotdefined ( %LD_EDL ) then + @uses "LD.edl"; + @endif; + + @ifnotdefined ( %CSF_EDL ) then + @uses "CSF.edl"; + @endif; + + @set %LDEXE_Set = "LDEXE_Set"; + @set %LDEXE_Header = "LDEXE_Header"; + @set %LDEXE_ObjectRef = "LD_ObjectRef"; + @set %LDEXE_ShortRef = "LD_ShortRef"; + @set %LDEXE_LongRef = "LD_LongRef"; + @set %LDEXE_SharedFullPath = "LD_SharedFullPath"; + @set %LDEXE_ArchiveFullPath = "LD_ArchiveFullPath"; + @set %LDEXE_ExternRef = "LD_ExternRef"; + @set %LDEXE_Footer = "LD_Footer"; + + @set %LDEXE_Use_Externlib = %CSF_USE_EXTERNLIB; + + @if( %Station == "sun" ) then + + @set %LDEXE_Opt = "-xchip=ultra -xarch=v8 -dy "; + + @template LDEXE_Set ( %CSF_CXX_COMPILER , + %LDEXE_Opt , + %OutputDir ) is + $#File generated by WOK with LDEXE.edl + $set CSF_CXX_COMPILER = "%CSF_CXX_COMPILER" + $set LDEXE_Opt = "%LDEXE_Opt" + $set OutputDir = "%OutputDir" + @end; + + @template LDEXE_Header ( %Target , %CSF_CXX_COMPILER , %LDEXE_Opt ) is + $set CSF_CXX_COMPILER = "%CSF_CXX_COMPILER" + $set LDEXE_Opt = "%LDEXE_Opt" +-- $set OutputDir = "%OutputDir" + $${CSF_CXX_COMPILER} ${LDEXE_Opt} -o %Target \ + @end; + + @endif; -- Definition du Link DEC/OSF1 -@if( %Station == "ao1") then + @if( %Station == "ao1") then -@template LDEXE_Header ( %Target ) is -$ /usr/bin/cxx -call_shared -msym -o %Target \ -@end; + @template LDEXE_Header ( %Target ) is + $ /usr/bin/cxx -call_shared -msym -o %Target \ + @end; -@endif; + @endif; -- Definition du Link Silicon Graphics -@if( %Station == "sil" ) then + @if( %Station == "sil" ) then -@template LDEXE_Header ( %Target ) is -$ /usr/bin/CC -n32 -mips3 -Wl,-mmap -multigot -call_shared -o %Target \ -@end; + @template LDEXE_Header ( %Target ) is + $ /usr/bin/CC -n32 -mips3 -Wl,-mmap -multigot -call_shared -o %Target \ + @end; -@endif; + @endif; -@if ( %Station == "hp" ) then + @if ( %Station == "hp" ) then - @template LDEXE_Header ( %Target ) is - $/opt/aCC/bin/aCC -Wl,+FPZO -Wl,-E -Wl,+s -o %Target \ - $/opt/langtools/lib/end.o \ - @end; - -@endif; - -@if( %Station == "lin" ) then - @template LDEXE_Header ( %Target ) is - $/usr/bin/g++ -o %Target \ - @end; -@endif; + @template LDEXE_Header ( %Target ) is + $/opt/aCC/bin/aCC -Wl,+FPZO -Wl,-E -Wl,+s -o %Target \ + $/opt/langtools/lib/end.o \ + @end; + + @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 a6d2c33..39ae77c 100755 --- a/src/WOKBuilderDef/LDSHR.edl +++ b/src/WOKBuilderDef/LDSHR.edl @@ -4,12 +4,18 @@ -- Copyright: Matra Datavision 1996 @ifnotdefined ( %LDSHR_EDL ) then - @set %LDSHR_EDL = ""; +--- @set %LDSHR_EDL = ""--;Syntax error +--- @cout "LDSHR -> LD"; @ifnotdefined ( %LD_EDL ) then @uses "LD.edl"; @endif; + @ifnotdefined ( %CSF_EDL ) then + @uses "CSF.edl"; + @endif; + + @set %LDSHR_Set = "LDSHR_Set"; @set %LDSHR_Header = "LDSHR_Header"; @set %LDSHR_ObjectRef = "LD_ObjectRef"; @set %LDSHR_ShortRef = "LD_ShortRef"; @@ -41,7 +47,7 @@ $ -all %LibDir/lib%LibName.a -none \ @end; - @if( %Station == "sun" ) then + @if ( %Station == "lin" ) then @set %LDSHR_Footer = "LDSHR_Footer"; @set %LDSHR_ArchiveFullPath = "LDSHR_ArchiveFullPath"; @@ -49,25 +55,75 @@ $\^ @end; - @template LDSHR_Header ( %Target, %LDSHR_DBMSOpt ) is - $/opt/DEV5_1/SUNWspro/bin/CC -xchip=ultra -xarch=v8 -G %LDSHR_DBMSOpt -o %Target \ + @template LDSHR_Header ( %Target, %LDSHR_DBMSOpt ) is + $/usr/bin/g++ -shared %LDSHR_DBMSOpt -o %Target \ @end; @template LDSHR_Footer () is - $ -lC -lc ; - $ set ld_status=$status; + $ ; + $ set ld_status=$status; @end; @template LDSHR_CheckUndefHeader ( %Target, %LDSHR_DBMSOpt ) is - $/opt/DEV5_1/SUNWspro/bin/CC -xchip=ultra -xarch=v8 %LDSHR_DBMSOpt -o %Target \ + $/usr/bin/ld -nostartfiles %LDSHR_DBMSOpt -o %Target \ @end; @template LDSHR_CheckUndefFooter () is - $ -lC -lc ; + $ ; $ set status=$ld_status; @end; @endif; + + @if( %Station == "sun" ) then + @set %LDSHR_Footer = "LDSHR_Footer"; + @set %LDSHR_ArchiveFullPath = "LDSHR_ArchiveFullPath"; + + @template LDSHR_ArchiveFullPath ( %LibDir, %LibName ) is + $\^ + @end; + + @set %LDSHR_Opt = "-xchip=ultra -xarch=v8 -G "; + + @template LDSHR_Set ( %CSF_CXX_COMPILER , + %CSF_LINKER , + %LDSHR_Opt , + %LDSHR_DBMSOpt , + %OutputDir ) is + $#File generated by WOK with LDSHR.edl + $set CSF_CXX_COMPILER = "%CSF_CXX_COMPILER" + $set CSF_LINKER = "%CSF_LINKER" + $set LDSHR_Opt = "%LDSHR_Opt" + $set LDSHR_DBMSOpt = "%LDSHR_DBMSOpt" + $set OutputDir = "%OutputDir" + @end; + + @template LDSHR_Header ( %Target , %CSF_CXX_COMPILER , %CSF_LINKER, %LDSHR_Opt , %LDSHR_DBMSOpt ) is + $#File generated by WOK with LDSHR.edl + $set CSF_CXX_COMPILER = "%CSF_CXX_COMPILER" + $set CSF_LINKER = "%CSF_LINKER" + $set LDSHR_Opt = "%LDSHR_Opt" + $set LDSHR_DBMSOpt = "%LDSHR_DBMSOpt" +-- $set OutputDir = "%OutputDir" + $%CSF_CXX_COMPILER ${LDSHR_Opt} ${LDSHR_DBMSOpt} -o %Target \ + @end; + + @template LDSHR_Footer () is + $ ; + @end; + + @template LDSHR_CheckUndefHeader ( %Target ) is + $set ld_status=$status; + $${CSF_LINKER} -o /dev/null \ + $${OutputDir}/%Target \ + @end; + + @template LDSHR_CheckUndefFooter () is + $ ; + $set status=$ld_status; + @end; + @endif; + @if( %Station == "ao1") then @set %LDSHR_LibLimit = "1"; @@ -124,31 +180,5 @@ @end; @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 - $ ; - $ set ld_status=$status; - @end; - - @template LDSHR_CheckUndefHeader ( %Target, %LDSHR_DBMSOpt ) is - $/usr/bin/ld -nostartfiles %LDSHR_DBMSOpt -o %Target \ - @end; - - @template LDSHR_CheckUndefFooter () is - $ ; - $ set status=$ld_status; - @end; - @endif; @endif; diff --git a/src/WOKBuilderDef/LIB.edl b/src/WOKBuilderDef/LIB.edl index 02efa0c..51ba4cc 100755 --- a/src/WOKBuilderDef/LIB.edl +++ b/src/WOKBuilderDef/LIB.edl @@ -8,9 +8,13 @@ @ifnotdefined ( %LIB_EDL ) then @set %LIB_EDL = ""; + @ifnotdefined ( %CSF_EDL ) then + @uses "CSF.edl"; + @endif; + @set %LIB_LibraryOutput = "-out:"; --- filename extension for library manager command file +-- filename extension for library manager command file (list of .obj files) @set %LIB_LibraryCFExt = ".lbr"; -- filename for static library @@ -28,16 +32,25 @@ $%LIB_ExplibName.exp\^ @end; - @template LIB_LibraryHeaderSTATIC ( %Station ) is - $D:/DevTools/VStudio/VC98/bin/lib -nologo \^ + @template LIB_LibraryHeaderSTATIC ( + %CSF_LibraryHeaderLib , + %CSF_LibraryHeaderOpt , + %Station ) is + $%CSF_LibraryHeaderLib %CSF_LibraryHeaderOpt \^ @end; @template LIB_LibraryEXP ( %CollectorOutput ) is $%CollectorOutput.exp\^ @end; - @template LIB_LibraryHeaderIMPORT ( %LibraryDEFile ) is - $D:/DevTools/VStudio/VC98/bin/lib -nologo -def:%LibraryDEFile \^ + @template LIB_LibraryHeaderIMPORT ( + %CSF_LibraryHeaderLib , + %CSF_LibraryHeaderOpt , + --%LibraryHeaderLib , + --%LibraryHeaderOpt , + %LibraryDEFile ) is + --$%LibraryHeaderLib %LibraryHeaderOpt -def:%LibraryDEFile \^ + $%CSF_LibraryHeaderLib %CSF_LibraryHeaderOpt -def:%LibraryDEFile \^ @end; @template LIB_LibrarySTATLIB ( %CollectorOutput ) is diff --git a/src/WOKBuilderDef/LINK.edl b/src/WOKBuilderDef/LINK.edl index 96acd68..c18bcdc 100755 --- a/src/WOKBuilderDef/LINK.edl +++ b/src/WOKBuilderDef/LINK.edl @@ -6,7 +6,10 @@ -- ( Microsoft Visual C/C++ V4.1 ) @ifnotdefined ( %LINK_EDL ) then - @set %LINK_EDL = ""; +-- @set %LINK_EDL = ""--; Syntax error + @cout "LINK"; + + @uses "CSF.edl"; -- filename extension for linker command file ( DLL ) @set %LINK_LinkerCFExtDLL = ".lnkDLL"; @@ -21,14 +24,10 @@ @set %LINK_LinkerOutput = " -out:"; - @set %LinkModeOpt = "-debug"; - --- Selects wether you build a CONSOLE executable or WINDOWS one - @set %LINK_ExeType = "CONSOLE"; - --- Set %LINK_NoDefStub if you do not want tu link with stub objects - @set %LINK_NoDefStub = " "; + @set %LINKModeOpt = "-debug"; +-- Set %LINK_NoDefStub if you do not want to link with stub objects + @set %LINK_NoDefStub = " "; @set %LINK_LinkerPDBOption = " -pdb:"; @@ -54,12 +53,17 @@ $%CollectorOutput.exe\^ @end; - @template LINK_LinkerHeaderDLL ( %Station, %LinkModeOpt ) is - $D:/DevTools/VStudio/VC98/bin/link -nologo -subsystem:windows -dll -incremental:no -machine:IX86 %LinkModeOpt \^ + @template LINK_LinkerHeaderDLL ( %CSF_LINKER , + %Station, + %LINKModeOpt ) is + $%CSF_LINKER -nologo -subsystem:windows -dll -incremental:no -machine:IX86 %LINKModeOpt \^ @end; - @template LINK_LinkerHeaderEXE ( %Station, %LinkModeOpt, %LinkSubsystem ) is - $D:/DevTools/VStudio/VC98/bin/link -nologo -subsystem:%LinkSubsystem -incremental:no -machine:IX86 %LinkModeOpt \^ + @template LINK_LinkerHeaderEXE ( %CSF_LINKER , + %Station, + %LINKModeOpt, + %LINKSubsystem ) is + $%CSF_LINKER -nologo -subsystem:%LINKSubsystem -incremental:no -machine:IX86 %LINKModeOpt \^ @end; @endif; diff --git a/src/WOKBuilderDef/LINKSHR.edl b/src/WOKBuilderDef/LINKSHR.edl index 394523d..a5d78b7 100755 --- a/src/WOKBuilderDef/LINKSHR.edl +++ b/src/WOKBuilderDef/LINKSHR.edl @@ -10,6 +10,10 @@ @uses "LDSHR.edl"; @endif; + @ifnotdefined ( %CSF_EDL ) then + @uses "CSF.edl"; + @endif; + @set %LINKSHR_Header = "LINKSHR_Header"; @set %LINKSHR_ObjectRef = "LD_ObjectRef"; @set %LINKSHR_ShortRef = "LD_ShortRef"; @@ -18,12 +22,16 @@ @set %LINKSHR_ArchiveFullPath = "LDSHR_ArchiveFullPath"; @set %LINKSHR_ExternRef = "LD_ExternRef"; @set %LINKSHR_Footer = "LD_Footer"; + + @set %LINKSHR_Use_Externlib = %CSF_USE_EXTERNLIB; @if ( %Station == "sun" ) then @set %LINKSHR_DBMSOpt = "-mt"; @else @set %LINKSHR_DBMSOpt = ""; @endif; +@set %LINKSHR_DBMSOpt = %CSF_LINKER_CheckOpt ; + @if ( %Station != "hp" ) then @template LINKSHR_FileName ( %LINKSHR_LibName ) is @@ -49,8 +57,8 @@ $\^ @end; - @template LINKSHR_Header ( %Target, %LINKSHR_DBMSOpt ) is - $/opt/DEV5_1/SUNWspro/bin/CC -xchip=ultra -xarch=v8 -G %LINKSHR_DBMSOpt -o %Target \ + @template LINKSHR_Header ( %Target, %LDSHR_Opt , %LINKSHR_DBMSOpt , %CSF_CXX_COMPILER ) is + $%CSF_CXX_COMPILER %LDSHR_Opt %LINKSHR_DBMSOpt -o %Target \ @end; @template LINKSHR_Footer () is @@ -262,6 +270,7 @@ @set %LINKSHR_ObjectRef = "LINKSHR_ObjectRef"; @set %LINKSHR_ShortRef = "LINKSHR_ShortRef"; @set %LINSHR_ShortRef = "LD_ShortRef"; + @set %LINKSHR_LibLimit = "300"; @template LINKSHR_ObjectRef ( %ObjectPath ) is $\^ @@ -269,7 +278,6 @@ @template LINKSHR_ArchiveFullPath ( %LibName) is $ lib%LibName.a \ - $\^ @end; @template LD_ShortRef ( %LibNameUsed ) is @@ -281,52 +289,54 @@ $ 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 \ + $ chmod 755 ${allLibPath}/lib${localud}.a + $ cd ${allLibPath} + $ /usr/ibmcxx/bin/makeC++SharedLib -o %Target \ $ -bM:SRE \ $ -p 0 \ @end; @template LINKSHR_Footer ( %Target, %LibName) is - $ -e$allLibPath/lib%LibName.imp \ + $ -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 +--- $ set ld_status=${status} +-- $ echo "#\!lib%LibName" > ${allLibPath}/lib%LibName.exp +-- $ cat ${allLibPath}/lib%LibName.imp >> ${allLibPath}/lib%LibName.exp +-- $ 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 \ +-- $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 not made on AIX " +-- $ /usr/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 + -- $ if ( ${status} ) then + -- $ echo "Check failed" + -- $ else + -- $ echo "Check1 successed" + -- $ endif + -- $ if ( $?{ld_library_path} ) then + -- $ setenv LIBPATH "${ld_library_path}" + -- $ else + -- $ unsetenv LIBPATH + -- $ endif +-- $ set status=${ld_status} @end;