From b5ea3a081d60a5e95ff4340a0f104249ddf78c1d Mon Sep 17 00:00:00 2001 From: Matthew Kilgore Date: Sun, 15 May 2022 17:12:17 -0400 Subject: [PATCH] Fix BUILD_QB64=y usage on Windows BUILD_QB64=y sets the default EXE name to 'qb64', which is actually wrong on Windows because it does not include the `.exe` extention. It also works anyway but `objcopy` doesn't recognize the file without the extension present. --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index be3386c66..b700b7ec4 100644 --- a/Makefile +++ b/Makefile @@ -84,7 +84,11 @@ else endif ifdef BUILD_QB64 - EXE ?= qb64 + ifeq ($(OS),win) + EXE ?= qb64.exe + else + EXE ?= qb64 + endif else ifneq ($(filter clean,$(MAKECMDGOALS)),)