Build static and dynamic libs
This commit is contained in:
parent
490e518c6d
commit
360fa1f04b
|
|
@ -1,10 +1,10 @@
|
||||||
RUSTC = rustc
|
RUSTC = rustc
|
||||||
BUILDDIR = build
|
BUILDDIR = build
|
||||||
RUSTFLAGS = -O -Z debug-info
|
RUSTFLAGS = -O -Z extra-debug-info --cfg ndebug
|
||||||
INSTALL_DIR = %PREFIX%
|
INSTALL_DIR = %PREFIX%
|
||||||
|
|
||||||
OPENSSL_LIB = lib.rs
|
OPENSSL_LIB = lib.rs
|
||||||
OPENSSL = $(BUILDDIR)/$(shell $(RUSTC) --crate-file-name $(OPENSSL_LIB))
|
OPENSSL = $(foreach file,$(shell $(RUSTC) --crate-file-name $(OPENSSL_LIB)),$(BUILDDIR)/$(file))
|
||||||
OPENSSL_TEST = $(BUILDDIR)/$(shell $(RUSTC) --test --crate-file-name $(OPENSSL_LIB))
|
OPENSSL_TEST = $(BUILDDIR)/$(shell $(RUSTC) --test --crate-file-name $(OPENSSL_LIB))
|
||||||
|
|
||||||
all: $(OPENSSL)
|
all: $(OPENSSL)
|
||||||
|
|
|
||||||
3
lib.rs
3
lib.rs
|
|
@ -1,6 +1,7 @@
|
||||||
#[feature(struct_variant, macro_rules)];
|
#[feature(struct_variant, macro_rules)];
|
||||||
#[crate_id="github.com/sfackler/rust-openssl#openssl:0.0"];
|
#[crate_id="github.com/sfackler/rust-openssl#openssl:0.0"];
|
||||||
#[crate_type="lib"];
|
#[crate_type="rlib"];
|
||||||
|
#[crate_type="dylib"];
|
||||||
#[doc(html_root_url="http://www.rust-ci.org/sfackler/rust-openssl/doc")];
|
#[doc(html_root_url="http://www.rust-ci.org/sfackler/rust-openssl/doc")];
|
||||||
|
|
||||||
extern mod extra;
|
extern mod extra;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue