#------------------------------------------------------------------------------
# Optional flags (CFLAGS, CPPFLAGS, ...)
-ifeq ($(ENABLE_WII),1)
- # libwiimote is NOT ANSI compliant (TODO, check if this is necessary. GCC
- # is supposed to suppress warnings from system headers.)
-
- ifneq ($(DEBUG),1)
- CFLAGS := -g
- CPPFLAGS :=
- else
- CFLAGS := -O2
- CPPFLAGS := -DNDEBUG
- endif
+ifeq ($(DEBUG),1)
+ CFLAGS := -g
+ CPPFLAGS :=
else
- ifeq ($(DEBUG),1)
- CFLAGS := -Wall -g -ansi -pedantic
- CPPFLAGS :=
- else
- CFLAGS := -Wall -O2 -ansi -pedantic
- CPPFLAGS := -DNDEBUG
- endif
+ CFLAGS := -O2
+ CPPFLAGS := -DNDEBUG
endif
#------------------------------------------------------------------------------
SSE_CFLAGS := $(shell env CC="$(CC)" sh scripts/get-sse-cflags.sh)
-ALL_CFLAGS := $(SSE_CFLAGS) $(CFLAGS)
+ifeq ($(ENABLE_WII),1)
+ # libwiimote is NOT ANSI compliant (TODO, check if this is necessary. GCC
+ # is supposed to suppress warnings from system headers.)
+ ALL_CFLAGS := $(SSE_CFLAGS) $(CFLAGS)
+else
+ ALL_CFLAGS := -Wall -ansi -pedantic $(SSE_FLAGS) $(CFLAGS)
+endif
# Preprocessor...