Makefile: add EXEDIR to override bin directory

This commit is contained in:
James R 2022-08-11 01:11:38 -07:00
parent 607fe240bb
commit 5be854683e

View file

@ -243,17 +243,17 @@ endif
objects:=$(addprefix $(objdir)/,$(objects))
ifdef DEBUGMODE
bin:=../bin/debug
EXEDIR?=../bin/debug
else
bin:=../bin
EXEDIR?=../bin
endif
# default EXENAME (usually set by platform)
EXENAME?=$(exe)
DBGNAME?=$(EXENAME).debug
exe:=$(bin)/$(EXENAME)
dbg:=$(bin)/$(DBGNAME)
exe:=$(EXEDIR)/$(EXENAME)
dbg:=$(EXEDIR)/$(DBGNAME)
build_done==== Build is done, look for \
$(<F) at $(abspath $(<D)) ===