update variable matching c standard
This commit is contained in:
parent
e0e9557e71
commit
ef67ea5483
1 changed files with 10 additions and 10 deletions
12
Makefile
12
Makefile
|
@ -1,5 +1,5 @@
|
|||
CXX = gcc
|
||||
CXXFLAGS = -std=c99 -pedantic
|
||||
CC = gcc
|
||||
CFLAGS = -std=c99 -pedantic
|
||||
RM = rm
|
||||
|
||||
SOURCES = $(wildcard src/*.c)
|
||||
|
@ -8,16 +8,16 @@ OBJETS = $(patsubst %.c,%.c.o,$(notdir $(SOURCES)))
|
|||
EXE = othello
|
||||
|
||||
%.c.o: src/%.c
|
||||
$(CXX) -c -o $@ $< $(CXXFLAGS) $(DEVFLAGS)
|
||||
$(CC) -c -o $@ $< $(CFLAGS) $(DEVFLAGS)
|
||||
|
||||
main: CXXFLAGS += -O3
|
||||
main: CFLAGS += -O3
|
||||
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
|
||||
|
||||
compilation: $(OBJETS)
|
||||
$(CXX) -o $(EXE) $(OBJETS)
|
||||
$(CC) -o $(EXE) $(OBJETS)
|
||||
|
||||
all:
|
||||
main
|
||||
|
|
Reference in a new issue