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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 60 - (show annotations) (download)
Mon Oct 31 03:39:15 2005 UTC (14 years, 5 months ago) by jds
File size: 6296 byte(s)
- jam build up and limping on Linux (finally).
- fixes to CUnit test suite to compile on Linux (still not operable, though).
1 #
2 # Jamrules support file for building Ascend4
3 # (see http://www.freetype.org/jam/index.html)
4 #
5 # This file is part of the Ascend Build System.
6 #
7 # Copyright (C) 2004 Jerry D. St.Clair
8 #
9 # The Ascend Build System is free software; you can redistribute
10 # it and/or modify it under the terms of the GNU General Public
11 # License as published by the Free Software Foundation; either
12 # 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,
15 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 # GNU General Public License for more details.
18 #
19 # You should have received a copy of the GNU General Public License
20 # along with the program; if not, write to the Free Software
21 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139 USA.
22 # Check the file named COPYING.
23 #---------------------------------------------------------------------------
24 #
25 # UNDER CONSTRUCTION
26 #
27 # This is a template Jamrules file which supports building the
28 # Tcl/Tk version of the Ascend modeling system, as well as a static
29 # library of Tcl/Tk interface functionality. The Ascend jam build
30 # system currently supports building the libraries using the MSVC,
31 # Borland, MinGW, and Watcom compilers.
32 #
33 # INSTALLATION IS NOT WORKING IN THE CURRENT VERSION.
34 #
35 # It is not currently customized by the Ascend configure mechanism,
36 # although this may be implemented in the future.
37 #
38 # Users should copy/rename this file to 'Jamrules', then modify
39 # the settings manually for their particular system. Ascend
40 # cannot be built by jam unless the Jambase file is present.
41 #
42 # User-customized Jamrules files should not be placed in version
43 # control. Only the Jamrules.in template should be versioned.
44 #
45 #---------------------------------------------------------------------------
46
47 # root directory for installation
48 prefix = c:\\dev ;
49 INSTALL_ROOT = $(prefix)$(SLASH)Ascend4-0.9.5 ;
50
51 # name of the builder of the executable (in double quotes)
52 BUILD_CREDIT = "anonymous" ;
53
54 # Path to general jam info
55 JAM_GENERAL_DIR = ..$(SLASH)..$(SLASH)jam ;
56
57 # TODO: Deprecated - remove?
58 # Root dir of Ascend base library sources.
59 #ASC_BASE_ROOT = ..$(SLASH)..$(SLASH)base$(SLASH)generic ;
60
61 # TODO: Deprecated - remove?
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_TCLTK98_LIBROOT = libasc_tcltk98 ;
89 ASC_TCLTK98_LIB = $(ASC_TCLTK98_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) ;
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 $(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 ;

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