Files
core-foundation-rs/Makefile.in
T
2014-05-28 17:31:28 -06:00

26 lines
484 B
Makefile

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