-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
17 lines (12 loc) · 723 Bytes
/
Copy pathMakefile
File metadata and controls
17 lines (12 loc) · 723 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
PEDANTIC_FLAGS = -O2 -std=c++17 -Wl,--stack=268435456 -g -Wall -Wextra -pedantic -Wshadow -Wformat=2 -Wfloat-equal -Wconversion -Wlogical-op -Wshift-overflow=2 -Wduplicated-cond -Wcast-qual -Wcast-align -D_GLIBCXX_DEBUG -D_GLIBCXX_DEBUG_PEDANTIC -D_FORTIFY_SOURCE=2 -fstack-protector -Wno-unused-parameter -Wno-unused-variable -Wno-variadic-macros
NORMAL_FLAGS = -O2 -std=c++17 -Wl,--stack=268435456 -ftree-vectorize -fopt-info-vec -Wshadow
#NORMAL_FLAGS =-O2 -std=c++17 -ftree-vectorize -fopt-info-vec
LOCAL_FLAGS = -DLOCAL
D ?= 0
ifeq ($(D), 1)
CXXFLAGS = $(LOCAL_FLAGS) $(PEDANTIC_FLAGS)
else
CXXFLAGS = $(LOCAL_FLAGS) $(NORMAL_FLAGS)
endif
clean:
find . -maxdepth 1 -type f -executable -delete