1Import('*')
2
3env = env.Clone()
4
5env.Prepend(LIBS = [gallium])
6
7env.Prepend(LIBPATH = [graw.dir])
8env.Prepend(LIBS = ['graw'])
9
10
11if env['platform'] in ('freebsd8', 'sunos'):
12    env.Append(LIBS = ['m'])
13
14if env['platform'] == 'freebsd8':
15    env.Append(LIBS = ['pthread'])
16
17progs = [
18    'clear',
19    'fs-fragcoord',
20    'fs-frontface',
21    'fs-test',
22    'fs-write-z',
23    'gs-test',
24    'occlusion-query',
25    'quad-sample',
26    'quad-tex',
27    'shader-leak',
28    'tex-srgb',
29    'tex-swizzle',
30    'tri',
31    'tri-gs',
32    'tri-instanced',
33    'vs-test',
34]
35
36for name in progs:
37    program = env.Program(
38        target = name,
39        source = name + '.c',
40    )
41    #env.Depends(program, graw)
42    env.Alias('graw-progs', program)
43