mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-02 11:44:28 +00:00
8 lines
147 B
Makefile
8 lines
147 B
Makefile
# Everyone uses make for building Rust
|
|
|
|
foo: bar.rlib
|
|
$(RUSTC) --crate-type bin --extern bar=bar.rlib
|
|
|
|
%.rlib: %.rs
|
|
$(RUSTC) --crate-type lib $<
|