Commit c0923ce4 authored by Michal 'vorner' Vaner's avatar Michal 'vorner' Vaner
Browse files

Tweak build system to include python2.7 options

Which can be turned off, because we don't want that for the clients.
parent 306a6289
......@@ -8,5 +8,6 @@ ASCIIDOC := asciidoc
AR := ar
MAX_LOG_LEVEL := LLOG_DEBUG_VERBOSE
PAGE_SIZE := $(shell getconf PAGE_SIZE)
ENABLE_PYTHON := 1
include $(S)/Makefile.dir
......@@ -33,6 +33,9 @@ ifdef LOGIN_PASSWD_HALF
else
CFLAGS += -DPASSWD_HALF='{0}'
endif
ifeq ($(ENABLE_PYTHON), 1)
CFLAGS += $(shell python2.7-config --includes)
endif
CFLAGS_ALL += $(CFLAGS) --std=gnu99 -pedantic -Wall -Wextra -DOUTPUT_DIRECTORY=\"$(abspath $(O))\" -DSOURCE_DIRECTORY=\"$(abspath $(S))\" -DPAGE_SIZE=$(PAGE_SIZE) -DPREFIX=$(abspath $(O)) -DMAX_LOG_LEVEL=$(MAX_LOG_LEVEL) -DPLUGIN_PATH=\"$(PLUGIN_PATH)\" $(addprefix,-D,$(EXTRA_DEFINES))
LDFLAGS_ALL += $(LDFLAGS)
......
SCRIPTS += src/master/collectmaster
DOCS += src/master/collectmaster
LIBRARIES += src/master/atsha204
collectmaster_SOURCE = collect-master.py
atsha204_MODULES := atsha204
ifneq (,$(findstring ^$(RESTRICT),^src/master))
clean: clean-master
endif
......
#include "Python.h"
......@@ -8,7 +8,7 @@ from client import ClientFactory
from plugin import Plugins
import master_config
import importlib
import atsha204
severity = master_config.get('log_severity')
if severity == 'TRACE':
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment