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

Annotation of /trunk/tcltk/jam/Jamrules.in

Parent Directory Parent Directory | Revision Log Revision Log


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

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