Browse Source

TRAVIS: include demo windows and activate warnings

Martin Gerhardy 7 years ago
parent
commit
b17ec490ef

+ 2 - 1
.travis.yml

@@ -11,5 +11,6 @@ before_install:
     - if [ $TRAVIS_OS_NAME == linux ]; then sudo add-apt-repository -y ppa:pyglfw/pyglfw && sudo apt-get update -qq && sudo apt-get install -y --no-install-recommends libglfw3 libglfw3-dev libglew-dev; fi
 
 script:
-    - make -C demo/glfw_opengl3
+    - make -C demo/glfw_opengl3 CFLAGS="-Wall -DINCLUDE_ALL"
     - make -C demo/glfw_opengl2
+    - make -C example

+ 1 - 1
demo/allegro5/Makefile

@@ -2,7 +2,7 @@
 BIN = demo
 
 # Flags
-CFLAGS = -std=c99 -pedantic -O2
+CFLAGS += -std=c99 -pedantic -O2
 
 SRC = main.c
 OBJ = $(SRC:.c=.o)

+ 1 - 1
demo/glfw_opengl2/Makefile

@@ -2,7 +2,7 @@
 BIN = demo
 
 # Flags
-CFLAGS = -std=c99 -pedantic -O2
+CFLAGS += -std=c99 -pedantic -O2
 
 SRC = main.c
 OBJ = $(SRC:.c=.o)

+ 1 - 1
demo/glfw_opengl3/Makefile

@@ -2,7 +2,7 @@
 BIN = demo
 
 # Flags
-CFLAGS = -std=c99 -pedantic -O2
+CFLAGS += -std=c99 -pedantic -O2
 
 SRC = main.c
 OBJ = $(SRC:.c=.o)

+ 1 - 1
demo/sdl_opengl2/Makefile

@@ -2,7 +2,7 @@
 BIN = demo
 
 # Flags
-CFLAGS = -std=c99 -pedantic -O2
+CFLAGS += -std=c99 -pedantic -O2
 
 SRC = main.c
 OBJ = $(SRC:.c=.o)

+ 1 - 1
demo/sdl_opengl3/Makefile

@@ -2,7 +2,7 @@
 BIN = demo
 
 # Flags
-CFLAGS = -std=c99 -pedantic -O2
+CFLAGS += -std=c99 -pedantic -O2
 
 SRC = main.c
 OBJ = $(SRC:.c=.o)

+ 1 - 1
demo/sdl_opengles2/Makefile

@@ -2,7 +2,7 @@
 BIN = demo
 
 # Flags
-CFLAGS = -std=c99 -pedantic -O2
+CFLAGS += -std=c99 -pedantic -O2
 
 SRC = main.c
 OBJ = $(SRC:.c=.o)

+ 1 - 1
demo/sfml_opengl2/Makefile

@@ -3,7 +3,7 @@ CC = g++
 BIN = demo
 
 # Flags
-CFLAGS = -s -O2
+CFLAGS += -s -O2
 
 SRC = main.cpp
 OBJ = $(SRC:.cpp=.o)

+ 1 - 1
demo/sfml_opengl3/Makefile

@@ -3,7 +3,7 @@ CC = g++
 BIN = demo
 
 # Flags
-CFLAGS = -s -O2
+CFLAGS += -s -O2
 
 SRC = main.cpp
 OBJ = $(SRC:.cpp=.o)

+ 1 - 1
demo/x11/Makefile

@@ -2,7 +2,7 @@
 BIN = zahnrad
 
 # Flags
-CFLAGS = -std=c89 -pedantic -O2
+CFLAGS += -std=c89 -pedantic -O2
 
 SRC = main.c
 OBJ = $(SRC:.c=.o)

+ 1 - 1
demo/x11_opengl2/Makefile

@@ -6,7 +6,7 @@ CC = clang
 DCC = gcc
 
 # Flags
-CFLAGS = -std=c99 -pedantic -O2
+CFLAGS += -std=c99 -pedantic -O2
 
 SRC = main.c
 OBJ = $(SRC:.c=.o)

+ 1 - 1
demo/x11_opengl3/Makefile

@@ -6,7 +6,7 @@ CC = clang
 DCC = gcc
 
 # Flags
-CFLAGS = -std=c99 -pedantic -O2
+CFLAGS += -std=c99 -pedantic -O2
 
 SRC = main.c
 OBJ = $(SRC:.c=.o)

+ 1 - 1
demo/x11_rawfb/Makefile

@@ -2,7 +2,7 @@
 BIN = zahnrad
 
 # Flags
-CFLAGS = -std=c89 -pedantic -O2 -Wunused -DRAWFB_XRGB_8888
+CFLAGS += -std=c89 -pedantic -O2 -Wunused -DRAWFB_XRGB_8888
 
 SRC = main.c
 OBJ = $(SRC:.c=.o)

+ 1 - 1
example/Makefile

@@ -1,5 +1,5 @@
 # Flags
-CFLAGS = -std=c99 -pedantic -O2
+CFLAGS += -std=c99 -pedantic -O2
 LIBS :=
 
 ifeq ($(OS),Windows_NT)