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 $<
|