[go: up one dir, main page]

glutin_core_foundation 0.1.2

The *real* core_foundation crate, under a temporary name.
Documentation
VPATH=%VPATH%

RUSTC ?= rustc
RUSTFLAGS ?=

RUST_SRC=$(shell find $(VPATH)/src -type f -name '*.rs')

.PHONY: all
all:    libcore_foundation.dummy

libcore_foundation.dummy: src/lib.rs $(RUST_SRC)
	$(RUSTC) $(RUSTFLAGS) $< --out-dir .
	touch $@

core_foundation-test: src/lib.rs $(RUST_SRC)
	$(RUSTC) $(RUSTFLAGS) $< -o $@ --test

.PHONY: check
check: core_foundation-test
	./core_foundation-test $(TEST)

.PHONY: clean
clean:
	rm -f *.o *.a *.so *.dylib *.rlib *.dll *.dummy *-test