Files
core-foundation-rs/Makefile.in
T
Jack Moffitt 8d367ac068 Cargoify rust-core-foundation.
Note that it is buildable on non-macos platforms because Cargo does not
yet have conditional dependencies and several non-macos Servo things
depend on it when on macos.
2014-08-25 17:16:01 -06:00

25 lines
483 B
Makefile

VPATH=%VPATH%
RUSTC ?= rustc
RUSTFLAGS ?=
RUST_SRC=$(shell find $(VPATH)/src -type f -name '*.rs')
.PHONY: all
all: libcore_foundation.dummy
libcore_foundation.dummy: src/lib.rs $(RUST_SRC)
$(RUSTC) $(RUSTFLAGS) $< --out-dir .
touch $@
core_foundation-test: src/lib.rs $(RUST_SRC)
$(RUSTC) $(RUSTFLAGS) $< -o $@ --test
.PHONY: check
check: core_foundation-test
./core_foundation-test $(TEST)
.PHONY: clean
clean:
rm -f *.o *.a *.so *.dylib *.rlib *.dll *.dummy *-test