Don't feed the Makefile nazis.
authorparasti <parasti@78b8d119-cf0a-0410-b17c-f493084dd1d7>
Wed, 2 Jan 2008 13:39:01 +0000 (13:39 +0000)
committerparasti <parasti@78b8d119-cf0a-0410-b17c-f493084dd1d7>
Wed, 2 Jan 2008 13:39:01 +0000 (13:39 +0000)
git-svn-id: https://s.snth.net/svn/neverball/trunk@1365 78b8d119-cf0a-0410-b17c-f493084dd1d7

Makefile

index 506e114..d1d97a9 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -15,8 +15,13 @@ endif
 #------------------------------------------------------------------------------
 # Optional flags (CFLAGS, CPPFLAGS, ...)
 
-#CFLAGS := -Wall -g -ansi -pedantic
-CFLAGS := -Wall -O2 -ansi -pedantic
+ifeq ($(ENABLE_WII),1)
+    # libwiimote is NOT ANSI compliant
+    CFLAGS := -O2
+else
+    #CFLAGS := -Wall -g -ansi -pedantic
+    CFLAGS := -Wall -O2 -ansi -pedantic
+endif
 
 #------------------------------------------------------------------------------
 # Mandatory flags
@@ -40,7 +45,6 @@ else
 endif
 
 ifeq ($(ENABLE_WII),1)
-    ALL_CFLAGS    = -O2  # libwiimote is NOT ANSI compliant
     ALL_CPPFLAGS += -DENABLE_WII=1
 endif
 
@@ -69,7 +73,7 @@ else ifdef DARWIN
 
     OGL_LIBS := -framework OpenGL
 else
-    ifneq ($(ENABLE_WII),0)
+    ifeq ($(ENABLE_WII),1)
         TILT_LIBS := -lcwiimote -lbluetooth
     endif