From f9ce94e090c1b16b65296898f1397dc724388b78 Mon Sep 17 00:00:00 2001 From: cascade Date: Mon, 17 Nov 2003 21:43:22 +0000 Subject: [PATCH] Connect to BugMaster for details --- src/WOKBuilderDef/CMPLRS.edl | 68 +++---- src/WOKBuilderDef/CSF.edl | 359 +++++++++++++++++----------------- src/WOKBuilderDef/LINKSHR.edl | 20 +- 3 files changed, 211 insertions(+), 236 deletions(-) diff --git a/src/WOKBuilderDef/CMPLRS.edl b/src/WOKBuilderDef/CMPLRS.edl index 30b36fd..857cabb 100755 --- a/src/WOKBuilderDef/CMPLRS.edl +++ b/src/WOKBuilderDef/CMPLRS.edl @@ -67,16 +67,6 @@ @set %DebugMode = "False"; @endif; - ---- for JAVA : - @set %CMPLRS_CXX_JAVA = "" ; - @ifdefined ( %UnitType ) then - @if (%UnitType == "jini") then - @uses "JAVA.edl" ; - @string %CMPLRS_CXX_JAVA = %CXX_JAVA ; - @endif; - @endif; - @if ( %Station == "wnt" ) then --WARNING : For WNT, it is necessary to have $set symbol_name=%symbol_value% @@ -314,6 +304,7 @@ @set %CMPLRS_CXX_SysOptions = %CSF_CXX_SysOptions ; @set %CMPLRS_CXX_Options = %CSF_CXX_Options ; @set %CMPLRS_CXX_INCLUDE = %CSF_CXX_INCLUDE ; + @string %CMPLRS_CXX_INCLUDE += %CSF_JAVA_INCLUDE ; @set %CMPLRS_C_COMPILER = %CSF_C_COMPILER ; @set %CMPLRS_C_SysOptions = %CSF_C_SysOptions; @@ -446,7 +437,6 @@ %CMPLRS_CXX_Options , %CMPLRS_CXX_ModeOpt , %CMPLRS_CXX_DBMSOpt , %CMPLRS_CXX_INCLUDE , - %CMPLRS_CXX_JAVA , %CMPLRS_CXX_WOKDirectives , %IncDirectives , %DBDirectives , @@ -458,7 +448,6 @@ $CMPLRS_CXX_ModeOpt = %CMPLRS_CXX_ModeOpt $CMPLRS_CXX_DBMSOpt = %CMPLRS_CXX_DBMSOpt $CMPLRS_CXX_INCLUDE = %CMPLRS_CXX_INCLUDE - $CMPLRS_CXX_JAVA = %CMPLRS_CXX_JAVA $CMPLRS_CXX_WOKDirectives = %CMPLRS_CXX_WOKDirectives $Dynamic include directives are : $%IncDirectives @@ -470,7 +459,6 @@ %CMPLRS_CXX_ModeOpt , %CMPLRS_CXX_DBMSOpt , %CMPLRS_CXX_INCLUDE , - %CMPLRS_CXX_JAVA , %CMPLRS_CXX_WOKDirectives , %IncDirectives , %DBDirectives , @@ -478,10 +466,11 @@ %BaseName, %OutputDir , %TmpFile , %Entity ) is - $%CMPLRS_CXX_COMPILER %CMPLRS_CXX_SysOptions %CMPLRS_CXX_Options %CMPLRS_CXX_INCLUDE %CMPLRS_CXX_JAVA %CMPLRS_CXX_DBMSOpt %CMPLRS_CXX_ModeOpt %IncDirectives %DBDirectives %CMPLRS_CXX_WOKDirectives -c %Source -o %OutputDir/%BaseName.o + $%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 $cd %OutputDir - $%CMPLRS_CXX_COMPILER %CMPLRS_CXX_SysOptions %CMPLRS_CXX_Options %CMPLRS_CXX_INCLUDE %CMPLRS_CXX_JAVA %CMPLRS_CXX_DBMSOpt %CMPLRS_CXX_ModeOpt %IncDirectives %DBDirectives %CMPLRS_CXX_WOKDirectives -c %Source -o %OutputDir/%BaseName.o >& %TmpFile + $%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 + $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 @@ -623,7 +612,6 @@ $CMPLRS_CXX_ModeOpt = %CMPLRS_CXX_ModeOpt $CMPLRS_CXX_DBMSOpt = %CMPLRS_CXX_DBMSOpt $CMPLRS_CXX_INCLUDE = %CMPLRS_CXX_INCLUDE - $CMPLRS_CXX_JAVA = %CMPLRS_CXX_JAVA $CMPLRS_CXX_WOKDirectives = %CMPLRS_CXX_WOKDirectives $Dynamic include directives are : $%IncDirectives @@ -635,17 +623,16 @@ %CMPLRS_CXX_ModeOpt , %CMPLRS_CXX_DBMSOpt , %CMPLRS_CXX_INCLUDE , - %CMPLRS_CXX_JAVA , - %CMPLRS_CXX_WOKDirectives , + %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_JAVA %CMPLRS_CXX_DBMSOpt %CMPLRS_CXX_ModeOpt %IncDirectives %DBDirectives %CMPLRS_CXX_WOKDirectives -c %Source -o %OutputDir/%BaseName.o >& %TmpFile + $%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_JAVA %CMPLRS_CXX_DBMSOpt %CMPLRS_CXX_ModeOpt -c $SOURCE -o $OBJECT' > %OutputDir/../%Entity/.adm/cxx.compile + $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 @@ -678,16 +665,16 @@ @end; @if ( %DebugMode == "True" ) then - @set %CMPLRS_CXX_ModeOpt = "-D_DEBUG "; - @set %CMPLRS_C_ModeOpt = "-D_DEBUG "; + @set %CMPLRS_CXX_ModeOpt = "-DDEB -D_DEBUG -DCSFDB"; + @set %CMPLRS_C_ModeOpt = "-DDEB -D_DEBUG -DCSFDB"; @set %CMPLRS_CXX_SysOptions = "-nologo -MDd -W3 -Gm -GX -Od -Zi"; @set %CMPLRS_C_SysOptions = "-nologo -MDd -W3 -Gm -GX -Od -Zi"; @set %CMPLRS_F77_ModeOpt = "-DDEB -D_DEBUG"; @else - @set %CMPLRS_CXX_ModeOpt = "-DNDEBUG -DNo_Exception "; - @set %CMPLRS_C_ModeOpt = "-DNDEBUG -DNo_Exception "; + @set %CMPLRS_CXX_ModeOpt = "-DNDEBUG -DNo_Exception -DCSFDB"; + @set %CMPLRS_C_ModeOpt = "-DNDEBUG -DNo_Exception -DCSFDB"; @set %CMPLRS_CXX_SysOptions = "-nologo -MD -W3 -GX -O2 "; - @set %CMPLRS_C_SysOptions = "-nologo -MD -W3 -GX -O2 "; + @set %CMPLRS_C_SysOptions = "-nologo -MDd -W3 -GX -O2 "; @set %CMPLRS_F77_ModeOpt = "-DNDEBUG -DNo_Exception"; @endif; @@ -718,7 +705,7 @@ @end; @template CMPLRS_CXX_Footer( - %CMPLRS_CXX_Options, + %CMPLRS_CXX_Options, %CMPLRS_ExportBehaviour , %IncDirectives, %Unit_CXX_Options , @@ -742,7 +729,6 @@ %CMPLRS_CXX_ModeOpt , %CMPLRS_CXX_DBMSOpt , %CMPLRS_CXX_INCLUDE , - %CMPLRS_CXX_JAVA , %CMPLRS_CXX_WOKDirectives , %IncDirectives , %DBDirectives , @@ -755,22 +741,23 @@ $CMPLRS_CXX_ModeOpt = %CMPLRS_CXX_ModeOpt $CMPLRS_CXX_DBMSOpt = %CMPLRS_CXX_DBMSOpt $CMPLRS_CXX_INCLUDE = %CMPLRS_CXX_INCLUDE - $CMPLRS_CXX_JAVA = %CMPLRS_CXX_JAVA $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_JAVA, %CMPLRS_CXX_DBMSOpt, %IncDirectives, %CMPLRS_CXX_INCLUDE, %PDBName, %Source, + %CMPLRS_CXX_DBMSOpt, %IncDirectives, %CMPLRS_CXX_INCLUDE, %PDBName, %Source, %BaseName, %OutputDir, %CMPLRS_ExportBehaviour ) is $%CMPLRS_CXX_COMPILER %CMPLRS_CXX_SysOptions %CMPLRS_CXX_Options %CMPLRS_ExportBehaviour\^ - $ %IncDirectives %CMPLRS_CXX_INCLUDE %CMPLRS_CXX_ModeOpt %CMPLRS_CXX_JAVA %CMPLRS_CXX_DBMSOpt\^ + $ %IncDirectives %CMPLRS_CXX_INCLUDE %CMPLRS_CXX_ModeOpt \^ $ -Fd%PDBName -c -Tp %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 %CMPLRS_CXX_INCLUDE\^ + $@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; @@ -914,8 +901,7 @@ %CMPLRS_CXX_ModeOpt , %CMPLRS_CXX_DBMSOpt , %CMPLRS_CXX_INCLUDE , - %CMPLRS_CXX_JAVA , - %CMPLRS_CXX_WOKDirectives , + %CMPLRS_CXX_WOKDirectives , %IncDirectives , %DBDirectives , %Entity ) is @@ -926,7 +912,6 @@ $CMPLRS_CXX_ModeOpt = %CMPLRS_CXX_ModeOpt $CMPLRS_CXX_DBMSOpt = %CMPLRS_CXX_DBMSOpt $CMPLRS_CXX_INCLUDE = %CMPLRS_CXX_INCLUDE - $CMPLRS_CXX_JAVA = %CMPLRS_CXX_JAVA $CMPLRS_CXX_WOKDirectives = %CMPLRS_CXX_WOKDirectives $Dynamic include directives are : $%IncDirectives @@ -938,15 +923,14 @@ %CMPLRS_CXX_ModeOpt , %CMPLRS_CXX_DBMSOpt , %CMPLRS_CXX_INCLUDE , - %CMPLRS_CXX_JAVA , - %CMPLRS_CXX_WOKDirectives , + %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_JAVA %CMPLRS_CXX_DBMSOpt %CMPLRS_CXX_ModeOpt %IncDirectives %DBDirectives %CMPLRS_CXX_WOKDirectives %TmpFile -c %Source -o %OutputDir/%BaseName.o + $%CMPLRS_CXX_COMPILER %CMPLRS_CXX_SysOptions %CMPLRS_CXX_Options %CMPLRS_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 @@ -1045,15 +1029,14 @@ %CMPLRS_CXX_Options , %CMPLRS_CXX_ModeOpt , %CMPLRS_CXX_DBMSOpt , %CSF_CXX_INCLUDE , - %CMPLRS_CXX_JAVA , - %CMPLRS_CXX_WOKDirectives , + %CMPLRS_CXX_WOKDirectives , %IncDirectives , %DBDirectives , %Source, %BaseName, %OutputDir , %TmpFile ) is - $%CSF_CXX_COMPILER %CMPLRS_CXX_SysOptions %CMPLRS_CXX_Options %CSF_CXX_INCLUDE %CMPLRS_CXX_JAVA %CMPLRS_CXX_DBMSOpt %CMPLRS_CXX_ModeOpt %IncDirectives %DBDirectives %CMPLRS_CXX_WOKDirectives -c %Source -o %OutputDir/%BaseName.o >& %TmpFile + $%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}' \ @@ -1141,15 +1124,14 @@ %CMPLRS_CXX_Options , %CMPLRS_CXX_ModeOpt , %CMPLRS_CXX_DBMSOpt , %CSF_CXX_INCLUDE , - %CMPLRS_CXX_JAVA , - %CMPLRS_CXX_WOKDirectives , + %CMPLRS_CXX_WOKDirectives , %IncDirectives , %DBDirectives , %Source, %BaseName, %OutputDir , %TmpFile ) is - $%CSF_CXX_COMPILER %CMPLRS_CXX_SysOptions %CMPLRS_CXX_Options %CSF_CXX_INCLUDE %CMPLRS_CXX_JAVA %CMPLRS_CXX_DBMSOpt %CMPLRS_CXX_ModeOpt %IncDirectives %DBDirectives %CMPLRS_CXX_WOKDirectives -c %Source -o %OutputDir/%BaseName.o >& %TmpFile + $%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 diff --git a/src/WOKBuilderDef/CSF.edl b/src/WOKBuilderDef/CSF.edl index 885a5f3..c82c6e7 100755 --- a/src/WOKBuilderDef/CSF.edl +++ b/src/WOKBuilderDef/CSF.edl @@ -1,132 +1,25 @@ --- File: CSF.edl --- Author: Jean GAUTIER - Jean Rahuel --- History: Thu Mar 14 19:28:20 1996 Jean GAUTIER Creation --- Copyright: Matra Datavision 1996 - --- Symbols for global WOK management - +-- WOK Build process configuration file. +-- This file contains the definiton of parameters used during compilation +-- and link process launched by the commands umake or wprocess. +-- The items you have to modify are surrounded py a comment beginning with the +-- string "--< 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 = "Yes"; - --- 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 = "Yes"; - --- 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_CREATECOMP_DEP = "Yes" ; + @set %CSF_USE_EXTERNLIB = "Yes" ; + + +--<< TODO : Place here the location where the tarball has been downloaded. >> + @set %CSF_WOKHOME = "${WOKHOME}" ; +-->> END TODO @set %CSF_C_COMPILER = ""; @set %CSF_C_SysOptions = ""; @@ -159,7 +52,7 @@ @set %CSF_JavaLibs = ""; @string %CSF_C_INCLUDE = " -I" %CSF_WOKHOME "/lib "; - @string %CSF_CXX_INCLUDE = " -I" %CSF_WOKHOME "/lib " ; + @string %CSF_CXX_INCLUDE = " -I" %CSF_WOKHOME "/lib "; @set %CSF_TCL_HOME = ""; @set %CSF_TCL_INCLUDE = ""; @@ -192,6 +85,7 @@ @set %CSF_OODBLibs = ""; @set %CSF_STANDARDDB = "StandardTRAN"; + @set %STLPortHome = ""; @ifnotdefined ( %DBMS ) then @set %DBMS = "DFLT"; @@ -209,44 +103,62 @@ @set %CSF_STANDARDDB = "StandardOBJS"; @endif; - - - + -- + -- For Linux platforms + -- @if ( %Station == "lin" ) then @if ( %DBMS == "OBJS" ) then @set %CSF_OODBLibs = ""; @endif; + --<< TODO : If applicable , modify the location of the C++ compiler. @set %CSF_CXX_COMPILER = "/usr/bin/g++ "; - --- @set %CSF_CXX_COMPILER = "/PRODUCTS/Linux/gcc-3.2/bin/g++ "; + -->> END TODO + @set %STLPortHome = "/dn01/KAS/STLport-4.5.3"; + @if ( %STLPortHome != "") then + @string %STLPortInclude = "-I" %STLPortHome "/stlport"; + @string %STLPortLib = "-L" %STLPortHome "/lib -lstlport_gcc"; + @else + @set %STLPortInclude = ""; + @set %STLPortLib = ""; + @endif; @set %CSF_CXX_SysOptions = "-fPIC -funsigned-char -Wall "; - @set %CSF_CXX_Options = "-DLIN -DLININTEL -DNO_CXX_EXCEPTION "; + @string %CSF_CXX_Options = "-DLIN -DLININTEL -DNO_CXX_EXCEPTION " %STLPortInclude; + --<< TODO : If applicable , modify the location of the c compiler. @set %CSF_C_COMPILER = "/usr/bin/gcc "; - ---@set %CSF_C_COMPILER = "/PRODUCTS/Linux/gcc-3.2/bin/gcc "; - @set %CSF_C_SysOptions = "-fPIC -funsigned-char -Wall "; + -->> END TODO + + @set %CSF_C_SysOptions = "-fPIC -funsigned-char -Wall"; @set %CSF_C_Options = "-DLIN -DLININTEL "; - @set %CSF_F77_COMPILER = "/usr/bin/g77 "; - ----@set %CSF_F77_COMPILER = "/PRODUCTS/Linux/gcc-3.2/bin/g77 "; + --<< TODO : If applicable , modify the location of the Fortran compiler. + @set %CSF_F77_COMPILER = "/usr/bin/f77 "; + -->> END TODO + @set %CSF_F77_SysOptions = "-fPIC "; - @set %CSF_LINKER = "/usr/bin/ld "; + @string %CSF_LINKER = "/usr/bin/ld " %STLPortLib; @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_CheckOpt = "-nostartfiles "; @set %CSF_LINKER_CheckOut = "-o /dev/null "; - @set %CSF_SOCKETLibs = " -ldl" ; + --<< TODO : If applicable , modify the root location where TCL is installed. @set %CSF_TCL_HOME = "/usr"; + -->> END TODO + @string %CSF_TCL_INCLUDE = %CSF_TCL_HOME "/include "; - @set %CSF_JavaHome = "/PRODUCTS/java/jdk_lin1.3.1"; + --<< TODO : If applicable , modify the root location where Java is installed. + @set %CSF_JavaHome = "/PRODUCTS/java/lin/jdk1.2.2"; + -->> END TODO + @string %CSF_JAVA_INCLUDE = "-I" %CSF_JavaHome "/include -I" %CSF_JavaHome "/include/linux "; @set %CSF_JAVA_COMPILER = "javac"; @set %CSF_JAVA_JNI = "javah"; @@ -256,27 +168,43 @@ @set %X11_LIB = "/usr/X11R6/lib"; - @string %CSF_XwLibs = "-L" %X11_LIB " -lX11 -lXext -lXmu -lXi "; + @string %CSF_XwLibs = "-L" %X11_LIB " -lX11 -lXext -lXmu -lXi -ldps"; - @string %CSF_OpenGlLibs = "-L" %X11_LIB " -lGLU -lGL " ; + @string %CSF_OpenGlLibs = "-L" %X11_LIB " -lGLU -lGL -lglut -dps" ; - @string %CSF_TclLibs = "-L" %CSF_TCL_HOME "/lib -ltcl"; + @string %CSF_TclLibs = "-L" %CSF_TCL_HOME "/lib -ltcl "; @string %CSF_TclTkLibs = "-L" %CSF_TCL_HOME "/lib -ltk -L" %X11_LIB " -lX11"; @endif; - + -- + -- For SunOS platforms + -- @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_CXX_COMPILER = "/home/forte/SUNWspro/bin/CC "; - @set %CSF_CXX_COMPILER = "/opt/DEV5_1/SUNWspro/bin/CC "; + --<< TODO : If applicable , modify the location of the C++ compiler. + @set %CSF_CXX_COMPILER = "/opt/DEV5_1/SUNWspro/bin/CC"; + -->> END TODO + + @set %STLPortHome = ""; + @if ( %STLPortHome != "") then + @string %STLPortInclude = "-I" %STLPortHome "/stlport"; + @string %STLPortLib = "-L" %STLPortHome "/lib -lstlport_sunpro42"; + @else + @set %STLPortInclude = ""; + @set %STLPortLib = ""; + @endif; @set %CSF_CXX_SysOptions = "-PIC -xchip=ultra -xarch=v8 -vdelx -Usun " ; - @set %CSF_CXX_Options = "-DSOLARIS -DNO_CXX_EXCEPTION " ; - @string %CSF_CXX_INCLUDE += " -I/opt/DEV5_1/SUNWspro/SC4.2/include/CC "; + @string %CSF_CXX_Options = "-DSOLARIS -DNO_CXX_EXCEPTION "%STLPortInclude ; + --yan @string %CSF_CXX_INCLUDE += " -I/opt/DEV5_1/SUNWspro/SC4.2/include/CC "; + @string %CSF_CXX_INCLUDE += " -I" %CSF_CXX_COMPILER "/../../SC4.2/include/CC "; + --<< TODO : If applicable , modify the location of the c compiler. @set %CSF_C_COMPILER = "/opt/DEV5_1/SUNWspro/bin/cc "; + -->> END TODO + @set %CSF_C_SysOptions = "-K PIC -Usun "; @set %CSF_C_Options = "-DSOLARIS "; @@ -295,51 +223,70 @@ @set %CSF_LINKER_CheckOpt = ""; @set %CSF_LINKER_CheckOut = "-o /dev/null "; - @set %CSF_JavaHome = "/PRODUCTS/java/j2sdk1_3_1"; + --<< TODO : If applicable , modify the root location where Java is installed. + @set %CSF_JavaHome = "/PRODUCTS/java/jdk1.2"; + -->> END TODO + @string %CSF_JAVA_INCLUDE = "-I" %CSF_JavaHome "/include -I" %CSF_JavaHome "/include/solaris "; + @string %CSF_JavaLibs = " -L" %CSF_JavaHome "/jre/lib/sparc/ -ljava "; @set %CSF_JAVA_COMPILER = "javac"; @set %CSF_JAVA_JNI = "javah"; + @set %CSF_SOCKETLibs = "-lsocket -lnsl -lsunmath -lm -ldl -lc " ; + @set %CSF_RISCRETURNObject = "/missing/missing/risc_return.o" ; - @set %CSF_SOCKETLibs = "-lsocket -lnsl -lsunmath -lm -ldl -lc" ; - --@set %CSF_RISCRETURNObject = "/adv_23/KL/dev/ref/src/EngineStarter/risc_return.o" ; - --@set %CSF_RISCRETURNObject = "/missing/missing/risc_return.o" ; - @set %CSF_RISCRETURNObject = "/dn04/KAS/C40/Gallery/src/EngineStarter/risc_return.o" ; - @string %CSF_JavaLibs = " -L" %CSF_JavaHome "/jre/lib/sparc/ -ljava "; - + --<< TODO : If applicable , modify the root location where TCL is installed. @set %CSF_TCL_HOME = "/PRODUCTS/tcltk-83"; - --@set %CSF_TCL_HOME = "/usr/tcltk"; + -->> END TODO + @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 "; - @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"; + @set %CSF_X11_INCLUDE = "-I/usr/openwin/include/X11 "; + @set %CSF_OPENGL_INCLUDE = "-I/usr/openwin/include "; - @set %X11_LIB = "/usr/openwin/lib"; - @string %CSF_dpslibs = "-L" %X11_LIB " -ldps"; @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/usr/dt/lib -lXm -L" %X11_LIB " -lXt -lX11"; - @set %CSF_EUCF77Libs = "-L/opt/DEV4_2/SUNWspro/lib -lF77 -lM77 -lsunmath -lcurses"; - @set %CSF_F77Libs = "-L/opt/DEV4_2/SUNWspro/lib -lF77 -lM77 -lsunmath -lcurses"; - @endif; + @endif; + -- + -- For Windows platform. The lines below works with MS Visual Studio installed on D:/DevTools + -- @if (%Station == "wnt") then + --<< TODO : If applicable , modify the root location where C++ compiler is installed. @set %CSF_CXX_COMPILER = "D:/DevTools/VStudio/VC98/bin/cl "; + -->> END TODO + @set %STLPortHome = "/dn01/KAS/STLport-4.5.3"; + @if ( %STLPortHome != "") then + @string %STLPortInclude = "-I" %STLPortHome "/stlport"; + @string %STLPortLib = "-L" %STLPortHome "/lib/stlport_vc6.lib"; + @else + @set %STLPortInclude = ""; + @set %STLPortLib = ""; + @endif; + @set %CSF_CXX_SysOptions = "-nologo -MD -W3 -GX -Ob1 -Zi "; - @set %CSF_CXX_Options = "-DWNT -D_WINDOWS -DWIN32 "; + @string %CSF_CXX_Options = "-DWNT -D_WINDOWS -DWIN32 " %STLPortInclude; + --<< TODO : If applicable , modify the root location where c compiler is installed (same as above). @set %CSF_C_COMPILER = "D:/DevTools/VStudio/VC98/bin/cl "; + -->> END TODO + @set %CSF_C_SysOptions = "-nologo -MD -W3 -GX -Ob1 -Zi "; @set %CSF_C_Options = "-DWNT -D_WINDOWS -DWIN32 "; + --<< TODO : If applicable , modify the root location where the Fortran compiler is installed. @set %CSF_F77_COMPILER = "D:/DevTools/VStudio/DF98/bin/fl32 "; + -->> END TODO + @set %CSF_F77_SysOptions = "-nologo -libs:dll -Zi "; @set %CSF_LINKER = "D:/DevTools/VStudio/VC98/bin/link "; @@ -356,15 +303,18 @@ @set %CSF_LibraryHeaderLib = "D:/DevTools/VStudio/VC98/bin/lib "; @set %CSF_LibraryHeaderOpt = "-nologo "; - @string %CSF_JavaHome = "D:/AppTools/jdk1.3.1"; + --<< TODO : If applicable , modify the root location where Java is installed. + @string %CSF_JavaHome = "D:/AppTools/jdk1.2.2"; + -->> END TODO + @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/tcl8.3"; + @set %CSF_TCL_HOME = "D:/DevTools/TclTk"; @string %CSF_TCL_INCLUDE = %CSF_TCL_HOME "/include "; - @string %CSF_TclLibs = %CSF_TCL_HOME "/lib/tcl83.lib"; - @string %CSF_TclTkLibs = %CSF_TCL_HOME "/lib/tk83.lib"; + @string %CSF_TclLibs = %CSF_TCL_HOME "/lib/tcl76i.lib"; + @set %CSF_OpenGlLibs = "opengl32.lib glu32.lib" ; @set %CSF_advapi32 = "advapi32.lib" ; @@ -377,6 +327,9 @@ @endif; + -- + -- The Dec Ultrix platform is not supported + -- @if ( %Station == "ao1" ) then @if ( %DBMS == "OBJS" ) then @set %CSF_OODBLibs = " -L/PRODUCTS/OS4.0.2/lib/ -los -losthr -loscol -losmop"; @@ -386,6 +339,15 @@ @set %CSF_CXX_COMPILER = "/usr/bin/cxx "; @set %CSF_F77_COMPILER = ""; + @set %STLPortHome = "/dn01/KAS/STLport-4.5.3"; + @if ( %STLPortHome != "") then + @string %STLPortInclude = "-I" %STLPortHome "/stlport"; + @string %STLPortLib = "-L" %STLPortHome "/lib -lstlport_dec"; + @else + @set %STLPortInclude = ""; + @set %STLPortLib = ""; + @endif; + @set %CSF_TCL_HOME = "/usr/tcltk"; @string %CSF_TCL_INCLUDE = %CSF_TCL_HOME "/include "; @@ -402,52 +364,63 @@ @string %CSF_TclTkLibs = %CSF_TCL_HOME "/lib -rpath " %CSF_TCL_HOME "/lib -ltcl"; @endif; + -- + -- The IRIX platform is not currently supported + -- @if ( %Station == "sil" ) then @if ( %DBMS == "OBJS" ) then @set %CSF_OODBLibs = " -L/PRODUCTS/OS4.0.3/lib/ -los -losths -loscol -losmop"; @endif; - - @set %CSF_LINKER_SysShared = " -shared "; @set %CSF_C_COMPILER = "cc "; @set %CSF_C_SysOptions = " -signed -n32 -mips3 "; @set %CSF_C_Options = "-DIRIX "; @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_CXX_Options = "-I/usr/include/CC -DIRIX -DNO_CXX_EXCEPTION " ; + @set %STLPortHome = ""; + @if ( %STLPortHome != "") then + @string %STLPortInclude = "-I" %STLPortHome "/stlport"; + @string %STLPortLib = "-L" %STLPortHome "/lib -lstlport_mipspro"; + @else + @set %STLPortInclude = ""; + @set %STLPortLib = ""; + @endif; + @set %CSF_CXX_SysOptions = " -signed -n32 -mips3 -no_prelink -woff 3115 -woff 3273 -woff 1021 -woff 1188 "; + @string %CSF_CXX_Options = "-DIRIX -DNO_CXX_EXCEPTION " %STLPortInclude; - @set %CSF_F77_COMPILER = "f77 "; - @set %CSF_F77_SysOptions = "-n32 -mips3"; + + @set %CSF_F77_COMPILER = "f77 "; + @set %CSF_LINKER_SysShared = " -shared "; @set %CSF_FPELibs = "-L/usr/lib32 -lfpe" ; @set %CSF_TCL_HOME = "/usr/tcltk.64"; - @string %CSF_TCL_INCLUDE = "/usr/tcltk/include/itcl "; + @string %CSF_TCL_INCLUDE = %CSF_TCL_HOME "/include "; @set %CSF_X11_INCLUDE_EXTENSION = " -I/usr/include/X11/extensions "; - @string %CSF_JavaHome = "/PRODUCTS/java/j2sdk1_3_sil"; + @string %CSF_JavaHome = "/PRODUCTS/java/sil_1.2"; @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_XextLibs = "-lXext"; @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 = "-L" %X11_LIB " -lXm -lXt -lX11 "; - @string %CSF_TclLibs = " -L/usr/tcltk.64/lib/itcl -rpath /usr/tcltk.64/lib -ltcl7.5i -L/usr/lib32"; - @string %CSF_TclTkLibs = "-L/usr/tcltk.64/lib/itcl -rpath /usr/tcltk.64/lib -ltk4.1i -L/usr/lib32 -lX11"; + @string %CSF_TclLibs = "-L" %CSF_TCL_HOME "/lib -rpath " %CSF_TCL_HOME "/lib -ltcl"; + @string %CSF_TclTkLibs = "-L" %CSF_TCL_HOME "/lib -rpath " %CSF_TCL_HOME "/lib -ltk"; @endif; + -- + -- The HP-UX platform is not currently supported + -- @if ( %Station == "hp" ) then @if ( %DBMS == "OBJS" ) then @set %CSF_OODBLibs = " -L/PRODUCTS/OS4.0.2/lib/ -los -losthr -loscol -losmop"; @@ -456,7 +429,16 @@ @set %CSF_C_COMPILER = "cc "; @set %CSF_CXX_COMPILER = "/opt/aCC/bin/aCC "; @set %CSF_F77_COMPILER = "f77 "; - @set %CSF_CXX_Options = " -w -DHPUX -D_IOSTREAM_INIT_NOT_NEEDED "; + @set %STLPortHome = ""; + @if ( %STLPortHome != "") then + @string %STLPortInclude = "-I" %STLPortHome "/stlport"; + @string %STLPortLib = "-L" %STLPortHome "/lib -lstlport_aCC"; + @else + @set %STLPortInclude = ""; + @set %STLPortLib = ""; + @endif; + + @string %CSF_CXX_Options = " -w -DHPUX -D_IOSTREAM_INIT_NOT_NEEDED " %STLPortInclude; @set %CSF_C_Options = " -DHPUX "; @set %CSF_TCL_HOME = "/missing/missing "; @@ -482,8 +464,6 @@ @string %CSF_TclLibs = "-L" %CSF_TCL_HOME "/lib -ltcl"; @string %CSF_TclTkLibs = "-L" %CSF_TCL_HOME "/lib -ltk"; - - @string %CSF_JavaHome = "/missing/JavaHome"; @string %CSF_JAVA_INCLUDE = "-I" %CSF_JavaHome "/include -I" %CSF_JavaHome "/include/hp-ux "; @set %CSF_JAVA_COMPILER = "javac"; @@ -492,6 +472,9 @@ @endif; + -- + -- The AIX platform is not currently supported + -- @if ( %Station == "aix" ) then @if ( %DBMS == "OBJS" ) then @set %CSF_OODBLibs = ""; @@ -501,6 +484,16 @@ @set %CSF_CXX_COMPILER = "xlC_r "; @set %CSF_F77_COMPILER = "/usr/bin/f77 "; + @set %STLPortHome = ""; + @if ( %STLPortHome != "") then + @string %STLPortInclude = "-I" %STLPortHome "/stlport"; + @string %STLPortLib = "-L" %STLPortHome "/lib -lstlport_xlC50"; + @else + @set %STLPortInclude = ""; + @set %STLPortLib = ""; + @endif; + + @set %CSF_SOCKETLibs = " " ; @set %CSF_TCL_HOME = "/missing/missing "; diff --git a/src/WOKBuilderDef/LINKSHR.edl b/src/WOKBuilderDef/LINKSHR.edl index 3c43ad0..dd1728a 100755 --- a/src/WOKBuilderDef/LINKSHR.edl +++ b/src/WOKBuilderDef/LINKSHR.edl @@ -61,8 +61,8 @@ $%CSF_CXX_COMPILER %LDSHR_Opt %LINKSHR_DBMSOpt -o %Target \ @end; - @template LINKSHR_Footer () is - $ -lC -lc ; + @template LINKSHR_Footer (%STLPortLib) is + $ -lC -lc %STLPortLib; $ set ld_status=$status $ if ( $?LD_LIBRARY_PATH ) then $ set ld_library_path=$LD_LIBRARY_PATH @@ -118,8 +118,8 @@ $ -all -objectlist %LD_ObjList -none \ @end; - @template LINKSHR_Footer ( %Station ) is - $-lm ; + @template LINKSHR_Footer ( %Station, %STLPortLib) is + $-lm %STLPortLib; $ set ld_status=$status --$ /usr/bin/rm -f so_locations --$ if ( $?LD_LIBRARY_PATH ) then @@ -166,8 +166,8 @@ $-Wl,-c%LD_ObjList.o \ @end; - @template LINKSHR_Footer ( %Station ) is - $-L/usr/lib/aCC -ldld -L/usr/lib -lM -lstd -lCsup -lstream -lcl -lc -lm \ + @template LINKSHR_Footer ( %Station, %STLPortLib ) is + $-L/usr/lib/aCC -ldld -L/usr/lib -lM -lstd -lCsup -lstream -lcl -lc -lm %STLPortLib\ $; $ set ld_status=${status} --$ if ( $?SHLIB_PATH ) then @@ -219,8 +219,8 @@ $/usr/bin/g++ %CSF_LINKER_SysShared %LINKSHR_DBMSOpt -o %Target \ @end; - @template LINKSHR_Footer () is - $ -lc; + @template LINKSHR_Footer (%STLPortLib) is + $ -lc -lpthread %STLPortLib ; $ set ld_status=$status $ if ( $?LD_LIBRARY_PATH ) then $ set ld_library_path=$LD_LIBRARY_PATH @@ -296,9 +296,9 @@ $ -p 0 \ @end; - @template LINKSHR_Footer ( %Target, %LibName) is + @template LINKSHR_Footer ( %Target, %LibName, %STLPortLib ) is $ -e${allLibPath}/lib%LibName.imp \ - $ -bnoentry ; + $ -bnoentry %STLPortLib; --- $ set ld_status=${status} -- $ echo "#\!lib%LibName" > ${allLibPath}/lib%LibName.exp -- $ cat ${allLibPath}/lib%LibName.imp >> ${allLibPath}/lib%LibName.exp -- 2.39.5