Files
core-foundation-rs/Makefile.in
T
2013-12-26 19:52:32 -07:00

25 lines
447 B
Makefile

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