Import('*')

makelexer = env.Program('makelexer', 'lexcode.cpp',
CPPPATH = env.Dictionary()['CPPPATH'] + ['#lexgen'],
LIBPATH = '#lexgen',
LIBS = 'lexgen'
)

env.Command(['HeaderLexerCore.h', 'HeaderLexerCore.cpp'], makelexer,
makelexer[0].abspath+' HeaderLexerCore ${TARGETS[0]} ${TARGETS[1]} '
'HeaderLexerDefinitions HeaderLexerDefinitions.h HeaderParser HeaderParser.h'
)

env.StaticLibrary('headerparser', [
'HeaderLexerCore.cpp', 'HeaderParser.cpp'
],
CPPPATH = env.Dictionary()['CPPPATH'] + [
    '#main', '#foundation', '#../ACE_wrappers'
]
)
