mirror of
https://git.jami.net/savoirfairelinux/jami-daemon.git
synced 2025-08-07 22:02:12 +08:00
33 lines
1.0 KiB
Makefile
33 lines
1.0 KiB
Makefile
# 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) \
|
|
-I$(src)/src \
|
|
-I$(src)/src/config \
|
|
-I$(src)/src/dbus \
|
|
-I$(src)/src/contacts \
|
|
-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
|