summaryrefslogtreecommitdiff
path: root/src/Makefile.am
blob: 217df6f966dcc83937eb4f6421165ef838a2c7fb (plain)
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
include $(top_srcdir)/tools/shave.mk
include $(top_srcdir)/tools/flymake.mk

AM_CPPFLAGS =						\
	$(ERROR_CFLAGS)					\
	-I$(top_srcdir)					\
	-DG_LOG_DOMAIN=\"TPLogger\"			\
	$(LIBTPL_CFLAGS)				\
	$(TPL_CFLAGS)					\
	$(DISABLE_DEPRECATED)				\
	$(WARN_CFLAGS)


# TODO removeme: kludge to let the compilation work, or it doesn't know how to buld the lib
#$(top_builddir)/telepathy-logger/libtelepathy-logger.la:
#	$(MAKE) -C $(top_builddir)/libtelepathy-logger libtelepathy-logger.la


bin_PROGRAMS = \
		telepathy-logger	\
		test-api

telepathy_logger_LDADD = \
	$(top_builddir)/telepathy-logger/libtelepathy-logger.la \
	$(top_builddir)/extensions/libtpl-extensions.la \
	$(LIBTPL_LIBS)

test_api_LDADD = \
	$(top_builddir)/telepathy-logger/libtelepathy-logger.la \
	$(top_builddir)/extensions/libtpl-extensions.la \
	$(LIBTPL_LIBS)


check_c_sources = \
	$(test_api_SOURCES)			\
	$(telepathy_logger_SOURCES)		\
	$(telepathy_logger_dbus_SOURCES)
include $(top_srcdir)/tools/check-coding-style.mk
check-local: check-coding-style

CLEANFILES = $(BUILT_SOURCES) $(bin_PROGRAMS)

# Dbus service file
#servicedir = $(DBUS_SERVICES_DIR)
#service_in_files = \
#	org.freedesktop.Telepathy.TelepathyLoggerService.service.in	\
#	org.freedesktop.Telepathy.Client.TelepathyLogger.service.in
#service_DATA = \
#	$(service_in_files:.service.in=.service) \
#	org.freedesktop.Telepathy.Client.TelepathyLogger.client
#
## Rule to make the service file with bindir expanded
#%.service: %.service.in
#	sed -e "s|%bindir%|$(bindir)|" $< > $@