/[ascend]/trunk/tcltk98/generic/interface/SConscript
ViewVC logotype

Contents of /trunk/tcltk98/generic/interface/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 464 - (show annotations) (download)
Sun Apr 16 12:49:48 2006 UTC (14 years, 1 month ago) by johnpye
File size: 1226 byte(s)
Building Tcl/Tk with dynamic linking to shared libascend.dll.
Still some problems.
1 Import('env')
2
3 srcs = Split("""
4 AscBitmaps.c AscPrintTcl.c BrowLogRel_io.c BrowWhen_io.c
5 BrowserMethod.c BrowserProc.c BrowserQuery.c BrowserRel_io.c
6 Commands.c DebugProc.c DisplayProc.c
7 EnvVarProc.c HelpProc.c Integrators.c
8 LibraryProc.c Lsode.c MtxProc.c ProbeProc.c Qlfdid.c
9 ScriptProc.c Sensitivity.c SimsProc.c SlvProc.c
10 SolverProc.c UnitsProc.c UserData.c
11 tkConsole.c old_utils.c
12 """)
13
14
15 typelex = env.CFile(target='typelex.c',source='typelex.l'
16 , LEXFLAGS = '-ll -Ptyp_'
17 )
18
19 #----------------
20
21 libs = ['ascend']
22 libpath = ['#']
23
24 libs.append(env['TCL_LIB'])
25 libs.append(env['TK_LIB'])
26
27 if env.has_key('TCL_LIBPATH'):
28 libpath.append(env['TCL_LIBPATH'])
29 if env.has_key('TK_LIBPATH'):
30 libpath.append(env['TK_LIBPATH'])
31
32 cppdefines = []
33 if env.has_key('STATIC_TKTABLE'):
34 libpath.append(env['TKTABLE_LIBPATH'])
35 libs.append(env['TKTABLE_LIB'])
36 cppdefines.append('STATIC_TKTABLE')
37
38 cpppath = ['../../../base/generic']
39 if env.has_key('TCL_CPPPATH'):
40 cpppath.append(env['TCL_CPPPATH'])
41
42 if env.has_key('TK_CPPPATH'):
43 cpppath.append(env['TK_CPPPATH'])
44
45 env.Program("ascend4",srcs+typelex+['Driver.c']
46 , CPPDEFINES = cppdefines
47 , LIBS = libs
48 , LIBPATH = libpath
49 , CPPPATH = cpppath
50 # , RPATH = ["C:\\Tcl\\lib"]
51 )

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