2.12.2021, 9:00 - 11:00: Due to updates GitLab may be unavailable for some minutes between 09:00 and 11:00.

config.mk 1.21 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 = sysfs ipmi pdu bacnet snmp procfs tester gpfsmon msr rest
7

8
# data analytics plugins to be built
9
OPERATORS = aggregator smoothing regressor classifier clustering cssignatures job_aggregator testeroperator filesink smucngperf persystsql coolingcontrol healthchecker
10

Michael Ott's avatar
Michael Ott committed
11
DEFAULT_VERSION = 0.4
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