Build static and dynamic libs

This commit is contained in:
Steven Fackler 2014-02-09 15:49:16 -08:00
parent 490e518c6d
commit 360fa1f04b
2 changed files with 4 additions and 3 deletions

View File

@ -1,10 +1,10 @@
RUSTC = rustc
BUILDDIR = build
RUSTFLAGS = -O -Z debug-info
RUSTFLAGS = -O -Z extra-debug-info --cfg ndebug
INSTALL_DIR = %PREFIX%
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))
all: $(OPENSSL)

3
lib.rs
View File

@ -1,6 +1,7 @@
#[feature(struct_variant, macro_rules)];
#[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")];
extern mod extra;