mirror of https://github.com/sipwise/sems.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
67 lines
1.4 KiB
67 lines
1.4 KiB
#!/usr/bin/make -f
|
|
# -*- makefile -*-
|
|
|
|
# Uncomment this to turn on verbose mode.
|
|
export DH_VERBOSE = 1
|
|
|
|
EXCLUDED_MODULES = \
|
|
conf_auth \
|
|
examples/db_announce \
|
|
fast_ack \
|
|
gateway \
|
|
ivr \
|
|
mailbox \
|
|
mp3 \
|
|
pin_collect \
|
|
twit \
|
|
webconference \
|
|
# EOL
|
|
EXCLUDED_DSM_MODULES = \
|
|
mod_aws \
|
|
mod_py \
|
|
# EOL
|
|
EXCLUDED_DSM_PY_MODULES = \
|
|
mod_aws \
|
|
mod_py \
|
|
# EOL
|
|
|
|
export DEB_CPPFLAGS_APPEND = -DHAVE_XMLRPCPP_SSL
|
|
|
|
export APP_NAME = ngcp-sems
|
|
export PYTHON_VERSION = 3
|
|
export SYSTEM_SAMPLECLOCK_RATE = 48000LL
|
|
export LONG_DEBUG_MESSAGE = yes
|
|
export USE_THREADPOOL = yes
|
|
export USE_SPANDSP = yes
|
|
|
|
|
|
# Enable parallel builds for overrides.
|
|
NUMJOBS = 1
|
|
ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
|
|
NUMJOBS = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
|
|
MAKEFLAGS += -j$(NUMJOBS)
|
|
endif
|
|
|
|
%:
|
|
dh $@
|
|
|
|
override_dh_auto_build:
|
|
$(MAKE) \
|
|
cfg_target=/etc/$(APP_NAME)/ prefix=/usr \
|
|
exclude_app_modules="$(EXCLUDED_MODULES)" \
|
|
exclude_dsm_modules="$(EXCLUDED_DSM_MODULES)" \
|
|
DESTDIR=$(CURDIR)/debian/$(APP_NAME)
|
|
|
|
override_dh_auto_install:
|
|
$(MAKE) -C core/ install \
|
|
DESTDIR=$(CURDIR)/debian/$(APP_NAME) \
|
|
prefix=/usr \
|
|
cfg_target=/etc/$(APP_NAME)/
|
|
|
|
$(MAKE) -C apps/ install \
|
|
exclude_app_modules="$(EXCLUDED_MODULES) $(PYTHON_MODULES)" \
|
|
exclude_dsm_modules="$(EXCLUDED_DSM_PY_MODULES)" \
|
|
DESTDIR=$(CURDIR)/debian/$(APP_NAME) \
|
|
prefix=/usr \
|
|
cfg_target=/etc/$(APP_NAME)/
|