/[ascend]/trunk/base/generic/compiler/SConscript
ViewVC logotype

Diff of /trunk/base/generic/compiler/SConscript

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 720 by johnpye, Mon Jun 26 12:56:55 2006 UTC revision 721 by johnpye, Mon Jul 3 06:22:42 2006 UTC
# Line 25  csrcs = Split(""" Line 25  csrcs = Split("""
25      watchpt.c watchptio.c when.c when_io.c when_util.c      watchpt.c watchptio.c when.c when_io.c when_util.c
26  """)  """)
27    
28  # SLOPPY sources. This is a painful hack that should be fixed using 'config.h' style solution.  import platform, glob
29    
 import platform  
30  if libascend_env.has_key('HAVE_YACC'):  if libascend_env.has_key('HAVE_YACC'):
31      parsersource = 'ascParse.y'      parsersource = 'ascParse.y'
32      parserheader = 'ascParse.h'      parserheader = 'ascParse.h'
# Line 54  packages = packages_env.SharedObject('pa Line 53  packages = packages_env.SharedObject('pa
53    
54  objs = [parser,scanner,packages]  objs = [parser,scanner,packages]
55    
56    # SLOPPY sources. This is a painful hack that should be fixed using 'config.h' style solution.
57    
58  sloppy_csrcs = ['rounded.c','interval.c']  sloppy_csrcs = ['rounded.c','interval.c']
59    
60  sloppy_env = libascend_env.Copy()  sloppy_env = libascend_env.Copy()
# Line 66  libascend_env.Depends(scanner,[parserhea Line 67  libascend_env.Depends(scanner,[parserhea
67  for s in [csrcs]:  for s in [csrcs]:
68      objs += libascend_env.SharedObject(s)      objs += libascend_env.SharedObject(s)
69    
70    #--------------------
71    # INSTALL
72    
73    if libascend_env.get('CAN_INSTALL'):
74        installdir = libascend_env['INSTALL_ROOT']+libascend_env['INSTALL_INCLUDE']+'/compiler'
75    
76        headers = glob.glob("*.h")
77        libascend_env.InstallHeader(installdir,headers)
78    
79  Return('objs')  Return('objs')

Legend:
Removed from v.720  
changed lines
  Added in v.721

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