24 lines
468 B
Makefile
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
|
|
|