mirror of
https://github.com/Noratrieb/portability.git
synced 2026-01-14 15:55:04 +01:00
18 lines
420 B
Makefile
18 lines
420 B
Makefile
SHELL = bash
|
|
RUSTC = rustc --target x86_64-pc-windows-msvc -Cpanic=abort -Clinker=lld-link -Clink-arg=/NODEFAULTLIB -Clink-arg=/debug:none -Cdebuginfo=0
|
|
|
|
build: empty_exe.exe one_dll.exe
|
|
|
|
empty_exe.exe: empty_exe.rs
|
|
$(RUSTC) empty_exe.rs
|
|
|
|
one_dll.exe: one_dll.rs small_dll.dll
|
|
$(RUSTC) one_dll.rs
|
|
|
|
small_dll.dll: small_dll.rs
|
|
$(RUSTC) small_dll.rs
|
|
|
|
.PHONY: clean
|
|
clean:
|
|
shopt -s nullglob
|
|
rm *.exe *.pdb *.dll *.lib
|