globals.mak 1.61 KB
Newer Older
1
# Global variables
Julien Bonjean's avatar
Julien Bonjean committed
2 3 4

CXXFLAGS=-Wall -Werror -Wextra

5
src=$(top_srcdir)
6 7 8
sfllibdir=$(DESTDIR)$(libdir)/sflphone
sflcodecdir=$(sfllibdir)/codecs
sflplugindir=$(sfllibdir)/plugins
9

10 11 12
ASTYLERC="../astylerc"
indent="/usr/bin/astyle"

13 14
# for pjsip
PJSIP_LIBS= \
15 16 17 18 19
			-L$(src)/libs/pjproject/pjnath/lib/ \
			-L$(src)/libs/pjproject/pjsip/lib/ \
			-L$(src)/libs/pjproject/pjlib/lib/ \
			-L$(src)/libs/pjproject/pjlib-util/lib/ \
			-L$(src)/libs/pjproject/pjmedia/lib/ \
20 21 22 23 24 25 26 27 28
			-lpjnath-$(target) \
			-lpjsua-$(target) \
			-lpjsip-$(target) \
			-lpjmedia-$(target) \
			-lpjsip-simple-$(target) \
			-lpjsip-ua-$(target) \
			-lpjmedia-codec-$(target) \
			-lpjlib-util-$(target) \
			-lpj-$(target) 
29

30 31 32 33 34
SIP_CFLAGS=-I$(src)/libs/pjproject/pjsip/include \
		   -I$(src)/libs/pjproject/pjlib/include \
		   -I$(src)/libs/pjproject/pjlib-util/include \
		   -I$(src)/libs/pjproject/pjmedia/include \
		   -I$(src)/libs/pjproject/pjnath/include
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54

DBUSCPP_CFLAGS=$(top_srcdir)/libs/dbus-c++/include/dbus-c++

if BUILD_SPEEX
SPEEXCODEC=-DHAVE_SPEEX_CODEC
else
SPEEXCODEC= 
endif

if BUILD_GSM
GSMCODEC=-DHAVE_GSM_CODEC
else
GSMCODEC= 
endif

# Preprocessor flags
AM_CPPFLAGS = \
	-I$(src)/libs \
	-I$(src)/libs/dbus-c++/include \
	-I$(src)/libs/iax2 \
55
	-I$(src)/libs/pjproject \
56
	-I$(src)/src \
57
	-I$(src)/src/config \
58 59 60 61
	-I$(src)/test \
	-DPREFIX=\"$(prefix)\" \
	-DPROGSHAREDIR=\"${datadir}/sflphone\" \
	$(ZEROCONFFLAGS) \
Alexandre Savard's avatar
Alexandre Savard committed
62 63 64
	$(GSTREAMER_CFLAGS) \
	$(LIBAVCODEC_CFLAGS) \
	$(LIBSWSCALE_CFLAGS) \
65
	$(IAX_FLAGS) \
66
	$(SIP_CFLAGS) \
67 68 69 70 71
	-DCODECS_DIR=\""$(sflcodecdir)"\" \
	-DPLUGINS_DIR=\""$(sflplugindir)"\" \
	-DENABLE_TRACE \
         $(SPEEXCODEC) \
         $(GSMCODEC)