# -*- mode: python -*-
Import('env')

sources = ['parser.y',
           'scanner.l',
           'glue.c', ]
env.Library('in_iptables_save', sources)
env.Clean('scanner.o', ['scanner.c', 'scanner.h'])
env.Clean('parser.o', ['parser.c', 'parser.h'])

# ship the sources
env.Tar(env['TARBALL'], sources + ['SConscript',
                                   'ast.h',
                                   # these included so bison and flex aren't
                                   # required by users
                                   'parser.c',
                                   'parser.h',
                                   'scanner.c'])

SConscript('t/SConscript', 'env')
