File: globals.mak

package info (click to toggle)
sflphone 1.1.0-2
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 21,048 kB
  • sloc: ansic: 159,647; cpp: 27,067; sh: 11,765; xml: 4,420; makefile: 1,500; python: 654; asm: 46
file content (34 lines) | stat: -rw-r--r-- 1,133 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Global variables
src = $(top_srcdir)

ASTYLERC="$(top_srcdir)/../astylerc"
indent="/usr/bin/astyle"

sfllibdir=$(DESTDIR)$(libdir)/sflphone
sflplugindir=$(sfllibdir)/plugins

# Preprocessor flags
AM_CPPFLAGS =		$(DEPS_CFLAGS)										\
					$(LIBSEXY_CFLAGS)									\
					-I$(src)/src										\
					-I$(src)/src/config									\
					-I$(src)/src/dbus									\
					-I$(src)/src/contacts								\
					-I$(src)/src/addressbook							\
					-DDATA_DIR=\""$(prefix)/share/sflphone"\"			\
					-DICONS_DIR=\""$(prefix)/share/sflphone"\"			\
					-DCODECS_DIR=\""$(prefix)/lib/sflphone/codecs"\"	\
					-DPREFIX=\"$(prefix)\"								\
					-DENABLE_TRACE										\
					-DPREFIX=\""$(prefix)"\"							\
					-DSYSCONFDIR=\""$(sysconfdir)"\"					\
					-DDATADIR=\""$(datadir)"\"							\
					-DLIBDIR=\""$(libdir)"\"							\
					-DLOCALEDIR=\""$(localedir)"\"							\
					-DSFLPHONE_UIDIR=\""$(datadir)/sflphone/ui"\" \
					-DPLUGINS_DIR=\""$(sflplugindir)"\"
indent:
	@echo "Indenting code:"
	if [ -f $(ASTYLERC) ] ; then \
		find $(top_srcdir)/src/ -regex ".*\.\(h\|c\)" -exec $(indent) --options=$(ASTYLERC) {} \; ; \
	fi