Add config option for MarkerAPI to config.mk and integrate it in the build system

This commit is contained in:
Thomas Roehl
2019-03-14 17:11:28 +01:00
parent 3e1fe39dfe
commit e6958c8581
4 changed files with 15 additions and 2 deletions

View File

@@ -9,6 +9,7 @@ Q ?= @
#DO NOT EDIT BELOW
include $(MAKE_DIR)/config.mk
include $(MAKE_DIR)/include_$(TAG).mk
include $(MAKE_DIR)/include_LIKWID.mk
INCLUDES += -I./src/includes
VPATH = $(SRC_DIR)

View File

@@ -1,6 +1,7 @@
# Supported: GCC, CLANG, ICC
TAG ?= GCC
ENABLE_OPENMP ?= false
ENABLE_LIKWID ?= false
#Feature options
OPTIONS = -DSIZE=100000000ull

View File

@@ -5,8 +5,8 @@ ifeq ($(ENABLE_OPENMP),true)
OPENMP = -qopenmp
endif
CFLAGS = -DLIKWID -DLIKWID_PERFMON -Ofast -xHost -std=c99 -ffreestanding $(OPENMP) $(LIKWID_INC)
LFLAGS = $(OPENMP) $(LIKWID_LIB) -llikwid
CFLAGS = -Ofast -xHost -std=c99 -ffreestanding $(OPENMP)
LFLAGS = $(OPENMP)
DEFINES = -D_GNU_SOURCE
INCLUDES =
LIBS =

11
include_LIKWID.mk Normal file
View File

@@ -0,0 +1,11 @@
LIKWID_INC ?= -I/usr/local/include
LIKWID_DEFINES ?= -DLIKWID_PERFMON
LIKWID_LIB ?= -L/usr/local/lib
ifeq ($(strip $(ENABLE_LIKWID)),true)
INCLUDES += ${LIKWID_INC}
DEFINES += -DLIKWID ${LIKWID_DEFINES}
LIBS += -llikwid
LFLAGS += ${LIKWID_LIB}
endif