28 lines
504 B
Plaintext
28 lines
504 B
Plaintext
|
#! /usr/bin/env python
|
||
|
# encoding: utf-8
|
||
|
|
||
|
# wscript
|
||
|
|
||
|
VERSION='0.0.1'
|
||
|
APPNAME='icfp08'
|
||
|
|
||
|
srcdir = '.'
|
||
|
blddir = 'build'
|
||
|
|
||
|
def set_options(opt):
|
||
|
opt.tool_options('compiler_cc')
|
||
|
opt.tool_options('ragel', tdir = '.')
|
||
|
|
||
|
def configure(conf):
|
||
|
conf.check_tool('compiler_cc')
|
||
|
conf.check_tool('ragel', tooldir = '.')
|
||
|
|
||
|
common_ccflags = [
|
||
|
'-std=gnu99', '-Wall', '-g', '-Wshadow', '-W', '-pedantic',
|
||
|
# '-fPIC', '-D_GNU_SOURCE',
|
||
|
]
|
||
|
conf.env['CCFLAGS'] += common_ccflags
|
||
|
|
||
|
def build(bld):
|
||
|
bld.add_subdirs('src')
|