Files
Albert Cervin 9e2cc9c90a Add a simple MinGW example
This has an artificial dependency on `pthreads` (a commonly needed one)
combined with a `build.rs` to trigger cross-compilation in combination
with compiling for the build platform.
2021-12-07 12:38:44 +01:00

12 lines
232 B
Makefile

# This Makefile is expected to be run inside nix-shell.
CARGO_FLAGS := --target x86_64-pc-windows-gnu
.PHONY: all
all: Cargo.toml Cargo.lock src/main.rs
cargo build $(CARGO_FLAGS)
.PHONY: test
run: all
cargo run $(CARGO_FLAGS)