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

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