Makefile : raised optimization level to O4
This commit is contained in:
parent
8058fac200
commit
e4d6ee79ff
6
Makefile
6
Makefile
@ -2,8 +2,8 @@ CC := g++ -m64 -std=c++17
|
|||||||
OBJ_DIR := bin
|
OBJ_DIR := bin
|
||||||
SRC_DIR := .
|
SRC_DIR := .
|
||||||
#CFLAGS := -Og -g -rdynamic -pg -ggdb3 -D__DEBUG
|
#CFLAGS := -Og -g -rdynamic -pg -ggdb3 -D__DEBUG
|
||||||
CFLAGS := -O2
|
CFLAGS := -O4
|
||||||
CFLAGS := $(CFLAGS) -Wall -Wextra -Wno-error=unused-function -pedantic
|
CFLAGS := $(CFLAGS) -Wall -Werror -Wextra -Wno-error=unused-function -pedantic
|
||||||
EXEC := $(OBJ_DIR)/data
|
EXEC := $(OBJ_DIR)/data
|
||||||
SRC := $(wildcard $(SRC_DIR)/*.cpp)
|
SRC := $(wildcard $(SRC_DIR)/*.cpp)
|
||||||
HEADER := $(wildcard $(SRC_DIR)/*.hpp)
|
HEADER := $(wildcard $(SRC_DIR)/*.hpp)
|
||||||
@ -33,7 +33,7 @@ start: $(EXEC)
|
|||||||
@./$(EXEC)
|
@./$(EXEC)
|
||||||
|
|
||||||
profile: start | check-gprof-works check-gprof2dot-works
|
profile: start | check-gprof-works check-gprof2dot-works
|
||||||
@gprof $(EXEC) gmon.out | gprof2dot | dot -Tpng -o output.png
|
@gprof $(EXEC) gmon.out | gprof2dot | dot -T png -o output.png
|
||||||
|
|
||||||
debug: $(EXEC) | check-gdb-works
|
debug: $(EXEC) | check-gdb-works
|
||||||
@gdb -q -tui $(EXEC)
|
@gdb -q -tui $(EXEC)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user