Append -release to release output elf

This commit is contained in:
Mario Hüttel 2020-06-15 21:24:27 +02:00
parent 56439a3b13
commit ecd8d2537d

View File

@ -72,14 +72,14 @@ CFLAGS += -Wall -Wextra -Wold-style-declaration -Wuninitialized -Wmaybe-uninitia
CFLAGS_RELEASE = -O3 -g CFLAGS_RELEASE = -O3 -g
CFLAGS_DEBUG = -O0 -g CFLAGS_DEBUG = -O0 -g
LFLAGS_RELEASE = -Wl,--gc-sections LFLAGS_RELEASE = -Wl,--gc-sections
LFLAGS_DEBUG = LFLAGS_DEBUG =
ifneq ($(DEBUGBUILD),true) ifneq ($(DEBUGBUILD),true)
DEFINES += $(RELEASE_DEFINES) DEFINES += $(RELEASE_DEFINES)
CFLAGS += $(CFLAGS_RELEASE) CFLAGS += $(CFLAGS_RELEASE)
LFLAGS += $(LFLAGS_RELEASE) LFLAGS += $(LFLAGS_RELEASE)
target = $(TARGET_BASE) target = $(TARGET_BASE)-release
OBJDIR = $(OBJDIR_BASE)/release OBJDIR = $(OBJDIR_BASE)/release
else else
DEFINES += $(DEBUG_DEFINES) DEFINES += $(DEBUG_DEFINES)