File: Makefile.am

package info (click to toggle)
telepathy-rakia 0.8.0-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, jessie, jessie-kfreebsd, sid, stretch
  • size: 3,028 kB
  • ctags: 1,720
  • sloc: sh: 11,552; ansic: 9,892; python: 4,532; makefile: 421; xml: 15
file content (103 lines) | stat: -rw-r--r-- 3,421 bytes parent folder | download
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
#
# Makefile.am for telepathy-rakia/src
#
# Copyright (C) 2006-2009 Nokia Corporation
# Contact: Mikhail Zabaluev <mikhail.zabaluev@nokia.com>
# Licensed under LGPL. See file COPYING.
#

# ----------------------------------------------------------------------
# Automake options

managerdir = $(datadir)/telepathy/managers

# ----------------------------------------------------------------------
# Headers and libraries

AM_CPPFLAGS = $(DBUS_CFLAGS) $(GLIB_CFLAGS) $(SOFIA_SIP_UA_CFLAGS) \
	$(TELEPATHY_GLIB_CFLAGS) $(IPHB_CFLAGS) \
	-I$(top_builddir) -I$(top_srcdir) \
	-DG_LOG_DOMAIN=\"rakia\"
AM_CFLAGS = $(ERROR_CFLAGS) $(COVERAGE_CFLAGS)
AM_LDFLAGS = $(ERROR_LDFLAGS)
ALL_LIBS = $(DBUS_LIBS) $(GLIB_LIBS) $(SOFIA_SIP_UA_LIBS) \
	$(TELEPATHY_GLIB_LIBS) $(IPHB_LIBS)

# ----------------------------------------------------------------------
# Build targets

libexec_PROGRAMS = telepathy-rakia
manager_DATA = rakia.manager
noinst_PROGRAMS = write-mgr-file
noinst_LTLIBRARIES = librakia-convenience.la

# ----------------------------------------------------------------------
# Tests

# ----------------------------------------------------------------------
# Rules for building the targets

# rules for makeing the glib enum objects
%-enumtypes.h: %.h
	glib-mkenums \
	--fhead "#ifndef __$(shell echo $* | tr [:lower:]- [:upper:]_)_ENUM_TYPES_H__\n#define __$(shell echo $* | tr [:lower:]- [:upper:]_)_ENUM_TYPES_H__\n\n#include <glib-object.h>\n\nG_BEGIN_DECLS\n" \
	--fprod "/* enumerations from \"@filename@\" */\n" \
	--vhead "GType @enum_name@_get_type (void);\n#define RAKIA_TYPE_@ENUMSHORT@ (@enum_name@_get_type())\n"         \
	--ftail "G_END_DECLS\n\n#endif /* __$(shell echo $* | tr [:lower:]- [:upper:]_)_ENUM_TYPES_H__ */" \
	$< > $@ || rm -f $@

%-enumtypes.c: %.h
	glib-mkenums \
	--fhead "#include <$*-enumtypes.h>\n#include <$*.h>" \
	--fprod "\n/* enumerations from \"@filename@\" */" \
	--vhead "GType\n@enum_name@_get_type (void)\n{\n  static GType etype = 0;\n  if (etype == 0) {\n    static const G@Type@Value values[] = {"     \
	--vprod "      { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
	--vtail "      { 0, NULL, NULL }\n    };\n    etype = g_@type@_register_static (\"@EnumName@\", values);\n  }\n  return etype;\n}\n" \
	$< > $@ || rm -f $@

rakia.manager: write-mgr-file
	if ./write-mgr-file > $@.tmp; then \
		mv -f $@.tmp $@;\
	else \
		rm -f $@.tmp; \
	fi

BUILT_SOURCES = \
		sip-connection-enumtypes.h \
		sip-connection-enumtypes.c

librakia_convenience_la_SOURCES = \
    sip-connection.h \
    sip-connection.c \
    sip-connection-manager.h \
    sip-connection-manager.c \
    protocol.h \
    protocol.c \
    sip-connection-helpers.h \
    sip-connection-helpers.c \
    sip-connection-private.h

nodist_librakia_convenience_la_SOURCES = \
    $(BUILT_SOURCES)

librakia_convenience_la_LIBADD = \
    $(top_builddir)/rakia/librakia.la \
    $(top_builddir)/extensions/librakia-extensions.la

telepathy_rakia_SOURCES = \
    telepathy-rakia.c 

telepathy_rakia_LDADD = librakia-convenience.la $(ALL_LIBS)

write_mgr_file_SOURCES = \
    write-mgr-file.c 

write_mgr_file_LDADD = librakia-convenience.la $(ALL_LIBS)

# ----------------------------------------------------------------------
# Install and distribution rules

# Correctly clean the generated headers, but keep the xml description
CLEANFILES = $(BUILT_SOURCES) $(manager_DATA)
CLEANFILES += *.gcda *.gcno