-
Fix build flags for two directories, clean globals. Change-Id: I2c2fb1fd7f73c8097de05f641ad3e71ccbabd965 Reviewed-by:
Sebastien Blin <sebastien.blin@savoirfairelinux.com>
Fix build flags for two directories, clean globals. Change-Id: I2c2fb1fd7f73c8097de05f641ad3e71ccbabd965 Reviewed-by:
Sebastien Blin <sebastien.blin@savoirfairelinux.com>
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
globals.mk 846 B
# Global variables
src=$(abs_top_srcdir)
ringlibdir=$(DESTDIR)$(libdir)/ring
ASTYLERC="$(top_srcdir)/../astylerc"
indent="/usr/bin/astyle"
RING_DIRTY_REPO ?= $(shell git diff-index --quiet HEAD 2>/dev/null || echo dirty)
RING_REVISION ?= $(shell git log -1 --format="%h" --abbrev=10 2>/dev/null)
# Preprocessor flags
AM_CPPFLAGS = \
-I$(src)/src \
-I$(src)/src/config \
-I$(src)/src/media \
-I$(src)/test \
-I$(src)/src/dring \
$(SIP_CFLAGS) \
-DPREFIX=\"$(prefix)\" \
-DPROGSHAREDIR=\"${datadir}/ring\" \
-DENABLE_TRACE \
-DRING_REVISION=\"$(RING_REVISION)\" \
-DRING_DIRTY_REPO=\"$(RING_DIRTY_REPO)\" \
-DPJSIP_MAX_PKT_LEN=8000 \
-DPJ_AUTOCONF=1
indent:
@echo "Indenting code:"
if [ -f $(ASTYLERC) ] ; then \
find $(top_srcdir)/src/ -name \*.cpp -o -name \*.h | xargs $(indent) --options=$(ASTYLERC) ; \
fi