Files
core-foundation-rs/Makefile.in
T

24 lines
484 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) $< -o $@
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