Starting from 2021-07-01, all LRZ GitLab users will be required to explicitly accept the GitLab Terms of Service. Please see the detailed information at https://doku.lrz.de/display/PUBLIC/GitLab and make sure that your projects conform to the requirements.

config.mk 1.13 KB
Newer Older
1
DCDBBASEPATH ?= $(realpath $(dir $(lastword $(MAKEFILE_LIST)))/..)
Michael Ott's avatar
Michael Ott committed
2 3
DCDBDEPSPATH ?= $(DCDBBASEPATH)/deps
DCDBDEPLOYPATH ?= $(DCDBBASEPATH)/install
4

5
# dcdbpusher plugins to be built
6
PLUGINS = procfs pdu sysfs opa ipmi bacnet snmp gpfsmon msr tester
7

8 9 10
# data analytics plugins to be built
OPERATORS = aggregator regressor job_aggregator testeroperator filesink smucngperf persystsql

Michael Ott's avatar
Michael Ott committed
11
DEFAULT_VERSION = 0.3
12 13
GIT_VERSION = $(shell git describe --tags 2>/dev/null|sed 's/-\([0-9]*\)/.\1/')
VERSION := $(if $(GIT_VERSION),$(GIT_VERSION),$(DEFAULT_VERSION))
Michael Ott's avatar
Michael Ott committed
14

15 16 17 18 19
CXXFLAGS = -std=c++11 -O2 -g -Wall -fmessage-length=0 \
           -DBOOST_DATE_TIME_POSIX_TIME_STD_CONFIG \
           -DBOOST_LOG_DYN_LINK -DVERSION=\"$(VERSION)\" \
           -Wno-unused-function \
           -Wno-unused-variable
20 21
FULL_CC = $(shell which $(CC))
FULL_CXX = $(shell which $(CXX))
22

Michael Ott's avatar
Michael Ott committed
23
OS = $(shell uname -s)
24 25
MAKETHREADS ?= $(if $(findstring $(shell uname),Darwin),$(shell sysctl machdep.cpu.thread_count | cut -b 27-),\
               $(if $(findstring $(shell uname),Linux),$(shell cat /proc/cpuinfo | grep processor | wc -l),4))
Alessio Netti's avatar
Alessio Netti committed
26 27 28 29
               
ifneq ($(OS),Darwin)
	PLUGINS += perfevent
endif
30