From 1f0bb39f60fd7dbbd71750746440bfadb12e2ddf Mon Sep 17 00:00:00 2001 From: Rob Loach Date: Mon, 30 Sep 2024 13:38:02 -0400 Subject: [PATCH] demo: Disable compiler optimization --- demo/allegro5/Makefile | 2 +- demo/glfw_opengl2/Makefile | 2 +- demo/glfw_opengl3/Makefile | 2 +- demo/glfw_opengl4/Makefile | 2 +- demo/glfw_vulkan/Makefile | 2 +- demo/rawfb/x11/Makefile | 2 +- demo/sdl_opengl2/Makefile | 2 +- demo/sdl_opengl3/Makefile | 2 +- demo/sdl_opengles2/Makefile | 2 +- demo/sfml_opengl2/Makefile | 2 +- demo/sfml_opengl3/Makefile | 2 +- demo/x11/Makefile | 2 +- demo/x11_opengl2/Makefile | 2 +- demo/x11_opengl3/Makefile | 2 +- demo/x11_xft/Makefile | 2 +- demo/xcb_cairo/Makefile | 2 +- doc/Makefile | 2 +- example/Makefile | 4 ++-- 18 files changed, 19 insertions(+), 19 deletions(-) diff --git a/demo/allegro5/Makefile b/demo/allegro5/Makefile index d792fa27..669cda15 100644 --- a/demo/allegro5/Makefile +++ b/demo/allegro5/Makefile @@ -2,7 +2,7 @@ BIN = demo # Flags -CFLAGS += -std=c89 -Wall -Wextra -pedantic -Wno-unused-function -O2 +CFLAGS += -std=c89 -Wall -Wextra -pedantic -Wno-unused-function SRC = main.c OBJ = $(SRC:.c=.o) diff --git a/demo/glfw_opengl2/Makefile b/demo/glfw_opengl2/Makefile index 9ac6b103..91789f4e 100644 --- a/demo/glfw_opengl2/Makefile +++ b/demo/glfw_opengl2/Makefile @@ -2,7 +2,7 @@ BIN = demo # Flags -CFLAGS += -std=c99 -Wall -Wextra -pedantic -O2 +CFLAGS += -std=c99 -Wall -Wextra -pedantic SRC = main.c OBJ = $(SRC:.c=.o) diff --git a/demo/glfw_opengl3/Makefile b/demo/glfw_opengl3/Makefile index 7c94f3dc..35a9c65a 100644 --- a/demo/glfw_opengl3/Makefile +++ b/demo/glfw_opengl3/Makefile @@ -2,7 +2,7 @@ BIN = demo # Flags -CFLAGS += -std=c89 -Wall -Wextra -pedantic -O2 +CFLAGS += -std=c89 -Wall -Wextra -pedantic SRC = main.c OBJ = $(SRC:.c=.o) diff --git a/demo/glfw_opengl4/Makefile b/demo/glfw_opengl4/Makefile index 7c94f3dc..35a9c65a 100644 --- a/demo/glfw_opengl4/Makefile +++ b/demo/glfw_opengl4/Makefile @@ -2,7 +2,7 @@ BIN = demo # Flags -CFLAGS += -std=c89 -Wall -Wextra -pedantic -O2 +CFLAGS += -std=c89 -Wall -Wextra -pedantic SRC = main.c OBJ = $(SRC:.c=.o) diff --git a/demo/glfw_vulkan/Makefile b/demo/glfw_vulkan/Makefile index 57675fd7..e738e13f 100644 --- a/demo/glfw_vulkan/Makefile +++ b/demo/glfw_vulkan/Makefile @@ -2,7 +2,7 @@ BIN = demo # Flags -CFLAGS += -std=c89 -Wall -Wextra -pedantic -O2 +CFLAGS += -std=c89 -Wall -Wextra -pedantic SRC = main.c OBJ = $(SRC:.c=.o) diff --git a/demo/rawfb/x11/Makefile b/demo/rawfb/x11/Makefile index 10bb4a7e..c927c471 100644 --- a/demo/rawfb/x11/Makefile +++ b/demo/rawfb/x11/Makefile @@ -2,7 +2,7 @@ BIN = zahnrad # Flags -CFLAGS += -std=c89 -Wall -Wextra -pedantic -Wno-unused-function -O2 +CFLAGS += -std=c89 -Wall -Wextra -pedantic -Wno-unused-function SRC = main.c OBJ = $(SRC:.c=.o) diff --git a/demo/sdl_opengl2/Makefile b/demo/sdl_opengl2/Makefile index 64f1af39..1f026408 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 SRC = main.c OBJ = $(SRC:.c=.o) diff --git a/demo/sdl_opengl3/Makefile b/demo/sdl_opengl3/Makefile index fb3acd23..b64e3adb 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 SRC = main.c OBJ = $(SRC:.c=.o) diff --git a/demo/sdl_opengles2/Makefile b/demo/sdl_opengles2/Makefile index 41d080e6..2610068f 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 SRC = main.c OBJ = $(SRC:.c=.o) diff --git a/demo/sfml_opengl2/Makefile b/demo/sfml_opengl2/Makefile index e6487068..8c0d2a4d 100644 --- a/demo/sfml_opengl2/Makefile +++ b/demo/sfml_opengl2/Makefile @@ -3,7 +3,7 @@ CC = g++ BIN = demo # Flags -CFLAGS += -s -Wall -Wextra -pedantic -O2 +CFLAGS += -s -Wall -Wextra -pedantic SRC = main.cpp OBJ = $(SRC:.cpp=.o) diff --git a/demo/sfml_opengl3/Makefile b/demo/sfml_opengl3/Makefile index 7bb97125..31de19b1 100644 --- a/demo/sfml_opengl3/Makefile +++ b/demo/sfml_opengl3/Makefile @@ -3,7 +3,7 @@ CC = g++ BIN = demo # Flags -CFLAGS += -s -Wall -Wextra -pedantic -O2 +CFLAGS += -s -Wall -Wextra -pedantic SRC = main.cpp OBJ = $(SRC:.cpp=.o) diff --git a/demo/x11/Makefile b/demo/x11/Makefile index 1234eaf8..b2beba55 100644 --- a/demo/x11/Makefile +++ b/demo/x11/Makefile @@ -2,7 +2,7 @@ BIN = zahnrad # Flags -CFLAGS += -std=c89 -Wall -Wextra -pedantic -Wno-unused-function -O2 +CFLAGS += -std=c89 -Wall -Wextra -pedantic -Wno-unused-function SRC = main.c OBJ = $(SRC:.c=.o) diff --git a/demo/x11_opengl2/Makefile b/demo/x11_opengl2/Makefile index e92437fd..aa35bfb8 100644 --- a/demo/x11_opengl2/Makefile +++ b/demo/x11_opengl2/Makefile @@ -6,7 +6,7 @@ CC = clang DCC = gcc # Flags -CFLAGS += -std=c89 -Wall -Wextra -pedantic -O2 +CFLAGS += -std=c89 -Wall -Wextra -pedantic SRC = main.c OBJ = $(SRC:.c=.o) diff --git a/demo/x11_opengl3/Makefile b/demo/x11_opengl3/Makefile index e92437fd..aa35bfb8 100644 --- a/demo/x11_opengl3/Makefile +++ b/demo/x11_opengl3/Makefile @@ -6,7 +6,7 @@ CC = clang DCC = gcc # Flags -CFLAGS += -std=c89 -Wall -Wextra -pedantic -O2 +CFLAGS += -std=c89 -Wall -Wextra -pedantic SRC = main.c OBJ = $(SRC:.c=.o) diff --git a/demo/x11_xft/Makefile b/demo/x11_xft/Makefile index 1ea53e67..5f3b7c96 100644 --- a/demo/x11_xft/Makefile +++ b/demo/x11_xft/Makefile @@ -2,7 +2,7 @@ BIN = zahnrad # Flags -CFLAGS += -std=c89 -Wall -Wextra -pedantic -Wno-unused-function -O2 +CFLAGS += -std=c89 -Wall -Wextra -pedantic -Wno-unused-function SRC = main.c OBJ = $(SRC:.c=.o) diff --git a/demo/xcb_cairo/Makefile b/demo/xcb_cairo/Makefile index c21ed9ba..c1dd635d 100644 --- a/demo/xcb_cairo/Makefile +++ b/demo/xcb_cairo/Makefile @@ -1,6 +1,6 @@ # Target BIN = demo -CFLAGS += -std=c89 -pedantic -O2 +CFLAGS += -std=c89 -pedantic LDFLAGS += -lm SRC = ${wildcard *.c} OBJ = $(SRC:.c=.o) diff --git a/doc/Makefile b/doc/Makefile index 967bd8fa..3740e24a 100644 --- a/doc/Makefile +++ b/doc/Makefile @@ -2,7 +2,7 @@ BIN = doc # Flags -CFLAGS += -std=c99 -pedantic -O2 +CFLAGS += -std=c99 -pedantic SRC = stddoc.c OBJ = $(SRC:.c=.o) diff --git a/example/Makefile b/example/Makefile index 1f24aea0..c6ea92fc 100644 --- a/example/Makefile +++ b/example/Makefile @@ -1,5 +1,5 @@ # Flags -CFLAGS += -std=c99 -Wall -Wextra -pedantic -Wno-misleading-indentation -Wno-shift-negative-value -O2 +CFLAGS += -std=c99 -Wall -Wextra -pedantic -Wno-misleading-indentation -Wno-shift-negative-value LIBS := ifeq ($(OS),Windows_NT) @@ -24,7 +24,7 @@ generate: clean ifeq ($(OS),Windows_NT) @mkdir bin 2> nul || exit 0 else - @mkdir -p bin + @mkdir -p bin endif clean: