Add makefile for psxreadmap

This commit is contained in:
2024-10-07 22:04:43 +02:00
parent 16f8f103e0
commit daa1994570
4 changed files with 27 additions and 4 deletions

View File

@@ -13,4 +13,14 @@ define cp_artifact
)
endef
define cargo_windows_default
cargo $(CARGO_CMD) --$(BUILD_PROFILE) --target=$(WINDOWS_TARGET)
$(call cp_artifact,$(WINDOWS_ARTIFACT), ../../../bin/$(ARTIFACT).exe)
endef
define cargo_unix_default
cargo $(CARGO_CMD) --$(BUILD_PROFILE) --target=$(UNIX_TARGET)
$(call cp_artifact,$(UNIX_ARTIFACT), ../../../bin/$(ARTIFACT))
endef
# Windows build requires "rustup target add x86_64-pc-windows-gnu" and "sudo apt-get install mingw-w64"