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:
parent
b2a552b3e0
commit
6c28ca738e
8
Makefile
8
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)
|
||||
|
Loading…
Reference in New Issue
Block a user