Files
core-foundation-rs/Makefile.in
T
Lars Bergstrom 5940560e5b Clean rlib files
2014-03-19 13:50:57 -05:00

25 lines
480 B
Makefile

VPATH=%VPATH%
RUSTC ?= rustc
RUSTFLAGS ?=
RUST_SRC=$(shell find $(VPATH)/. -type f -name '*.rs')
.PHONY: all
all: libcore_graphics.dummy
libcore_graphics.dummy: lib.rs $(RUST_SRC)
$(RUSTC) $(RUSTFLAGS) $< --crate-type=lib --out-dir .
touch $@
core_graphics-test: lib.rs $(RUST_SRC)
$(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