This commit is contained in:
nora 2025-02-01 17:06:32 +01:00
parent cec97ff44d
commit 64c30e201d
11 changed files with 4426 additions and 213 deletions

View file

@ -1,7 +1,7 @@
SHELL = bash
RUSTC = rustc --target x86_64-pc-windows-msvc -Cpanic=abort -Clinker=lld-link -Clink-arg=/NODEFAULTLIB -Clink-arg=/debug:none -Cdebuginfo=0
RUSTC = rustc --target x86_64-pc-windows-msvc -Copt-level=3 -Cpanic=abort -Clinker=lld-link -Clink-arg=/NODEFAULTLIB -Clink-arg=/debug:none -Cdebuginfo=0
build: empty_exe.exe one_dll.exe
build: empty_exe.exe one_dll.exe two_dll.exe
empty_exe.exe: empty_exe.rs
$(RUSTC) empty_exe.rs
@ -12,6 +12,12 @@ one_dll.exe: one_dll.rs small_dll.dll
small_dll.dll: small_dll.rs
$(RUSTC) small_dll.rs
ordinal_dll.dll: ordinal_dll.rs ordinal_dll.def
$(RUSTC) -Clink-arg=/def:ordinal_dll.def ordinal_dll.rs
two_dll.exe: small_dll.dll ordinal_dll.dll
$(RUSTC) two_dll.rs
.PHONY: clean
clean:
shopt -s nullglob