/[ascend]/trunk/tcltk98/jam/Jamfile
ViewVC logotype

Contents of /trunk/tcltk98/jam/Jamfile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 50 - (show annotations) (download)
Tue Apr 19 07:55:06 2005 UTC (19 years, 6 months ago) by jds
File size: 11139 byte(s)
Minor updates:

jam/Jambase
Fixed msvc include path to include Platform SDK headers

tcltk98/jam/Jamfile
Fixed MinGW executable build so console window not created

tcltk98/generic/interface/AscPrintTcl.c
Removed redundant return in Asc_PrintInit_TclVtable() from previous edit
1 #
2 # Jamfile to build Ascend Tcl/Tk98 interface
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 # The jam build depends on specialized Jamrules and Jambase files.
28 # A central version of these files is currently maintained in
29 # ../../jam. This may change as work proceeds to decouple the
30 # Ascend base from the original Tcl/Tk interface.
31 #
32 #---------------------------------------------------------------------------
33 #
34 # To compile & install the executable:
35 #
36 # Modify the parameters below and in Jamrules for your system, then:
37 #
38 # jam -f ../../jam/Jambase ascend
39 #
40 #---------------------------------------------------------------------------
41
42 # TODO: remove if end up using SubDir rules
43 JAM_GENERAL_DIR = ..$(SLASH)..$(SLASH)jam ;
44 include $(JAM_GENERAL_DIR)$(SLASH)Jamrules_general ;
45 include .$(SLASH)Jamrules ;
46
47 srcdir = ..$(SLASH)generic ;
48
49 ASC_INTERFACE_DIR = $(srcdir)$(SLASH)interface ;
50
51 HDRS += $(srcdir) ;
52
53 # symbolic targets to build Ascend executable
54 DEPENDS all : ascend ;
55 NOTFILE ascend ;
56
57 #=========================================================================
58 # Tcl/Tk Interface
59 #=========================================================================
60
61 ASC_TCLTK98_SOURCES =
62 AscBitmaps.c
63 AscPrintTcl.c
64 BrowLogRel_io.c
65 BrowWhen_io.c
66 BrowserMethod.c
67 BrowserProc.c
68 BrowserQuery.c
69 BrowserRel_io.c
70 Commands.c
71 DebugProc.c
72 DisplayProc.c
73 EnvVarProc.c
74 HelpProc.c
75 Integrators.c
76 LibraryProc.c
77 Lsode.c
78 MtxProc.c
79 ProbeProc.c
80 Qlfdid.c
81 ScriptProc.c
82 Sensitivity.c
83 SimsProc.c
84 SlvProc.c
85 SolverProc.c
86 UnitsProc.c
87 UserData.c
88 plot.c
89 tkConsole.c
90 typelex.c
91 old_utils.c
92 ;
93
94 # set temporary file location
95 LOCATE_TARGET = $(BUILD_DIR)$(SLASH)interface ;
96 SEARCH_SOURCE = $(ASC_INTERFACE_DIR) ;
97
98 # Build the static libary of interface functions
99 Library $(ASC_TCLTK98_LIBNAME) : $(ASC_TCLTK98_SOURCES) ;
100 MakeLocate $(ASC_TCLTK98_LIB) : $(BUILD_DIR) ;
101
102 # Build the Ascend executable
103 Main $(EXE_NAME) : Driver.c ;
104
105 ObjectCcFlags $(ASC_TCLTK98_SOURCES) Driver.c : $(SOLVER_DEFS) -DTIMESTAMP="\"\\\"by $(BUILD_CREDIT)\\\"\"" ;
106 ObjectHdrs $(ASC_TCLTK98_SOURCES) Driver.c : $(ASC_BASE_ROOT) $(TK_HDRS) ;
107
108 LinkLibraries $(EXE_NAME) : $(ASC_TCLTK98_LIB) $(ASC_BASE_LIBS) $(PACKAGE_LIBS) ;
109 NEEDLIBS on $(EXE_NAME)$(SUFEXE) +=
110 $(FOR_LIBS)
111 $(TK_LIBS)
112 $(TKTABLE_LIB)
113 $(X11_LIBS)
114 $(PC_LIBS)
115 $(MATH_LIBS)
116 $(DEBUG_LIBS)
117 ;
118
119 DEPENDS ascend : $(EXE_NAME)$(SUFEXE) ;
120
121 #Depends $(EXE_NAME)$(SUFEXE) :
122 # $(FOR_LIBS)
123 # $(TK_LIBS)
124 # $(TKTABLE_LIB)
125 # $(X11_LIBS)
126 # $(PC_LIBS)
127 # $(MATH_LIBS)
128 # $(DEBUG_LIBS) ;
129
130 # set executable build location
131 MakeLocate $(EXE_NAME)$(SUFEXE) : $(BUILD_DIR) ;
132
133 if $(NT)
134 {
135 if ($(BCCROOT) || ($(TOOLSET) = BORLANDC))
136 {
137 # need to fix Borland to include standard libraries location
138 LINKFLAGS on $(EXE_NAME)$(SUFEXE) +=
139 -L$(STDLIBPATH) -tW
140 -L$(TCL_LIB_DIR)
141 -L$(TK_LIB_DIR)
142 -L$(TKTABLE_LIB_DIR)
143 ;
144 if ! $(NODEBUG)
145 { LINKFLAGS on $(EXE_NAME)$(SUFEXE) += -v ; }
146 }
147 else if $(MSVCNT) || $(TOOLSET) = VISUALC)
148 {
149 LINKFLAGS on $(EXE_NAME)$(SUFEXE) +=
150 /L$(TCL_LIB_DIR)
151 /L$(TK_LIB_DIR)
152 /L$(TKTABLE_LIB_DIR)
153 ;
154 }
155 else if $(MINGW) || $(TOOLSET) = MINGW)
156 {
157 LINKFLAGS on $(EXE_NAME)$(SUFEXE) +=
158 -L$(TCL_LIB_DIR)
159 -L$(TK_LIB_DIR)
160 -L$(TKTABLE_LIB_DIR)
161 -mwindows
162 ;
163 }
164 else if $(WATCOM) || $(TOOLSET) = WATCOM)
165 {
166 LINKFLAGS on $(EXE_NAME)$(SUFEXE) +=
167 -\"LIBPATH $(TCL_LIB_DIR)\"
168 -\"LIBPATH $(TK_LIB_DIR)\"
169 -\"LIBPATH $(TKTABLE_LIB_DIR)\"
170 ;
171 }
172 }
173 else if $(UNIX)
174 {
175 LINKFLAGS on $(EXE_NAME)$(SUFEXE) +=
176 -L$(TCL_LIB_DIR)
177 -L$(TK_LIB_DIR)
178 -L$(TKTABLE_LIB_DIR)
179 ;
180 }
181
182 #======================================================================
183 # Directory-specific Build Instructions
184 #======================================================================
185
186 #----------------------------------------------------------------------
187 # typelex.c
188 #
189 # typelex.c implements the Ascend lexical typer. It is
190 # generated by lex/flex if available in the build environment
191 # (i.e. $(LEX) is non-null in jam). If lex/flex is not available,
192 # a copy of a pre-generated file is used instead.
193 #----------------------------------------------------------------------
194
195 # typelex.c needs a special define (Watcom requires the '=""'. )
196 ObjectCcFlags typelex.c : -DYY_USE_CONST="" ;
197
198 typelex_c = [ FGristSourceFiles typelex.c ] ;
199 typelex_h = typelex.h ;
200 typelex_l = typelex.l ;
201 LEXOPTS on $(typelex_c) = -Ptyp_ ;
202
203 LOCATE on $(typelex_c) = $(SEARCH_SOURCE) ;
204 LOCATE on $(typelex_h) = $(SEARCH_SOURCE) ;
205 LOCATE on $(typelex_l) = $(SEARCH_SOURCE) ;
206
207 LEX_or_copy $(typelex_c) : $(typelex_l) : typelex_c_no_flex : $(typelex_h) ;
208
209 #======================================================================
210 # Install directives
211 #======================================================================
212 if $(INSTALL_BIN_DIR)
213 {
214 InstallBin $(INSTALL_BIN_DIR) : $(EXE_NAME)$(SUFEXE) ;
215
216 if $(INSTALL_TCLTK_LIBS)
217 {
218 if $(NT)
219 {
220 SUFDLIB = .dll ;
221 }
222 else
223 {
224 SUFDLIB = .a ;
225 }
226 LOCATE on $(TCL_LIBS_TO_INSTALL)$(SUFDLIB) = $(TCL_DIR)$(SLASH)bin ;
227 LOCATE on $(TK_LIBS_TO_INSTALL)$(SUFDLIB) = $(TK_DIR)$(SLASH)bin ;
228
229 InstallFile $(INSTALL_BIN_DIR) : $(TCL_LIBS_TO_INSTALL)$(SUFDLIB) ;
230 InstallFile $(INSTALL_BIN_DIR) : $(TK_LIBS_TO_INSTALL)$(SUFDLIB) ;
231 }
232 }
233
234 if $(INSTALL_MODELS_DIR)
235 {
236 INSTALL_MODELS_FILES =
237 Guthrie_costs.a4l
238 KenPendings.a4l
239 README
240 README.html
241 README.txt
242 abc_flowsheet.a4l
243 atoms.a4l
244 basemodel.a4l
245 bvp.a4l
246 casestudy.a4s
247 collocation.a4l
248 collocation.a4s
249 collocation_tests.a4s
250 column.a4l
251 components.a4l
252 cost_column.a4l
253 distance_calc.a4c
254 dyn_column.a4l
255 dyn_flash.a4l
256 dyn_separation_demos.a4s
257 dyn_tank.a4c
258 dyn_tank.a4s
259 flash.a4l
260 force1d.a4c
261 force1d.a4s
262 heatex.a4c
263 heatex.a4s
264 ivpsystem.a4l
265 kinetics.a4l
266 kinetics.a4s
267 linear_balance.a4c
268 linear_balance.a4s
269 measures.a4l
270 mix.a4l
271 mix.a4s
272 old_separation_demos.a4s
273 phaseq.a4c
274 phaseq.a4s
275 phaseq_comp.a4c
276 phaseq_comp.a4s
277 phases.a4l
278 pipeline.a4c
279 pipeline.a4s
280 plot.a4l
281 plotbvp.a4c
282 plotbvp.a4s
283 plotcol.a4c
284 rachford.a4c
285 rachford.a4s
286 ratelaws.a4c
287 reactor.a4l
288 reactor.a4s
289 roots_of_poly.a4c
290 separation_demos.a4s
291 set_intervals.tcl
292 simple_fs.a4c
293 simple_fs.a4s
294 simple_fs_cost.a4c
295 simple_fs_cost.a4s
296 simple_fs_ext.a4c
297 sonic.a4c
298 sonic.a4s
299 splitter.a4l
300 splitter.a4s
301 stream_holdup.a4l
302 system.a4l
303 ternary_plot.a4l
304 thermodynamics.a4l
305 vessel.a4c
306 vessel.a4s
307 vesselMethods.a4c
308 vesselNotes.a4c
309 vesselParams.a4c
310 vesselPlain.a4c
311 vesselPlot.a4c
312 vesselPlot.a4s
313 vesselStudy.a4s
314 vesselTabulated.a4c
315 vesselTabulated.a4s
316 when_demo.a4c
317 when_demo.a4s
318 z-addmethod.a4c
319 z-align.a4c
320 z-alike.a4c
321 z-anontype.a4c
322 z-arsubs.a4c
323 z-context.a4c
324 z-emptyarg.a4c
325 z-emptyfor.a4c
326 z-iflogic.a4c
327 z-indirect.a4c
328 z-isawhere.a4c
329 z-relname.a4c
330 z-suite.a4s
331 ;
332
333 INSTALL_MODELS_BEN_FILES =
334 benHGthermo.a4l
335 bencolumn.a4l
336 bencomponents.a4l
337 benflash.a4l
338 benplot.a4l
339 benplotcol.a4c
340 benpropertyoptions.a4l
341 benstream.a4l
342 test_components.a4s
343 ;
344
345 LOCATE on $(INSTALL_MODELS_FILES) = $(ASC_MODELS_DIR) ;
346 InstallFile $(INSTALL_MODELS_DIR) : $(INSTALL_MODELS_FILES) ;
347
348 LOCATE on $(INSTALL_MODELS_BEN_FILES) = $(ASC_MODELS_DIR)$(SLASH)ben ;
349 InstallFile $(INSTALL_MODELS_DIR)$(SLASH)ben : $(INSTALL_MODELS_BEN_FILES) ;
350 }
351
352 if $(INSTALL_ASC_TK_DIR)
353 {
354 INSTALL_TK_FILES =
355 AscendRC
356 BrowserProc.tcl
357 CallbackProc.tcl
358 DebugProc.tcl
359 DisplayProc.tcl
360 GlobalProc.tcl
361 HubProc.tcl
362 LibraryProc.tcl
363 License-Warranty.tcl
364 MtxProc.tcl
365 NoteboxProc.tcl
366 ProbeProc.tcl
367 ScriptProc.tcl
368 SolverProc.tcl
369 ToolboxProc.tcl
370 TypetreeProc.tcl
371 UnitsProc.tcl
372 UtilProc.tcl
373 View.tcl
374 WWWHelpProc.tcl
375 WhoDunnit.tcl
376 ascStudy.tcl
377 ascend.ad
378 ascend.tcl
379 ascplot.tcl
380 ascplotproc.tcl
381 baatest.tcl
382 browser.tcl
383 callback.tcl
384 debug.tcl
385 display.tcl
386 generalk.tcl
387 library.tcl
388 main.tcl
389 mergedat.tcl
390 methods.tcl
391 mps.tcl
392 mtx.tcl
393 notebox.tcl
394 pane.tcl
395 probe.tcl
396 script.tcl
397 solver.tcl
398 tclIndex
399 toolbox.tcl
400 typetree.tcl
401 units.tcl
402 util.tcl
403 ;
404
405 INSTALL_TK_BITMAPS_FILES =
406 a4c.xbm
407 a4l.xbm
408 a4s.xbm
409 c.xbm
410 cpp.xbm
411 crash.xbm
412 cut.xf.xbm
413 delete.xf.xbm
414 emacs.xbm
415 error
416 feet.xbm
417 folder
418 global.xf.xbm
419 gnu-ascend.xbm
420 gnu.xbm
421 grablock.xbm
422 gray25
423 gray33
424 gray50
425 graybar
426 grill
427 h.xbm
428 hourglass
429 info
430 opt.xbm
431 place.xf.xbm
432 questhead
433 question
434 stop.xbm
435 text
436 time.xbm
437 toolAttributes.xbm
438 tree.xf.xbm
439 warning.xf.xbm
440 wfeet.xbm
441 ;
442
443 INSTALL_TK_TEMPLATES_FILES =
444 AscConfirm.t
445 AscMonoEntry1.t
446 AscMonoEntry2.t
447 AscMonoEntry4.t
448 amlscroll.tcl
449 ascKeepOnTop.tcl
450 ascListSelect.tcl
451 ascListSelectB1.tcl
452 ascMsgBox.tcl
453 ascdialog.tcl
454 ascfontsel.tcl
455 ascparm.tcl
456 balloon.tcl
457 asctkfbox.tcl
458 ;
459
460 LOCATE on $(INSTALL_TK_FILES) = $(ASC_TK_DIR) ;
461 InstallFile $(INSTALL_ASC_TK_DIR) : $(INSTALL_TK_FILES) ;
462
463 LOCATE on $(INSTALL_TK_BITMAPS_FILES) = $(ASC_TK_DIR)$(SLASH)bitmaps ;
464 InstallFile $(INSTALL_ASC_TK_DIR)$(SLASH)bitmaps : $(INSTALL_TK_BITMAPS_FILES) ;
465
466 LOCATE on $(INSTALL_TK_TEMPLATES_FILES) = $(ASC_TK_DIR)$(SLASH)templates ;
467 InstallFile $(INSTALL_ASC_TK_DIR)$(SLASH)templates : $(INSTALL_TK_TEMPLATES_FILES) ;
468 }

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