From f43e3ea5e9a3ea6e82d7e4d36d80e02d1686025d Mon Sep 17 00:00:00 2001 From: vurtun Date: Sat, 12 Dec 2015 15:57:56 +0100 Subject: [PATCH] uses higher default compiler optimization #30 --- demo/glfw/Makefile | 2 +- demo/linuxgl/Makefile | 2 +- demo/nanovg/Makefile | 2 +- demo/sdl/Makefile | 2 +- demo/x11/Makefile | 2 +- example/demo/Makefile | 2 +- example/filex/Makefile | 10 +--------- example/nodedit/Makefile | 2 +- 8 files changed, 8 insertions(+), 16 deletions(-) diff --git a/demo/glfw/Makefile b/demo/glfw/Makefile index 53299f3..73ce6d7 100644 --- a/demo/glfw/Makefile +++ b/demo/glfw/Makefile @@ -6,7 +6,7 @@ CC = clang DCC = gcc # Flags -CFLAGS = -std=c89 -pedantic +CFLAGS = -std=c89 -pedantic -O2 SRC = ../../zahnrad.c glfw.c OBJ = $(SRC:.c=.o) diff --git a/demo/linuxgl/Makefile b/demo/linuxgl/Makefile index fba50ae..4e74fce 100644 --- a/demo/linuxgl/Makefile +++ b/demo/linuxgl/Makefile @@ -6,7 +6,7 @@ CC = clang DCC = gcc # Flags -CFLAGS = -std=c89 -pedantic +CFLAGS = -std=c89 -pedantic -O2 SRC = linuxgl.c ../../zahnrad.c OBJ = $(SRC:.c=.o) diff --git a/demo/nanovg/Makefile b/demo/nanovg/Makefile index c7dce5a..8aab411 100644 --- a/demo/nanovg/Makefile +++ b/demo/nanovg/Makefile @@ -5,7 +5,7 @@ BIN = zahnrad CC = clang DCC = gcc -CFLAGS = -std=c99 +CFLAGS = -std=c99 -O2 SRC = nanovg.c ../../zahnrad.c OBJ = $(SRC:.c=.o) diff --git a/demo/sdl/Makefile b/demo/sdl/Makefile index cbf837f..7a4fcb6 100644 --- a/demo/sdl/Makefile +++ b/demo/sdl/Makefile @@ -6,7 +6,7 @@ CC = clang DCC = gcc # Flags -CFLAGS = -std=c89 -pedantic +CFLAGS = -std=c89 -pedantic -O2 SRC = ../../zahnrad.c sdl.c OBJ = $(SRC:.c=.o) diff --git a/demo/x11/Makefile b/demo/x11/Makefile index 85aa8ac..f5dcdc0 100644 --- a/demo/x11/Makefile +++ b/demo/x11/Makefile @@ -6,7 +6,7 @@ CC = clang DCC = gcc # Flags -CFLAGS = -std=c89 -pedantic +CFLAGS = -std=c89 -pedantic -O2 SRC = xlib.c ../../zahnrad.c OBJ = $(SRC:.c=.o) diff --git a/example/demo/Makefile b/example/demo/Makefile index 2cd51d9..a2b54f0 100644 --- a/example/demo/Makefile +++ b/example/demo/Makefile @@ -4,7 +4,7 @@ BIN = demo CC = clang DCC = gcc -CFLAGS = -std=c99 +CFLAGS = -std=c99 -O2 SRC = demo.c ../../zahnrad.c OBJ = $(SRC:.c=.o) diff --git a/example/filex/Makefile b/example/filex/Makefile index 359a3ef..fbde3e7 100644 --- a/example/filex/Makefile +++ b/example/filex/Makefile @@ -4,15 +4,7 @@ BIN = filex CC = clang DCC = gcc -CFLAGS = -std=c99 -pedantic -Wdeprecated-declarations -CFLAGS += -g -Wall -Wextra -Wformat-security -Wunreachable-code -CFLAGS += -fstack-protector-strong -Winline -Wshadow -Wwrite-strings -fstrict-aliasing -CFLAGS += -Wstrict-prototypes -Wold-style-definition -Wconversion -Wfloat-equal -CFLAGS += -Wredundant-decls -Wnested-externs -Wmissing-include-dirs -CFLAGS += -Wshadow -Wcast-qual -Wcast-align -Wmissing-prototypes -Wconversion -CFLAGS += -Wswitch-default -Wundef -Wno-unused -Wstrict-overflow=5 -Wsign-conversion -CFLAGS += -Winit-self -Wstrict-aliasing -ftrapv -Wpointer-arith -CFLAGS += -Wswitch-enum -Winvalid-pch -Wbad-function-cast -fno-omit-frame-pointer +CFLAGS = -std=c99 -pedantic -O2 SRC = filex.c ../../zahnrad.c OBJ = $(SRC:.c=.o) diff --git a/example/nodedit/Makefile b/example/nodedit/Makefile index edd4c7d..542186b 100644 --- a/example/nodedit/Makefile +++ b/example/nodedit/Makefile @@ -5,7 +5,7 @@ BIN = nodedit CC = clang DCC = gcc -CFLAGS = -std=c99 -pedantic +CFLAGS = -std=c99 -pedantic -O2 SRC = nodedit.c ../../zahnrad.c OBJ = $(SRC:.c=.o)