aboutsummaryrefslogtreecommitdiffstats
path: root/makefile
diff options
context:
space:
mode:
Diffstat (limited to 'makefile')
-rw-r--r--makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/makefile b/makefile
index dacbbe5..982698c 100644
--- a/makefile
+++ b/makefile
@@ -5,6 +5,7 @@ CM_OPT_ASSERT_PATH ?= <assert.h>
CM_OPT_RELEASE ?= 1
CM_OPT_ENABLE_UBSAN ?= 0
CM_OPT_ENABLE_ASAN ?= 0
+CM_OPT_ENABLE_SSE2 ?= 0
CC ?= gcc
@@ -39,6 +40,10 @@ ifeq ($(CM_OPT_ENABLE_ASAN),1)
CM_CC_FLAGS += -fsanitize=address
endif
+ifeq ($(CM_OPT_ENABLE_SSE2),1)
+ CM_CC_FLAGS += -DCM_SSE2=1
+endif
+
.PHONY: all
all: $(CM_OBJECT) $(CM_DEMO)