update variable matching c standard

This commit is contained in:
Mylloon 2022-11-13 17:37:34 +01:00
parent e0e9557e71
commit ef67ea5483
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -1,5 +1,5 @@
CXX = gcc CC = gcc
CXXFLAGS = -std=c99 -pedantic CFLAGS = -std=c99 -pedantic
RM = rm RM = rm
SOURCES = $(wildcard src/*.c) SOURCES = $(wildcard src/*.c)
@ -8,16 +8,16 @@ OBJETS = $(patsubst %.c,%.c.o,$(notdir $(SOURCES)))
EXE = othello EXE = othello
%.c.o: src/%.c %.c.o: src/%.c
$(CXX) -c -o $@ $< $(CXXFLAGS) $(DEVFLAGS) $(CC) -c -o $@ $< $(CFLAGS) $(DEVFLAGS)
main: CXXFLAGS += -O3 main: CFLAGS += -O3
main: compilation main: compilation
dev: CXXFLAGS += -Wall -Wextra -Wshadow -Wcast-align -Wstrict-prototypes -fanalyzer -fsanitize=undefined -g dev: CFLAGS += -Wall -Wextra -Wshadow -Wcast-align -Wstrict-prototypes -fanalyzer -fsanitize=undefined -g
dev: compilation dev: compilation
compilation: $(OBJETS) compilation: $(OBJETS)
$(CXX) -o $(EXE) $(OBJETS) $(CC) -o $(EXE) $(OBJETS)
all: all:
main main