Update examples for Rust master
This commit is contained in:
@@ -10,12 +10,11 @@ all: target/double
|
||||
target:
|
||||
mkdir -p $@
|
||||
|
||||
target/double: target/main.o target/libdouble_input.a
|
||||
target/double: target/main.o target/debug/libdouble_input.a
|
||||
$(CC) -o $@ $^ $(LDFLAGS)
|
||||
|
||||
target/libdouble_input.a: src/lib.rs Cargo.toml
|
||||
target/debug/libdouble_input.a: src/lib.rs Cargo.toml
|
||||
cargo build
|
||||
(cd target && ln -nsf debug/libdouble_input-*.a libdouble_input.a)
|
||||
|
||||
target/main.o: src/main.c | target
|
||||
$(CC) -o $@ -c $<
|
||||
|
||||
Reference in New Issue
Block a user