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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 460 - (show annotations) (download)
Tue Apr 11 01:08:58 2006 UTC (14 years, 4 months ago) by johnpye
File size: 1461 byte(s)
Fixing for 'STATIC_TKTABLE' flags for Fedora Core 5
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 libs = Split("""
21 asccompiler ascpackages ascsolver ascutilities ascgeneral
22 """)
23
24 libs.append(env['TCL_LIB'])
25 libs.append(env['TK_LIB'])
26
27 libpath = [
28 '../../../base/generic/compiler'
29 ,'../../../base/generic/packages'
30 ,'../../../base/generic/solver'
31 ,'../../../base/generic/utilities'
32 ,'../../../base/generic/general'
33 ]
34
35 if env.has_key('TCL_LIBPATH'):
36 libpath.append(env['TCL_LIBPATH'])
37 if env.has_key('TK_LIBPATH'):
38 libpath.append(env['TK_LIBPATH'])
39
40 cppdefines = []
41 if env.has_key('STATIC_TKTABLE'):
42 libpath.append(env['TKTABLE_LIBPATH'])
43 libs.append(env['TKTABLE_LIB'])
44 cppdefines.append('STATIC_TKTABLE')
45
46 cpppath = ['../../../base/generic']
47 if env.has_key('TCL_CPPPATH'):
48 cpppath.append(env['TCL_CPPPATH'])
49
50 if env.has_key('TK_CPPPATH'):
51 cpppath.append(env['TK_CPPPATH'])
52
53 env.Program("ascend4",srcs+typelex+['Driver.c']
54 , CPPDEFINES = cppdefines
55 , LIBS = libs
56 , LIBPATH = libpath
57 , CPPPATH = cpppath
58 # , RPATH = ["C:\\Tcl\\lib"]
59 )
60

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