Просмотр исходного кода

Merge pull request #723 from awschult002/sdl_intrin

disables intrinsics on SDL demos
Rob Loach 1 год назад
Родитель
Сommit
985ddcbccb

+ 1 - 1
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)

+ 1 - 1
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 */

+ 1 - 1
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)

+ 1 - 1
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)

+ 1 - 1
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

+ 1 - 0
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)

+ 3 - 3
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):

+ 3 - 3
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):