Sophie

Sophie

distrib > Mandriva > 2009.1 > x86_64 > media > contrib-backports > by-pkgid > 5449138d6297d4beefc46ffe46a8c51a > files > 102

waf-1.5.11-1mdv2009.1.noarch.rpm

#!/usr/bin/env python
# encoding: utf-8

def build(bld):
	# to compile in c or c++ mode, uncomment the appropriate line below:
	#mode = 'cxx'
	mode = 'cc'

	obj = bld(
		features = 'cprogram ' + mode,
		includes = '.',
		target = 'calc',
		uselib = 'CALC')
	obj.find_sources_in_dirs('.')

	# sources may be given one by one, like this
	#obj.source='''
	#main.c
	#calc.l
	#calc.y
	#'''