Rev 3 | Go to most recent revision | Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
2 | jlesech | 1 | # Import environment set for target. |
2 | Import('env_target', 'env_name', 'DEVICE') |
||
3 | |||
4 | # Define target name. |
||
5 | TARGET = 'digital_io' |
||
6 | |||
7 | # Define source files. |
||
8 | sources = [ |
||
9 | 'digital_io.c' |
||
10 | ] |
||
11 | |||
12 | # Build static library. |
||
13 | env_target.StaticLibrary(target = TARGET, source = sources) |
||
14 | |||
15 | # Append LIBPATH and LIBS. |
||
16 | env_target.Append(LIBPATH = [ '#build/' + env_name + '/libraries/' + TARGET + '/src']) |
||
17 | env_target.Append(LIBS = [ TARGET ]) |
||
18 |