Files
core-foundation-rs/Makefile.in
T
2012-11-08 10:53:10 -08:00

24 lines
468 B
Makefile

VPATH=%VPATH%
RUSTC ?= rustc
RUSTFLAGS ?=
RUST_SRC=$(shell find $(VPATH)/. -type f -name '*.rs')
.PHONY: all clean
all: librustcoregraphics.dummy
librustcoregraphics.dummy: core_graphics.rc $(RUST_SRC)
$(RUSTC) $(RUSTFLAGS) $< -o $@
touch $@
rustcoregraphics-test: core_graphics.rc $(RUST_SRC)
$(RUSTC) $(RUSTFLAGS) $< -o $@ --test
check: rustcoregraphics-test
./rustcoregraphics-test
clean:
rm -f *.o *.a *.so *.dylib *.dll *.dummy rustcoregraphics-test