demo: Disable compiler optimization

This commit is contained in:
Rob Loach 2024-09-30 13:38:02 -04:00
parent 0a28e3002b
commit 1f0bb39f60
No known key found for this signature in database
GPG Key ID: 627C60834A74A21A
18 changed files with 19 additions and 19 deletions

View File

@ -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)

View File

@ -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)

View File

@ -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)

View File

@ -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)

View File

@ -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)

View File

@ -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)

View File

@ -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)

View File

@ -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)

View File

@ -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)

View File

@ -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)

View File

@ -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)

View File

@ -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)

View File

@ -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)

View File

@ -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)

View File

@ -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)

View File

@ -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)

View File

@ -2,7 +2,7 @@
BIN = doc
# Flags
CFLAGS += -std=c99 -pedantic -O2
CFLAGS += -std=c99 -pedantic
SRC = stddoc.c
OBJ = $(SRC:.c=.o)

View File

@ -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)