Skip to content

Instantly share code, notes, and snippets.

@jledet
Created October 12, 2011 11:10
Show Gist options
  • Save jledet/1280935 to your computer and use it in GitHub Desktop.
Save jledet/1280935 to your computer and use it in GitHub Desktop.
ftp-client wscript
#!/usr/bin/env python
# encoding: utf-8
APPNAME = 'ftp-client'
VERSION = '1.0'
top = '.'
out = 'build'
modules = ['../libcsp/', '../libio']
def options(ctx):
ctx.load('gcc')
ctx.recurse(modules)
def configure(ctx):
ctx.load('gcc')
# Options for CSP
ctx.options.os = 'posix'
ctx.options.with_can = 'socketcan'
ctx.recurse(modules)
def build(ctx):
ctx.recurse(modules)
ctx.program(source=ctx.path.ant_glob('*.c'), target='ftp-client', includes='include', use='io csp', lib='rt')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment