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

Contents of /trunk/tcltk98/jam/Jamfile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 57 - (show annotations) (download)
Sat Oct 1 01:38:26 2005 UTC (17 years ago) by jds
File size: 11245 byte(s)
Minor jam updates.
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_LIBROOT) : $(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
107 ObjectHdrs $(ASC_TCLTK98_SOURCES) Driver.c :
108 $(JAM_GENERAL_DIR)$(SLASH)$(ASC_BASE_SOURCE_RELPATH)
109 $(TK_HDRS)
110 ;
111
112 LinkLibraries $(EXE_NAME) : $(ASC_TCLTK98_LIB) $(ASC_BASE_LIBS_QUAL) $(PACKAGE_LIBS) ;
113 LINKLIBS on $(EXE_NAME)$(SUFEXE) +=
114 $(FOR_LIBS)
115 $(TK_LIBS)
116 $(TKTABLE_LIB)
117 $(X11_LIBS)
118 $(PC_LIBS)
119 $(MATH_LIBS)
120 $(DEBUG_LIBS)
121 ;
122
123 DEPENDS ascend : $(EXE_NAME)$(SUFEXE) ;
124
125 #Depends $(EXE_NAME)$(SUFEXE) :
126 # $(FOR_LIBS)
127 # $(TK_LIBS)
128 # $(TKTABLE_LIB)
129 # $(X11_LIBS)
130 # $(PC_LIBS)
131 # $(MATH_LIBS)
132 # $(DEBUG_LIBS) ;
133
134 # set executable build location
135 MakeLocate $(EXE_NAME)$(SUFEXE) : $(BUILD_DIR) ;
136
137 if $(NT)
138 {
139 if ($(BCCROOT) || ($(TOOLSET) = BORLANDC))
140 {
141 # need to fix Borland to include standard libraries location
142 LINKFLAGS on $(EXE_NAME)$(SUFEXE) +=
143 -L$(STDLIBPATH) -tW
144 -L$(TCL_LIB_DIR)
145 -L$(TK_LIB_DIR)
146 -L$(TKTABLE_LIB_DIR)
147 ;
148 if ! $(NODEBUG)
149 { LINKFLAGS on $(EXE_NAME)$(SUFEXE) += -v ; }
150 }
151 else if $(MSVCNT) || $(TOOLSET) = VISUALC)
152 {
153 LINKFLAGS on $(EXE_NAME)$(SUFEXE) +=
154 /L$(TCL_LIB_DIR)
155 /L$(TK_LIB_DIR)
156 /L$(TKTABLE_LIB_DIR)
157 ;
158 }
159 else if $(MINGW) || $(TOOLSET) = MINGW)
160 {
161 LINKFLAGS on $(EXE_NAME)$(SUFEXE) +=
162 -L$(TCL_LIB_DIR)
163 -L$(TK_LIB_DIR)
164 -L$(TKTABLE_LIB_DIR)
165 -mwindows
166 ;
167 }
168 else if $(WATCOM) || $(TOOLSET) = WATCOM)
169 {
170 LINKFLAGS on $(EXE_NAME)$(SUFEXE) +=
171 -\"LIBPATH $(TCL_LIB_DIR)\"
172 -\"LIBPATH $(TK_LIB_DIR)\"
173 -\"LIBPATH $(TKTABLE_LIB_DIR)\"
174 ;
175 }
176 }
177 else if $(UNIX) || $(OS) = LINUX
178 {
179 LINKFLAGS on $(EXE_NAME)$(SUFEXE) +=
180 -L$(TCL_LIB_DIR)
181 -L$(TK_LIB_DIR)
182 -L$(TKTABLE_LIB_DIR)
183 ;
184 }
185
186 #======================================================================
187 # Directory-specific Build Instructions
188 #======================================================================
189
190 #----------------------------------------------------------------------
191 # typelex.c
192 #
193 # typelex.c implements the Ascend lexical typer. It is
194 # generated by lex/flex if available in the build environment
195 # (i.e. $(LEX) is non-null in jam). If lex/flex is not available,
196 # a copy of a pre-generated file is used instead.
197 #----------------------------------------------------------------------
198
199 # typelex.c needs a special define (Watcom requires the '=""'. )
200 ObjectCcFlags typelex.c : -DYY_USE_CONST="" ;
201
202 typelex_c = [ FGristSourceFiles typelex.c ] ;
203 typelex_h = typelex.h ;
204 typelex_l = typelex.l ;
205 LEXOPTS on $(typelex_c) = -Ptyp_ ;
206
207 LOCATE on $(typelex_c) = $(SEARCH_SOURCE) ;
208 LOCATE on $(typelex_h) = $(SEARCH_SOURCE) ;
209 LOCATE on $(typelex_l) = $(SEARCH_SOURCE) ;
210
211 LEX_or_copy $(typelex_c) : $(typelex_l) : typelex_c_no_flex : $(typelex_h) ;
212
213 #======================================================================
214 # Install directives
215 #======================================================================
216 if $(INSTALL_BIN_DIR)
217 {
218 InstallBin $(INSTALL_BIN_DIR) : $(EXE_NAME)$(SUFEXE) ;
219
220 if $(INSTALL_TCLTK_LIBS)
221 {
222 if $(NT)
223 {
224 SUFDLIB = .dll ;
225 }
226 else
227 {
228 SUFDLIB = .a ;
229 }
230 LOCATE on $(TCL_LIBS_TO_INSTALL)$(SUFDLIB) = $(TCL_DIR)$(SLASH)bin ;
231 LOCATE on $(TK_LIBS_TO_INSTALL)$(SUFDLIB) = $(TK_DIR)$(SLASH)bin ;
232
233 InstallFile $(INSTALL_BIN_DIR) : $(TCL_LIBS_TO_INSTALL)$(SUFDLIB) ;
234 InstallFile $(INSTALL_BIN_DIR) : $(TK_LIBS_TO_INSTALL)$(SUFDLIB) ;
235 }
236 }
237
238 if $(INSTALL_MODELS_DIR)
239 {
240 INSTALL_MODELS_FILES =
241 Guthrie_costs.a4l
242 KenPendings.a4l
243 README
244 README.html
245 README.txt
246 abc_flowsheet.a4l
247 atoms.a4l
248 basemodel.a4l
249 bvp.a4l
250 casestudy.a4s
251 collocation.a4l
252 collocation.a4s
253 collocation_tests.a4s
254 column.a4l
255 components.a4l
256 cost_column.a4l
257 distance_calc.a4c
258 dyn_column.a4l
259 dyn_flash.a4l
260 dyn_separation_demos.a4s
261 dyn_tank.a4c
262 dyn_tank.a4s
263 flash.a4l
264 force1d.a4c
265 force1d.a4s
266 heatex.a4c
267 heatex.a4s
268 ivpsystem.a4l
269 kinetics.a4l
270 kinetics.a4s
271 linear_balance.a4c
272 linear_balance.a4s
273 measures.a4l
274 mix.a4l
275 mix.a4s
276 old_separation_demos.a4s
277 phaseq.a4c
278 phaseq.a4s
279 phaseq_comp.a4c
280 phaseq_comp.a4s
281 phases.a4l
282 pipeline.a4c
283 pipeline.a4s
284 plot.a4l
285 plotbvp.a4c
286 plotbvp.a4s
287 plotcol.a4c
288 rachford.a4c
289 rachford.a4s
290 ratelaws.a4c
291 reactor.a4l
292 reactor.a4s
293 roots_of_poly.a4c
294 separation_demos.a4s
295 set_intervals.tcl
296 simple_fs.a4c
297 simple_fs.a4s
298 simple_fs_cost.a4c
299 simple_fs_cost.a4s
300 simple_fs_ext.a4c
301 sonic.a4c
302 sonic.a4s
303 splitter.a4l
304 splitter.a4s
305 stream_holdup.a4l
306 system.a4l
307 ternary_plot.a4l
308 thermodynamics.a4l
309 vessel.a4c
310 vessel.a4s
311 vesselMethods.a4c
312 vesselNotes.a4c
313 vesselParams.a4c
314 vesselPlain.a4c
315 vesselPlot.a4c
316 vesselPlot.a4s
317 vesselStudy.a4s
318 vesselTabulated.a4c
319 vesselTabulated.a4s
320 when_demo.a4c
321 when_demo.a4s
322 z-addmethod.a4c
323 z-align.a4c
324 z-alike.a4c
325 z-anontype.a4c
326 z-arsubs.a4c
327 z-context.a4c
328 z-emptyarg.a4c
329 z-emptyfor.a4c
330 z-iflogic.a4c
331 z-indirect.a4c
332 z-isawhere.a4c
333 z-relname.a4c
334 z-suite.a4s
335 ;
336
337 INSTALL_MODELS_BEN_FILES =
338 benHGthermo.a4l
339 bencolumn.a4l
340 bencomponents.a4l
341 benflash.a4l
342 benplot.a4l
343 benplotcol.a4c
344 benpropertyoptions.a4l
345 benstream.a4l
346 test_components.a4s
347 ;
348
349 LOCATE on $(INSTALL_MODELS_FILES) = $(ASC_MODELS_DIR) ;
350 InstallFile $(INSTALL_MODELS_DIR) : $(INSTALL_MODELS_FILES) ;
351
352 LOCATE on $(INSTALL_MODELS_BEN_FILES) = $(ASC_MODELS_DIR)$(SLASH)ben ;
353 InstallFile $(INSTALL_MODELS_DIR)$(SLASH)ben : $(INSTALL_MODELS_BEN_FILES) ;
354 }
355
356 if $(INSTALL_ASC_TK_DIR)
357 {
358 INSTALL_TK_FILES =
359 AscendRC
360 BrowserProc.tcl
361 CallbackProc.tcl
362 DebugProc.tcl
363 DisplayProc.tcl
364 GlobalProc.tcl
365 HubProc.tcl
366 LibraryProc.tcl
367 License-Warranty.tcl
368 MtxProc.tcl
369 NoteboxProc.tcl
370 ProbeProc.tcl
371 ScriptProc.tcl
372 SolverProc.tcl
373 ToolboxProc.tcl
374 TypetreeProc.tcl
375 UnitsProc.tcl
376 UtilProc.tcl
377 View.tcl
378 WWWHelpProc.tcl
379 WhoDunnit.tcl
380 ascStudy.tcl
381 ascend.ad
382 ascend.tcl
383 ascplot.tcl
384 ascplotproc.tcl
385 baatest.tcl
386 browser.tcl
387 callback.tcl
388 debug.tcl
389 display.tcl
390 generalk.tcl
391 library.tcl
392 main.tcl
393 mergedat.tcl
394 methods.tcl
395 mps.tcl
396 mtx.tcl
397 notebox.tcl
398 pane.tcl
399 probe.tcl
400 script.tcl
401 solver.tcl
402 tclIndex
403 toolbox.tcl
404 typetree.tcl
405 units.tcl
406 util.tcl
407 ;
408
409 INSTALL_TK_BITMAPS_FILES =
410 a4c.xbm
411 a4l.xbm
412 a4s.xbm
413 c.xbm
414 cpp.xbm
415 crash.xbm
416 cut.xf.xbm
417 delete.xf.xbm
418 emacs.xbm
419 error
420 feet.xbm
421 folder
422 global.xf.xbm
423 gnu-ascend.xbm
424 gnu.xbm
425 grablock.xbm
426 gray25
427 gray33
428 gray50
429 graybar
430 grill
431 h.xbm
432 hourglass
433 info
434 opt.xbm
435 place.xf.xbm
436 questhead
437 question
438 stop.xbm
439 text
440 time.xbm
441 toolAttributes.xbm
442 tree.xf.xbm
443 warning.xf.xbm
444 wfeet.xbm
445 ;
446
447 INSTALL_TK_TEMPLATES_FILES =
448 AscConfirm.t
449 AscMonoEntry1.t
450 AscMonoEntry2.t
451 AscMonoEntry4.t
452 amlscroll.tcl
453 ascKeepOnTop.tcl
454 ascListSelect.tcl
455 ascListSelectB1.tcl
456 ascMsgBox.tcl
457 ascdialog.tcl
458 ascfontsel.tcl
459 ascparm.tcl
460 balloon.tcl
461 asctkfbox.tcl
462 ;
463
464 LOCATE on $(INSTALL_TK_FILES) = $(ASC_TK_DIR) ;
465 InstallFile $(INSTALL_ASC_TK_DIR) : $(INSTALL_TK_FILES) ;
466
467 LOCATE on $(INSTALL_TK_BITMAPS_FILES) = $(ASC_TK_DIR)$(SLASH)bitmaps ;
468 InstallFile $(INSTALL_ASC_TK_DIR)$(SLASH)bitmaps : $(INSTALL_TK_BITMAPS_FILES) ;
469
470 LOCATE on $(INSTALL_TK_TEMPLATES_FILES) = $(ASC_TK_DIR)$(SLASH)templates ;
471 InstallFile $(INSTALL_ASC_TK_DIR)$(SLASH)templates : $(INSTALL_TK_TEMPLATES_FILES) ;
472 }

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