Use platform dependencies and clean up old cruft.

This commit is contained in:
Jack Moffitt
2015-06-02 23:30:59 -06:00
parent 2d8d665c5b
commit 2cd1531e2b
3 changed files with 1 additions and 31 deletions
+1 -2
View File
@@ -7,7 +7,6 @@ authors = ["The Servo Project Developers"]
[dependencies]
libc = "*"
[dependencies.core_foundation]
[target.x86_64-apple-darwin.dependencies.core_foundation]
git = "https://github.com/servo/rust-core-foundation"
-25
View File
@@ -1,25 +0,0 @@
VPATH=%VPATH%
RUSTC ?= rustc
RUSTFLAGS ?=
EXT_DEPS ?=
RUST_SRC=$(shell find $(VPATH)/src -type f -name '*.rs')
.PHONY: all
all: libcore_graphics.dummy
libcore_graphics.dummy: src/lib.rs $(RUST_SRC) $(EXT_DEPS)
$(RUSTC) $(RUSTFLAGS) $< --out-dir .
touch $@
core_graphics-test: src/lib.rs $(RUST_SRC) $(EXT_DEPS)
$(RUSTC) $(RUSTFLAGS) $< -o $@ --test
.PHONY: check
check: core_graphics-test
./core_graphics-test $(TEST)
.PHONY: clean
clean:
rm -f *.o *.a *.so *.dylib *.rlib *.dll *.dummy *-test
Vendored
-4
View File
@@ -1,4 +0,0 @@
#!/bin/bash
SRCDIR="$(cd $(dirname $0) && pwd)"
sed "s#%VPATH%#${SRCDIR}#" ${SRCDIR}/Makefile.in > Makefile