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
|
||||
SRC_DIR := .
|
||||
#CFLAGS := -Og -g -rdynamic -pg -ggdb3 -D__DEBUG
|
||||
CFLAGS := -O2
|
||||
CFLAGS := $(CFLAGS) -Wall -Wextra -Wno-error=unused-function -pedantic
|
||||
CFLAGS := -O4
|
||||
CFLAGS := $(CFLAGS) -Wall -Werror -Wextra -Wno-error=unused-function -pedantic
|
||||
EXEC := $(OBJ_DIR)/data
|
||||
SRC := $(wildcard $(SRC_DIR)/*.cpp)
|
||||
HEADER := $(wildcard $(SRC_DIR)/*.hpp)
|
||||
@ -33,7 +33,7 @@ start: $(EXEC)
|
||||
@./$(EXEC)
|
||||
|
||||
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
|
||||
@gdb -q -tui $(EXEC)
|
||||
|
Loading…
x
Reference in New Issue
Block a user