mirror of https://github.com/lukechilds/cc-rs.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
397 B
18 lines
397 B
10 years ago
|
extern crate gcc;
|
||
|
|
||
|
fn main() {
|
||
|
gcc::Config::new()
|
||
|
.file("src/foo.c")
|
||
|
.compile("libfoo.a");
|
||
|
|
||
|
gcc::Config::new()
|
||
|
.file("src/bar1.c")
|
||
|
.file("src/bar2.c")
|
||
|
.compile("libbar.a");
|
||
|
|
||
|
gcc::Config::new()
|
||
|
.file("src/bar1.c")
|
||
|
.file("src/bar2.c")
|
||
|
.compile("libbar.a");
|
||
|
}
|