/[ascend]/trunk/tcltk98/jam/Jamrules.in
ViewVC logotype

Diff of /trunk/tcltk98/jam/Jamrules.in

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 59 by jds, Sat Oct 1 01:38:26 2005 UTC revision 60 by jds, Mon Oct 31 03:39:15 2005 UTC
# Line 1  Line 1 
1  #  #
2  # Jamrules support file for building Ascend4  # Jamrules support file for building Ascend4
3  # (see http://www.freetype.org/jam/index.html)  # (see http://www.freetype.org/jam/index.html)
4  #  #
5  # This file is part of the Ascend Build System.  # This file is part of the Ascend Build System.
6  #  #
7  # Copyright (C) 2004  Jerry D. St.Clair  # Copyright (C) 2004  Jerry D. St.Clair
8  #  #
9  # The Ascend Build System is free software; you can redistribute  # The Ascend Build System is free software; you can redistribute
10  # it and/or modify it under the terms of the GNU General Public  # it and/or modify it under the terms of the GNU General Public
11  # License as published by the Free Software Foundation; either  # License as published by the Free Software Foundation; either
12  # version 2 of the License, or (at your option) any later version.  # version 2 of the License, or (at your option) any later version.
13  #  #
14  # This program is distributed in hope that it will be useful,  # This program is distributed in hope that it will be useful,
15  # but WITHOUT ANY WARRANTY; without even the implied warranty of  # but WITHOUT ANY WARRANTY; without even the implied warranty of
16  # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the  # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17  # GNU General Public License for more details.  # GNU General Public License for more details.
18  #  #
19  # You should have received a copy of the GNU General Public License  # You should have received a copy of the GNU General Public License
20  # along with the program; if not, write to the Free Software  # along with the program; if not, write to the Free Software
21  # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139 USA.    # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139 USA.  
22  # Check the file named COPYING.  # Check the file named COPYING.
23  #---------------------------------------------------------------------------  #---------------------------------------------------------------------------
24  #  #
25  # UNDER CONSTRUCTION                                # UNDER CONSTRUCTION                              
26  #  #
27  # This is a template Jamrules file which supports building the  # This is a template Jamrules file which supports building the
28  # Tcl/Tk version of the Ascend modeling system, as well as a static  # Tcl/Tk version of the Ascend modeling system, as well as a static
29  # library of Tcl/Tk interface functionality. The Ascend jam build  # library of Tcl/Tk interface functionality. The Ascend jam build
30  # system currently supports building the libraries using the MSVC,  # system currently supports building the libraries using the MSVC,
31  # Borland, MinGW, and Watcom compilers.  # Borland, MinGW, and Watcom compilers.
32  #  #
33  # INSTALLATION IS NOT WORKING IN THE CURRENT VERSION.  # INSTALLATION IS NOT WORKING IN THE CURRENT VERSION.
34  #  #
35  # It is not currently customized by the Ascend configure mechanism,  # It is not currently customized by the Ascend configure mechanism,
36  # although this may be implemented in the future.  # although this may be implemented in the future.
37  #  #
38  # Users should copy/rename this file to 'Jamrules', then modify  # Users should copy/rename this file to 'Jamrules', then modify
39  # the settings manually for their particular system.  Ascend  # the settings manually for their particular system.  Ascend
40  # cannot be built by jam unless the Jambase file is present.  # cannot be built by jam unless the Jambase file is present.
41  #  #
42  # User-customized Jamrules files should not be placed in version  # User-customized Jamrules files should not be placed in version
43  # control.  Only the Jamrules.in template should be versioned.  # control.  Only the Jamrules.in template should be versioned.
44  #  #
45  #---------------------------------------------------------------------------  #---------------------------------------------------------------------------
46    
47  # root directory for installation  # root directory for installation
48  prefix =  c:\\dev ;  prefix =  c:\\dev ;
49  INSTALL_ROOT = $(prefix)$(SLASH)Ascend4-0.9.5 ;  INSTALL_ROOT = $(prefix)$(SLASH)Ascend4-0.9.5 ;
50    
51  # name of the builder of the executable (in double quotes)  # name of the builder of the executable (in double quotes)
52  BUILD_CREDIT = "anonymous" ;  BUILD_CREDIT = "anonymous" ;
53    
54  # Path to general jam info  # Path to general jam info
55  JAM_GENERAL_DIR = ..$(SLASH)..$(SLASH)jam ;  JAM_GENERAL_DIR = ..$(SLASH)..$(SLASH)jam ;
56    
57  # Root dir of Ascend base library sources.  # TODO: Deprecated - remove?
58  #ASC_BASE_ROOT = ..$(SLASH)..$(SLASH)base$(SLASH)generic ;  # Root dir of Ascend base library sources.
59    #ASC_BASE_ROOT = ..$(SLASH)..$(SLASH)base$(SLASH)generic ;
60  # Root dir of Ascend libraries - will be qualified for compiler & build type  
61  #ASC_BASE_LIBDIR = ..$(SLASH)..$(SLASH)base$(SLASH)jam ;  # TODO: Deprecated - remove?
62    # Root dir of Ascend libraries - will be qualified for compiler & build type
63  # root directories for Tcl and Tk libraries  #ASC_BASE_LIBDIR = ..$(SLASH)..$(SLASH)base$(SLASH)jam ;
64  TCL_DIR = ..$(SLASH)..$(SLASH)..$(SLASH)Tcl ;  
65  TK_DIR  = $(TCL_DIR) ;  # root directories for Tcl and Tk libraries
66    #TCL_DIR =  ;
67  # Set the Tcl/Tk/tkTable import library names here to override the  if $(NT)
68  # default, compiler-specific names.  Comment out to use defaults.  {
69  # TCL_LIBRARY = tcl80$(SUFLIB) ;    TCL_DIR ?= ..$(SLASH)..$(SLASH)..$(SLASH)Tcl ;
70  # TK_LIBRARY  = tk80$(SUFLIB) ;  }
71  # TKTABLE_LIB = tkTable$(SUFLIB) ;  else if $(UNIX) || $(OS) = LINUX
72    {
73  if $(NODEBUG)    TCL_DIR ?= /usr/local ;
74    { EXE_NAME = ascopt4 ; }  }
75  else  TK_DIR  = $(TCL_DIR) ;
76    { EXE_NAME = ascend4 ; }  
77    # Set the Tcl/Tk/tkTable import library names here to override the
78  ASC_TCLTK98_LIBROOT = libasc_tcltk98 ;  # default, compiler-specific names.  Comment out to use defaults.
79  ASC_TCLTK98_LIB     = $(ASC_TCLTK98_LIBROOT)$(SUFLIB) ;  # TCL_LIBRARY = tcl80$(SUFLIB) ;
80    # TK_LIBRARY  = tk80$(SUFLIB) ;
81  # Install directories - comment to not install that class of file  # TKTABLE_LIB = tkTable$(SUFLIB) ;
82  INSTALL_BIN_DIR     = $(INSTALL_ROOT)$(SLASH)ascend4$(SLASH)bin ;  
83  INSTALL_DOC_DIR     = $(INSTALL_ROOT)$(SLASH)ascend4$(SLASH)doc ;  if $(NODEBUG)
84  INSTALL_MODELS_DIR  = $(INSTALL_ROOT)$(SLASH)ascend4$(SLASH)models ;    { EXE_NAME = ascopt4 ; }
85  INSTALL_ASC_TK_DIR  = $(INSTALL_ROOT)$(SLASH)ascend4$(SLASH)Tk ;  else
86  INSTALL_USER_DIR    = $(INSTALL_ROOT)$(SLASH)ascend4$(SLASH)user_models ;    { EXE_NAME = ascend4 ; }
87  INSTALL_TCL_DIR     = $(INSTALL_ROOT)$(SLASH)Tcl ;  
88    ASC_TCLTK98_LIBROOT = libasc_tcltk98 ;
89  # Locations of pre-built install files  ASC_TCLTK98_LIB     = $(ASC_TCLTK98_LIBROOT)$(SUFLIB) ;
90  ASC_DOC_DIR    = ;  
91  ASC_MODELS_DIR = ..$(SLASH)..$(SLASH)models ;  # Install directories - comment to not install that class of file
92  ASC_TK_DIR     = ..$(SLASH)TK ;  INSTALL_BIN_DIR     = $(INSTALL_ROOT)$(SLASH)ascend4$(SLASH)bin ;
93    INSTALL_DOC_DIR     = $(INSTALL_ROOT)$(SLASH)ascend4$(SLASH)doc ;
94  # Paths to base libraries  INSTALL_MODELS_DIR  = $(INSTALL_ROOT)$(SLASH)ascend4$(SLASH)models ;
95  ASC_BASE_LIBS_QUAL =  INSTALL_ASC_TK_DIR  = $(INSTALL_ROOT)$(SLASH)ascend4$(SLASH)Tk ;
96    $(JAM_GENERAL_DIR)$(SLASH)$(ASC_BASE_LIBS_RELPATH)$(ASC_BASE_LIBS) ;  INSTALL_USER_DIR    = $(INSTALL_ROOT)$(SLASH)ascend4$(SLASH)user_models ;
97    INSTALL_TCL_DIR     = $(INSTALL_ROOT)$(SLASH)Tcl ;
98  # Paths to FORTRAN libraries  
99  FOR_LIBS =  # Locations of pre-built install files
100    $(JAM_GENERAL_DIR)$(SLASH)$(LSODLIB_RELPATH)$(SLASH)$(LSODLIB)  ASC_DOC_DIR    = ;
101    $(JAM_GENERAL_DIR)$(SLASH)$(MINOSLIB_RELPATH)$(SLASH)$(MINOSLIB)  ASC_MODELS_DIR = ..$(SLASH)..$(SLASH)models ;
102    $(JAM_GENERAL_DIR)$(SLASH)$(CONOPTLIB_RELPATH)$(SLASH)$(CONOPTLIB)  ASC_TK_DIR     = ..$(SLASH)TK ;
103    $(JAM_GENERAL_DIR)$(SLASH)$(LPAKLIB_RELPATH)$(SLASH)$(LPAKLIB)  
104    $(JAM_GENERAL_DIR)$(SLASH)$(BLASLIB_RELPATH)$(SLASH)$(BLASLIB)  # Paths to base libraries
105    $(F77_LIBS)  ASC_BASE_LIBS_QUAL =
106    ;    $(JAM_GENERAL_DIR)$(SLASH)$(ASC_BASE_LIBS_RELPATH)$(ASC_BASE_LIBS) ;
107    
108  #======================================================================  # Paths to FORTRAN libraries
109  # TCL / TK  FOR_LIBS =
110  #    $(JAM_GENERAL_DIR)$(SLASH)$(LSODLIB_RELPATH)$(SLASH)$(LSODLIB)
111  # Set the location of the Tcl/Tk import libraries and include files.    $(JAM_GENERAL_DIR)$(SLASH)$(MINOSLIB_RELPATH)$(SLASH)$(MINOSLIB)
112  # The order should be -ltk -ltcl    $(JAM_GENERAL_DIR)$(SLASH)$(CONOPTLIB_RELPATH)$(SLASH)$(CONOPTLIB)
113  #    $(JAM_GENERAL_DIR)$(SLASH)$(LPAKLIB_RELPATH)$(SLASH)$(LPAKLIB)
114  # We also need the TkTable widget which does not come as a    $(JAM_GENERAL_DIR)$(SLASH)$(BLASLIB_RELPATH)$(SLASH)$(BLASLIB)
115  # standard part of the Tcl/Tk distribution.  This library can    $(F77_LIBS)
116  # either be loaded statically or dynamically.    ;
117  #  
118  # If TK_LIBS and TK_HDRS are not properly set, ASCEND cannot build.  #======================================================================
119  #======================================================================  # TCL / TK
120  TCL_LIB_DIR     ?= $(TCL_DIR)$(SLASH)lib ;  #
121  TK_LIB_DIR      ?= $(TK_DIR)$(SLASH)lib ;  # Set the location of the Tcl/Tk import libraries and include files.
122  TKTABLE_LIB_DIR ?= $(TCL_DIR)$(SLASH)lib ;  # The order should be -ltk -ltcl
123    #
124  if $(NT)  # We also need the TkTable widget which does not come as a
125  {  # standard part of the Tcl/Tk distribution.  This library can
126    if $(BCCROOT) || ( $(TOOLSET) = BORLANDC )  # either be loaded statically or dynamically.
127    {  #
128      TCL_LIBRARY ?= tcl80_bc$(SUFLIB) ;  # If TK_LIBS and TK_HDRS are not properly set, ASCEND cannot build.
129      TK_LIBRARY  ?= tk80_bc$(SUFLIB) ;  #======================================================================
130      TKTABLE_LIB ?= tkTable_bc$(SUFLIB) ;  TCL_LIB_DIR     ?= $(TCL_DIR)$(SLASH)lib ;
131    }  TK_LIB_DIR      ?= $(TK_DIR)$(SLASH)lib ;
132    else if $(MSVCNT) || ( $(TOOLSET) = VISUALC )  TKTABLE_LIB_DIR ?= $(TCL_DIR)$(SLASH)lib ;
133    {  
134      TCL_LIBRARY ?= tcl80$(SUFLIB) ;  if $(NT)
135      TK_LIBRARY  ?= tk80$(SUFLIB) ;  {
136      TKTABLE_LIB ?= tkTable$(SUFLIB) ;    if $(BCCROOT) || ( $(TOOLSET) = BORLANDC )
137    }    {
138    else if $(MINGW) || ( $(TOOLSET) = MINGW )      TCL_LIBRARY ?= tcl80_bc$(SUFLIB) ;
139    {      TK_LIBRARY  ?= tk80_bc$(SUFLIB) ;
140      TCL_LIBRARY ?= libtcl80$(SUFLIB) ;      TKTABLE_LIB ?= tkTable_bc$(SUFLIB) ;
141      TK_LIBRARY  ?= libtk80$(SUFLIB) ;    }
142      TKTABLE_LIB ?= libtkTable$(SUFLIB) ;    else if $(MSVCNT) || ( $(TOOLSET) = VISUALC )
143    }    {
144    else if $(WATCOM) || ( $(TOOLSET) = WATCOM )      TCL_LIBRARY ?= tcl80$(SUFLIB) ;
145    {      TK_LIBRARY  ?= tk80$(SUFLIB) ;
146      TCL_LIBRARY ?= tcl80_wat$(SUFLIB) ;      TKTABLE_LIB ?= tkTable$(SUFLIB) ;
147      TK_LIBRARY  ?= tk80_wat$(SUFLIB) ;    }
148      TKTABLE_LIB ?= tkTable_wat$(SUFLIB) ;    else if $(MINGW) || ( $(TOOLSET) = MINGW )
149    }    {
150  }      TCL_LIBRARY ?= libtcl80$(SUFLIB) ;
151  else if $(OS) = LINUX      TK_LIBRARY  ?= libtk80$(SUFLIB) ;
152  {      TKTABLE_LIB ?= libtkTable$(SUFLIB) ;
153      TCL_LIBRARY ?= libtcl80$(SUFLIB) ;    }
154      TK_LIBRARY  ?= libtk80$(SUFLIB) ;    else if $(WATCOM) || ( $(TOOLSET) = WATCOM )
155      TKTABLE_LIB ?= libtkTable$(SUFLIB) ;    {
156  }      TCL_LIBRARY ?= tcl80_wat$(SUFLIB) ;
157  else      TK_LIBRARY  ?= tk80_wat$(SUFLIB) ;
158  {      TKTABLE_LIB ?= tkTable_wat$(SUFLIB) ;
159      TCL_LIBRARY ?= tcl80$(SUFLIB) ;    }
160      TK_LIBRARY  ?= tk80$(SUFLIB) ;  }
161      TKTABLE_LIB ?= tkTable$(SUFLIB) ;  else if $(OS) = LINUX
162  }  {
163        TCL_LIBRARY ?= libtcl80$(SUFLIB) ;
164  #  The tcl and tk library files      TK_LIBRARY  ?= libtk80$(SUFLIB) ;
165  TK_LIBS =      TKTABLE_LIB ?= libtkTable$(SUFLIB) ;
166    $(TK_LIB_DIR)$(SLASH)$(TK_LIBRARY)  }
167    $(TCL_LIB_DIR)$(SLASH)$(TCL_LIBRARY)  else
168    ;  {
169        TCL_LIBRARY ?= tcl80$(SUFLIB) ;
170  TKTABLE_LIB = $(TKTABLE_LIB_DIR)$(SLASH)$(TKTABLE_LIB) ;      TK_LIBRARY  ?= tk80$(SUFLIB) ;
171        TKTABLE_LIB ?= tkTable$(SUFLIB) ;
172  #  Location of the tcl.h and tk.h header files  }
173  TK_HDRS     = $(TK_DIR)$(SLASH)include ;  
174    #  The tcl and tk library files
175  # Uncomment to copy Tcl/Tk dynamic libraries to install bin directory  TK_LIBS =
176  INSTALL_TCLTK_LIBS = 1 ;    $(TK_LIB_DIR)$(SLASH)$(TK_LIBRARY)
177      $(TCL_LIB_DIR)$(SLASH)$(TCL_LIBRARY)
178  # TclTk dynamic libraries to install to bin directory    ;
179  TCL_LIBS_TO_INSTALL = tcl80 tclpip80 Tcl1680 Cw3215mt ;  
180  TK_LIBS_TO_INSTALL  = tk80 ;  TKTABLE_LIB = $(TKTABLE_LIB_DIR)$(SLASH)$(TKTABLE_LIB) ;
181    
182    #  Location of the tcl.h and tk.h header files
183    TK_HDRS     = $(TK_DIR)$(SLASH)include ;
184    
185    # Uncomment to copy Tcl/Tk dynamic libraries to install bin directory
186    INSTALL_TCLTK_LIBS = 1 ;
187    
188    # TclTk dynamic libraries to install to bin directory
189    TCL_LIBS_TO_INSTALL = tcl80 tclpip80 Tcl1680 Cw3215mt ;
190    TK_LIBS_TO_INSTALL  = tk80 ;
191    

Legend:
Removed from v.59  
changed lines
  Added in v.60

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22