David Brown | de7729e | 2017-01-09 10:41:35 -0700 | [diff] [blame^] | 1 | // Build the library. |
2 | |||||
3 | extern crate gcc; | ||||
4 | |||||
5 | fn main() { | ||||
6 | let mut conf = gcc::Config::new(); | ||||
7 | |||||
8 | conf.file("../boot/bootutil/src/loader.c"); | ||||
9 | conf.file("../boot/bootutil/src/bootutil_misc.c"); | ||||
10 | conf.file("csupport/run.c"); | ||||
11 | conf.include("../boot/bootutil/include"); | ||||
12 | conf.include("../zephyr/include"); | ||||
13 | conf.debug(true); | ||||
14 | conf.compile("libbootutil.a"); | ||||
15 | } |