Fixed the makefile conditional.

git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3784 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
Cory McWilliams 2022-01-22 20:20:21 +00:00
parent b2a552b3e0
commit 6c28ca738e

View File

@ -2,7 +2,7 @@ PROJECT = tildefriends
BUILD_DIR ?= out BUILD_DIR ?= out
BUILD_DIR_DBG := $(BUILD_DIR)/debug BUILD_DIR_DBG := $(BUILD_DIR)/debug
BUILD_DIR_REL := $(BUILD_DIR)/release BUILD_DIR_REL := $(BUILD_DIR)/release
UNAME_M := $(shell uname -s) UNAME_M := $(shell uname -m)
CFLAGS += \ CFLAGS += \
-Wall \ -Wall \
@ -17,9 +17,9 @@ LDFLAGS += -Wl,-gc-sections
debug: CFLAGS += -Og -g debug: CFLAGS += -Og -g
release: CFLAGS += -DNDEBUG -O3 release: CFLAGS += -DNDEBUG -O3
ifeq ($(UNAME_M),x64_64) ifeq ($(UNAME_M),x86_64)
debug: CFLAGS += -fsanitize=address -fsanitize=undefined debug: CFLAGS += -fsanitize=address -fsanitize=undefined
debug: LDFLAGS += -fsanitize=address -fsanitize=undefined debug: LDFLAGS += -fsanitize=address -fsanitize=undefined
endif endif
APP_SOURCES = $(wildcard src/*.c) APP_SOURCES = $(wildcard src/*.c)