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 d792fa2..669cda1 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 9ac6b10..91789f4 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 7c94f3d..35a9c65 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 7c94f3d..35a9c65 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 57675fd..e738e13 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 10bb4a7..c927c47 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 64f1af3..1f02640 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 fb3acd2..b64e3ad 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 41d080e..2610068 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 e648706..8c0d2a4 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 7bb9712..31de19b 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 1234eaf..b2beba5 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 e92437f..aa35bfb 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 e92437f..aa35bfb 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 1ea53e6..5f3b7c9 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 c21ed9b..c1dd635 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 967bd8f..3740e24 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 1f24aea..c6ea92f 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: