Files
core-foundation-rs/Makefile.in
T
2013-08-16 16:40:42 -06:00

24 lines
490 B
Makefile

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