Conditional compilation of Eventify corrected

This commit is contained in:
Patrick Lipka 2024-12-16 14:28:21 +01:00
parent b83b868e33
commit 2930928469
1 changed files with 5 additions and 3 deletions

View File

@ -3,17 +3,19 @@ OPTFLAGS ?= -O3 -march=native
VECTOR_SIZE ?= 268435456
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