diff --git a/demo/sdl_opengl2/Makefile b/demo/sdl_opengl2/Makefile index 64f1af3..b96585d 100644 --- a/demo/sdl_opengl2/Makefile +++ b/demo/sdl_opengl2/Makefile @@ -2,7 +2,7 @@ BIN = demo # Flags -CFLAGS += -std=c89 -Wall -Wextra -pedantic -O2 +CFLAGS += -std=c89 -Wall -Wextra -pedantic -O2 -DSDL_DISABLE_IMMINTRIN_H SRC = main.c OBJ = $(SRC:.c=.o) diff --git a/demo/sdl_opengl2/main.c b/demo/sdl_opengl2/main.c index de9dfde..d23e49e 100644 --- a/demo/sdl_opengl2/main.c +++ b/demo/sdl_opengl2/main.c @@ -34,7 +34,7 @@ * ===============================================================*/ /* This are some code examples to provide a small overview of what can be * done with this library. To try out an example uncomment the defines */ -/*#define INCLUDE_ALL */ +#define INCLUDE_ALL /*#define INCLUDE_STYLE */ /*#define INCLUDE_CALCULATOR */ /*#define INCLUDE_CANVAS */ diff --git a/demo/sdl_opengl3/Makefile b/demo/sdl_opengl3/Makefile index fb3acd2..a34b8ff 100644 --- a/demo/sdl_opengl3/Makefile +++ b/demo/sdl_opengl3/Makefile @@ -2,7 +2,7 @@ BIN = demo # Flags -CFLAGS += -std=c89 -Wall -Wextra -pedantic -O2 +CFLAGS += -std=c89 -Wall -Wextra -pedantic -O2 -DSDL_DISABLE_IMMINTRIN_H SRC = main.c OBJ = $(SRC:.c=.o) diff --git a/demo/sdl_opengles2/Makefile b/demo/sdl_opengles2/Makefile index 41d080e..9523c03 100644 --- a/demo/sdl_opengles2/Makefile +++ b/demo/sdl_opengles2/Makefile @@ -2,7 +2,7 @@ BIN = demo # Flags -CFLAGS += -std=c89 -Wall -Wextra -pedantic -O2 +CFLAGS += -std=c89 -Wall -Wextra -pedantic -O2 -DSDL_DISABLE_IMMINTRIN_H SRC = main.c OBJ = $(SRC:.c=.o) diff --git a/demo/sdl_renderer/Makefile b/demo/sdl_renderer/Makefile index bb3feeb..b3efdb8 100644 --- a/demo/sdl_renderer/Makefile +++ b/demo/sdl_renderer/Makefile @@ -2,7 +2,7 @@ BIN = demo # Flags -CFLAGS += -std=c89 -pedantic -O0 +CFLAGS += -std=c89 -Wall -Wextra -pedantic -O2 -DSDL_DISABLE_IMMINTRIN_H CFLAGS += `sdl2-config --cflags` SRC = main.c diff --git a/demo/sdl_vulkan/Makefile b/demo/sdl_vulkan/Makefile index 2f64928..2d8444b 100644 --- a/demo/sdl_vulkan/Makefile +++ b/demo/sdl_vulkan/Makefile @@ -3,6 +3,7 @@ BIN = demo # Flags CFLAGS += -std=c89 -Wall -Wextra -pedantic -fsanitize=address -O2 +CFLAGS += -DSDL_DISABLE_IMMINTRIN_H SRC = main.c OBJ = $(SRC:.c=.o) diff --git a/demo/x11_opengl2/Makefile b/demo/x11_opengl2/Makefile index e92437f..32cf0ea 100644 --- a/demo/x11_opengl2/Makefile +++ b/demo/x11_opengl2/Makefile @@ -2,7 +2,7 @@ BIN = demo # Compiler -CC = clang +CC ?= clang DCC = gcc # Flags @@ -13,11 +13,11 @@ OBJ = $(SRC:.c=.o) # Modes .PHONY: gcc -gcc: CC = gcc +gcc: CC ?= gcc gcc: $(BIN) .PHONY: clang -clang: CC = clang +clang: CC ?= clang clang: $(BIN) $(BIN): diff --git a/demo/x11_opengl3/Makefile b/demo/x11_opengl3/Makefile index e92437f..32cf0ea 100644 --- a/demo/x11_opengl3/Makefile +++ b/demo/x11_opengl3/Makefile @@ -2,7 +2,7 @@ BIN = demo # Compiler -CC = clang +CC ?= clang DCC = gcc # Flags @@ -13,11 +13,11 @@ OBJ = $(SRC:.c=.o) # Modes .PHONY: gcc -gcc: CC = gcc +gcc: CC ?= gcc gcc: $(BIN) .PHONY: clang -clang: CC = clang +clang: CC ?= clang clang: $(BIN) $(BIN):