From a028b467cfd8b6502e2dea8b1b23afc78d2d8442 Mon Sep 17 00:00:00 2001 From: Michael <20937441+KMikeeU@users.noreply.github.com> Date: Tue, 14 Apr 2026 17:35:08 +0200 Subject: [PATCH] fix linux executable name --- Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 08d7be8..78b91ed 100644 --- a/Makefile +++ b/Makefile @@ -9,7 +9,12 @@ EMU_OBJ_FILES := $(EMU_SRC_FILES:src/emulated/%.c=build/%.riscv.o) EMU_OBJ := build/emulated.riscv.elf HOST_SRC := src/main.c src/elf.c -HOST_EXE := build/main.exe + +ifeq ($(OS),Windows_NT) + HOST_EXE := build/main.exe +else + HOST_EXE := build/main +endif # Disassembly RISCV_OBJDUMP ?= $(patsubst %-gcc,%-objdump,$(RISCV_CC))