Conditional compilation of Eventify corrected
This commit is contained in:
parent
b83b868e33
commit
2930928469
6
Makefile
6
Makefile
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue