add depends

This commit is contained in:
Doug MacEachern 2011-06-15 09:17:43 -07:00
parent fcdf809ef5
commit 7acf88a0bf
1 changed files with 3 additions and 0 deletions

View File

@ -22,6 +22,7 @@ import sys
build = 'build' build = 'build'
options = {'perl':'perl'} options = {'perl':'perl'}
deps = [build + '/_sigar_generated.c']
def parse_args(): def parse_args():
global options global options
@ -59,6 +60,7 @@ if 'sigar' in options:
_sigar = Extension( _sigar = Extension(
"_sigar", "_sigar",
["_sigar.c"], ["_sigar.c"],
depends = deps,
include_dirs = [sigar + '/include', build], include_dirs = [sigar + '/include', build],
extra_compile_args = ['-Wall'], extra_compile_args = ['-Wall'],
libraries=['sigar'], libraries=['sigar'],
@ -72,6 +74,7 @@ else :
_sigar = Extension( _sigar = Extension(
"_sigar", "_sigar",
src, src,
depends = deps,
include_dirs = [build], include_dirs = [build],
extra_compile_args = cppflags, extra_compile_args = cppflags,
extra_link_args = sargs('ldflags'), extra_link_args = sargs('ldflags'),