diff --git a/Makefile b/Makefile index 8812d1b..7bea2d1 100644 --- a/Makefile +++ b/Makefile @@ -1,19 +1,21 @@ CXX ?= g++ OPTFLAGS ?= -O3 -march=native VECTOR_SIZE ?= 268435456 -ENABLE_EVENTIFY ?= YES +ENABLE_EVENTIFY ?= YES +CXXFLAGS = -std=c++20 -fopenmp CPPFLAGS = -DVECTOR_SIZE=$(VECTOR_SIZE) INCLUDES = -I./include -CXXFLAGS = $(CPPFLAGS) -std=c++20 -fopenmp $(INCLUDES) $(OPTFLAGS) LDFLAGS = -fopenmp -ifeq ($(ENABLE_EVENTIFY), "YES") +ifeq ($(ENABLE_EVENTIFY), YES) CPPFLAGS += -DENABLE_EVENTIFY INCLUDES += -I$(EVENTIFY_ROOT)/include LDFLAGS += -L$(EVENTIFY_ROOT)/lib -leventify endif +CXXFLAGS += $(CPPFLAGS) $(INCLUDES) $(OPTFLAGS) + SRC_DIR = src INCLUDE_DIR = include OBJ_DIR = obj