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