6 ## this only works for BuildDir aliasing, not for scons -Y ../scrdir
8 os.chdir (str (Dir ('.').srcnode ()))
9 sources = glob.glob ('*.cc') + ['parser.yy', 'lexer.ll']
17 e.Append (YACCFLAGS = '-d')
18 e.Append (CPPPATH = ['include', '#/lily/include', '#/flower/include'])
19 e.Depends ('lexer.cc', 'parser.cc')
21 # some stuff here from lily-as-lib
22 if not os.path.exists ('main.cc'):
24 e.Library (name, sources)
25 if not env['static'] or env['shared']:
26 e.SharedLibrary (name, sources)
28 #e.Append (LIBS = ['lygui', 'lyparser', 'lily', 'flower'])
29 e.Append (LIBS = ['flower'])
30 e.ParseConfig ('guile-config link')
32 e.Program (name, sources)