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