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, 2005 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 gcc |
31 |
# (unix, linux, mingw), MSVC, Borland, and Watcom compilers. |
32 |
# |
33 |
# This file is part of the ASCEND jam build system rooted at ../../jam. |
34 |
# See ../../jam/ReadMe.txt for more information. |
35 |
# |
36 |
# This file is customized on autotools-capable systems like |
37 |
# Linux and MinGW/MSYS using configure. |
38 |
# |
39 |
# On other platforms, users should copy/rename this file to |
40 |
# 'Jamrules_tcltk', then modify the settings manually for their |
41 |
# particular system. ASCEND cannot be built by jam unless the |
42 |
# Jamrules_tcltk file is present. |
43 |
# |
44 |
# User-customized Jamrules_tcltk files should not be placed in |
45 |
# version control. Only the Jamrules_tcltk.in template should |
46 |
# be versioned. |
47 |
# |
48 |
#--------------------------------------------------------------------------- |
49 |
|
50 |
JAMRULES_TCLTK_ALREADY_SEEN = TRUE ; |
51 |
|
52 |
# root directory for installation |
53 |
if $(UNIX) || $(OS) = LINUX |
54 |
{ |
55 |
prefix = @prefix@ ; |
56 |
} |
57 |
prefix ?= c:\\dev ; |
58 |
|
59 |
INSTALL_ROOT = $(prefix) ; |
60 |
|
61 |
# name of the builder of the executable (in double quotes) |
62 |
BUILD_CREDIT = "anonymous" ; |
63 |
|
64 |
# name of the executable to create |
65 |
if $(NODEBUG) |
66 |
{ EXE_NAME = ascopt4 ; } |
67 |
else |
68 |
{ EXE_NAME = ascend4 ; } |
69 |
|
70 |
# name of the tcltk library |
71 |
ASC_TCLTK_LIBROOT = libasctcltk ; |
72 |
ASC_TCLTK_LIB = $(ASC_TCLTK_LIBROOT)$(SUFLIB) ; |
73 |
|
74 |
# Install directories - comment to not install that class of file |
75 |
INSTALL_BIN_DIR = $(INSTALL_ROOT)$(SLASH)bin ; |
76 |
INSTALL_DOC_DIR = $(INSTALL_ROOT)$(SLASH)doc ; |
77 |
#INSTALL_MODELS_DIR = $(INSTALL_ROOT)$(SLASH)models ; |
78 |
INSTALL_ASC_TK_DIR = $(INSTALL_ROOT)$(SLASH)TK ; |
79 |
INSTALL_USER_DIR = $(INSTALL_ROOT)$(SLASH)user_models ; |
80 |
INSTALL_TCL_DIR = $(INSTALL_ROOT)$(SLASH)Tcl ; |
81 |
|
82 |
# Locations of pre-built install files |
83 |
ASC_DOC_DIR = ; |
84 |
ASC_MODELS_DIR = $(TOP)(SLASH)models ; |
85 |
ASC_TK_DIR = $(TOP)$(SLASH)tcltk$(SLASH)TK ; |
86 |
|
87 |
# Paths to base libraries |
88 |
#ASC_BASE_LIBS_QUAL = |
89 |
# $(JAM_GENERAL_DIR)$(SLASH)$(ASC_BASE_LIBS_RELPATH)$(ASC_BASE_LIBS) ; |
90 |
|
91 |
# Paths to FORTRAN libraries |
92 |
#FOR_LIBS = |
93 |
# $(JAM_GENERAL_DIR)$(SLASH)$(LSODLIB_RELPATH)$(SLASH)$(LSODLIB) |
94 |
# $(JAM_GENERAL_DIR)$(SLASH)$(MINOSLIB_RELPATH)$(SLASH)$(MINOSLIB) |
95 |
# $(JAM_GENERAL_DIR)$(SLASH)$(CONOPTLIB_RELPATH)$(SLASH)$(CONOPTLIB) |
96 |
# $(JAM_GENERAL_DIR)$(SLASH)$(LPAKLIB_RELPATH)$(SLASH)$(LPAKLIB) |
97 |
# $(JAM_GENERAL_DIR)$(SLASH)$(BLASLIB_RELPATH)$(SLASH)$(BLASLIB) |
98 |
# $(F77_LIBS) |
99 |
# ; |
100 |
|
101 |
#====================================================================== |
102 |
# TCL / TK |
103 |
# |
104 |
# Set the location of the Tcl/Tk import libraries and include files. |
105 |
# The order should be -ltk -ltcl |
106 |
# |
107 |
# We also need the TkTable widget which does not come as a |
108 |
# standard part of the Tcl/Tk distribution. This library can |
109 |
# either be loaded statically or dynamically. |
110 |
# |
111 |
# If TK_LIBS and TK_HDRS are not properly set, ASCEND cannot build. |
112 |
#====================================================================== |
113 |
|
114 |
if $(UNIX) || $(OS) = LINUX || $(OSTYPE) = msys { |
115 |
|
116 |
# Here's the unix/Linux version |
117 |
# This should also be run under msys, since it will work with |
118 |
# autoconf, eventually... |
119 |
|
120 |
TCL_LIBRARY = @TCL_LIB@ ; |
121 |
TK_LIBRARY = @TK_LIB@ ; |
122 |
TK_LIBS = $(TK_LIBRARY) $(TCL_LIBRARY) $(DL_LIBS) ; |
123 |
|
124 |
# The location of the tcl.h and tk.h header files |
125 |
TK_INCS = @TCL_HDR@ @TK_HDR@ ; |
126 |
|
127 |
# We also need the TkTable widget which does not come as a |
128 |
# standard part of the Tcl/Tk distribution. This library can |
129 |
# either be loaded statically or dynamically. If the configure |
130 |
# script found libTktable.a, use static loading; otherwise, use |
131 |
# dynamic loading. |
132 |
# |
133 |
HAVE_TKTABLE = @HAVE_TKTABLE@ ; |
134 |
TKTABLE_LIB = @TKTABLE_LIB@ ; |
135 |
|
136 |
# INSTALL_TCLTK_LIBS = 1 ; |
137 |
|
138 |
} else if $(NT) { |
139 |
|
140 |
# And here's the Windows version |
141 |
|
142 |
# The top-level Tcl/Tk directories: |
143 |
TCL_DIR = C:\\dev\\Tcl ; |
144 |
TK_DIR = $(TCL_DIR) ; |
145 |
|
146 |
# Location of the tcl.h and tk.h header files |
147 |
TK_HDRS = $(TK_DIR)$(SLASH)include ; |
148 |
if $(TCL_DIR) != $(TK_DIR) |
149 |
{ |
150 |
TK_HDRS += $(TCL_DIR)$(SLASH)include ; |
151 |
} |
152 |
|
153 |
# the locations of the tcl, tk, and tktable libraries |
154 |
TCL_LIB_DIR = $(TCL_DIR)$(SLASH)lib ; |
155 |
TK_LIB_DIR = $(TK_DIR)$(SLASH)lib ; |
156 |
TKTABLE_LIB_DIR = $(TCL_DIR)$(SLASH)lib ; |
157 |
|
158 |
# Set the Tcl/Tk/tkTable import library names here to override the |
159 |
# default, compiler-specific names below. Comment out to use defaults. |
160 |
# TCL_LIBRARY = libtcl8.0$(SUFLIB) ; |
161 |
# TK_LIBRARY = libtk8.0$(SUFLIB) ; |
162 |
# TKTABLE_LIB = libTktable2.8$(SUFLIB) ; |
163 |
|
164 |
if $(BCCROOT) || ( $(TOOLSET) = BORLANDC ) |
165 |
{ |
166 |
TCL_LIBRARY ?= tcl80_bc$(SUFLIB) ; |
167 |
TK_LIBRARY ?= tk80_bc$(SUFLIB) ; |
168 |
TKTABLE_LIB ?= tkTable_bc$(SUFLIB) ; |
169 |
} |
170 |
else if $(MSVCNT) || ( $(TOOLSET) = VISUALC ) |
171 |
{ |
172 |
TCL_LIBRARY ?= tcl80$(SUFLIB) ; |
173 |
TK_LIBRARY ?= tk80$(SUFLIB) ; |
174 |
TKTABLE_LIB ?= tkTable$(SUFLIB) ; |
175 |
} |
176 |
else if $(MINGW) || ( $(TOOLSET) = MINGW ) |
177 |
{ |
178 |
TCL_LIBRARY ?= libtcl80$(SUFLIB) ; |
179 |
TK_LIBRARY ?= libtk80$(SUFLIB) ; |
180 |
TKTABLE_LIB ?= libtkTable$(SUFLIB) ; |
181 |
} |
182 |
else if $(WATCOM) || ( $(TOOLSET) = WATCOM ) |
183 |
{ |
184 |
TCL_LIBRARY ?= tcl80_wat$(SUFLIB) ; |
185 |
TK_LIBRARY ?= tk80_wat$(SUFLIB) ; |
186 |
TKTABLE_LIB ?= tkTable_wat$(SUFLIB) ; |
187 |
} |
188 |
|
189 |
# The tcl and tk library files (derived from variable set above) |
190 |
TK_LIBS = |
191 |
$(TK_LIB_DIR)$(SLASH)$(TK_LIBRARY) |
192 |
$(TCL_LIB_DIR)$(SLASH)$(TCL_LIBRARY) |
193 |
; |
194 |
|
195 |
# The tktable library file (derived from variable set above) |
196 |
TKTABLE_LIB = $(TKTABLE_LIB_DIR)$(SLASH)$(TKTABLE_LIB) ; |
197 |
|
198 |
# Uncomment to copy Tcl/Tk dynamic libraries to install bin directory |
199 |
INSTALL_TCLTK_LIBS = 1 ; |
200 |
} |
201 |
|
202 |
# TclTk dynamic libraries to install to bin directory |
203 |
TCL_LIBS_TO_INSTALL = tcl80 tclpip80 Tcl1680 Cw3215mt ; |
204 |
TK_LIBS_TO_INSTALL = tk80 ; |