]> git.0d.be Git - empathy.git/blob - src/Makefile.am
Merge commit 'istaz/python-empathy-fix'
[empathy.git] / src / Makefile.am
1 include $(top_srcdir)/tools/shave.mk
2
3 AM_CPPFLAGS =                                           \
4         -I$(top_srcdir)                                 \
5         $(EMPATHY_CFLAGS)                               \
6         $(LIBNOTIFY_CFLAGS)                             \
7         $(WARN_CFLAGS)                                  \
8         $(DISABLE_DEPRECATED)
9
10 LDADD =                                                         \
11         $(top_builddir)/libempathy-gtk/libempathy-gtk.la        \
12         $(top_builddir)/libempathy/libempathy.la                \
13         $(top_builddir)/extensions/libemp-extensions.la         \
14         $(LIBNOTIFY_LIBS)                                       \
15         $(EMPATHY_LIBS)
16
17 bin_PROGRAMS =                  \
18         empathy                 \
19         empathy-logs
20
21 BUILT_SOURCES= \
22         empathy-tube-dispatch-enumtypes.h \
23         empathy-tube-dispatch-enumtypes.c
24
25 empathy_handwritten_source = \
26         empathy.c                                                       \
27         empathy-about-dialog.c empathy-about-dialog.h                   \
28         empathy-accounts-dialog.c empathy-accounts-dialog.h             \
29         empathy-call-window.c empathy-call-window.h                     \
30         empathy-call-window-fullscreen.c empathy-call-window-fullscreen.h                       \
31         empathy-chatrooms-window.c empathy-chatrooms-window.h           \
32         empathy-chat-window.c empathy-chat-window.h                     \
33         empathy-event-manager.c empathy-event-manager.h                 \
34         empathy-ft-manager.c empathy-ft-manager.h                       \
35         empathy-import-dialog.c empathy-import-dialog.h                 \
36         empathy-import-pidgin.c empathy-import-pidgin.h                 \
37         empathy-main-window.c empathy-main-window.h                     \
38         empathy-misc.c empathy-misc.h                                   \
39         empathy-new-chatroom-dialog.c empathy-new-chatroom-dialog.h     \
40         empathy-preferences.c empathy-preferences.h                     \
41         empathy-sidebar.c empathy-sidebar.h                     \
42         empathy-status-icon.c empathy-status-icon.h                     \
43         empathy-tube-dispatch.c empathy-tube-dispatch.h
44
45 empathy_SOURCES =                                                       \
46         $(empathy_handwritten_source)                                   \
47         bacon-message-connection.c bacon-message-connection.h           \
48         ephy-spinner.c ephy-spinner.h
49
50 nodist_empathy_SOURCES = $(BUILT_SOURCES)
51
52 empathy_logs_SOURCES = empathy-logs.c
53
54 check_c_sources = \
55     $(empathy_handwritten_source) \
56     $(empathy_logs_SOURCES)
57 include $(top_srcdir)/tools/check-coding-style.mk
58 check-local: check-coding-style
59
60 uidir = $(datadir)/empathy
61 ui_DATA =                                       \
62         empathy-accounts-dialog.ui              \
63         empathy-call-window.ui                  \
64         empathy-call-window-fullscreen.ui                       \
65         empathy-chatrooms-window.ui             \
66         empathy-chat-window.ui                  \
67         empathy-ft-manager.ui                   \
68         empathy-import-dialog.ui                \
69         empathy-main-window.ui                  \
70         empathy-new-chatroom-dialog.ui          \
71         empathy-preferences.ui                  \
72         empathy-status-icon.ui
73
74 dist_man_MANS =                 \
75         empathy.1
76
77 # rules for making the glib enum objects
78 %-enumtypes.h: %.h Makefile.in
79         $(QUIET_GEN)glib-mkenums \
80         --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" \
81         --fprod "/* enumerations from \"@filename@\" */\n" \
82         --vhead "GType @enum_name@_get_type (void);\n#define $(shell echo $* | tr [:lower:]- [:upper:]_ | sed 's/_.*//')_TYPE_@ENUMSHORT@ (@enum_name@_get_type())\n"         \
83         --ftail "G_END_DECLS\n\n#endif /* __$(shell echo $* | tr [:lower:]- [:upper:]_)_ENUM_TYPES_H__ */" \
84         $< > $@
85
86 %-enumtypes.c: %.h Makefile.in
87         $(QUIET_GEN)glib-mkenums \
88         --fhead "#include <$*.h>\n#include <$*-enumtypes.h>" \
89         --fprod "\n/* enumerations from \"@filename@\" */" \
90         --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[] = {"     \
91         --vprod "      { @VALUENAME@, \"@VALUENAME@\", \"@VALUENAME@\" }," \
92         --vtail "      { 0, NULL, NULL }\n    };\n    etype = g_@type@_register_static (\"@EnumName@\", values);\n  }\n  return etype;\n}\n" \
93         $< > $@
94
95 EXTRA_DIST =                    \
96         $(autostart_DATA)       \
97         $(ui_DATA)
98
99 CLEANFILES = $(BUILT_SOURCES)
100