From 2930928469be9a297b9930d8145424ec206df04c Mon Sep 17 00:00:00 2001 From: Patrick Lipka Date: Mon, 16 Dec 2024 14:28:21 +0100 Subject: [PATCH] Conditional compilation of Eventify corrected --- Makefile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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