globals.mak 747 Bytes
Newer Older
1
# Global variables
Julien Bonjean's avatar
Julien Bonjean committed
2

Rafaël Carré's avatar
Rafaël Carré committed
3
src=$(abs_top_srcdir)
4
ringlibdir=$(DESTDIR)$(libdir)/ring
5

6
ASTYLERC="$(top_srcdir)/../astylerc"
7
indent="/usr/bin/astyle"
8 9 10 11 12

if BUILD_SPEEX
SPEEXCODEC=-DHAVE_SPEEX_CODEC
endif

13 14 15 16
if BUILD_OPUS
OPUSCODEC=-DHAVE_OPUS
endif

17 18 19 20 21 22 23
if BUILD_GSM
GSMCODEC=-DHAVE_GSM_CODEC
endif

# Preprocessor flags
AM_CPPFLAGS = \
	-I$(src)/src \
24
	-I$(src)/src/config \
25
	-I$(src)/src/media \
26
	-I$(src)/test \
27
	-I$(src)/src/dring \
28
	$(SIP_CFLAGS) \
29
	-DPREFIX=\"$(prefix)\" \
Adrien Béraud's avatar
Adrien Béraud committed
30
	-DPROGSHAREDIR=\"${datadir}/ring\" \
31
	-DENABLE_TRACE \
32 33 34
	$(SPEEXCODEC) \
	$(GSMCODEC) \
	$(OPUSCODEC)
35 36 37 38 39


indent:
	@echo "Indenting code:"
	if [ -f $(ASTYLERC) ] ; then \
40
                find $(top_srcdir)/src/ -name \*.cpp -o -name \*.h | xargs $(indent) --options=$(ASTYLERC) ; \
41
	fi