diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 5a50b683..24b454cc 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -136,4 +136,5 @@ be inserted instead of `asm.inc`. When contributing non-matching functions to this project, please build in both modes and fix any build errors you may get. Delete the `.o` file between building in each mode so that the `Makefile` runs the compiler both times. -> [!NOTE] The inline assembler does not function the same as the standalone assembler. [See differences here.](inline_assembler.md#differences-from-standalone-assembler) +> [!NOTE] +> The inline assembler does not function the same as the standalone assembler. [See differences here.](docs/inline_assembler.md#differences-from-standalone-assembler) diff --git a/Makefile b/Makefile index 84f4cb22..90534997 100644 --- a/Makefile +++ b/Makefile @@ -12,8 +12,11 @@ ifeq ($(OS),Windows_NT) WINE := else WINE := wine + PYTHON ?= python3.11 endif +PYTHON ?= python + ROOT := $(shell pwd) BUILD_DIR := build TARGET_DIR := $(BUILD_DIR)/$(REGION_NAME) @@ -110,7 +113,7 @@ clean: .PHONY: lcf lcf: setup $(TOOLS_DIR)/lcf.py - python $(TOOLS_DIR)/lcf.py + $(PYTHON) $(TOOLS_DIR)/lcf.py $(ASM_OBJS): $(TARGET_DIR)/%.o: % mkdir -p $(dir $@) @@ -135,4 +138,4 @@ $(OV_LZS): %.lz: %.bin gen_externs: $(ASM_INCS) $(ASM_INCS): %.inc: %.s - python $(TOOLS_DIR)/gen_externs.py $< + $(PYTHON) $(TOOLS_DIR)/gen_externs.py $<