Rev 2 | Rev 6 | Go to most recent revision | Details | Compare with Previous | 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. |
||
3 | jlesech | 16 | env_target.Append(LIBPATH = [ '#build/' + '/libraries/' + TARGET + '/' + env_name]) |
2 | jlesech | 17 | env_target.Append(LIBS = [ TARGET ]) |