]> git.0d.be Git - empathy.git/blob - src/Makefile.am
Merge branch 'tp-tube'
[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_SOURCES =                                                       \
26         bacon-message-connection.c bacon-message-connection.h           \
27         empathy.c                                                       \
28         empathy-about-dialog.c empathy-about-dialog.h                   \
29         empathy-accounts-dialog.c empathy-accounts-dialog.h             \
30         empathy-call-window.c empathy-call-window.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         ephy-spinner.c ephy-spinner.h
45
46 nodist_empathy_SOURCES = $(BUILT_SOURCES)
47
48 empathy_logs_SOURCES = empathy-logs.c
49
50 uidir = $(datadir)/empathy
51 ui_DATA =                                       \
52         empathy-accounts-dialog.ui              \
53         empathy-call-window.ui                  \
54         empathy-chatrooms-window.ui             \
55         empathy-chat-window.ui                  \
56         empathy-ft-manager.ui                   \
57         empathy-import-dialog.ui                \
58         empathy-main-window.ui                  \
59         empathy-new-chatroom-dialog.ui          \
60         empathy-preferences.ui                  \
61         empathy-status-icon.ui
62
63 dist_man_MANS =                 \
64         empathy.1
65
66 # rules for making the glib enum objects
67 %-enumtypes.h: %.h Makefile.in
68         $(QUIET_GEN)glib-mkenums \
69         --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" \
70         --fprod "/* enumerations from \"@filename@\" */\n" \
71         --vhead "GType @enum_name@_get_type (void);\n#define $(shell echo $* | tr [:lower:]- [:upper:]_ | sed 's/_.*//')_TYPE_@ENUMSHORT@ (@enum_name@_get_type())\n"         \
72         --ftail "G_END_DECLS\n\n#endif /* __$(shell echo $* | tr [:lower:]- [:upper:]_)_ENUM_TYPES_H__ */" \
73         $< > $@
74
75 %-enumtypes.c: %.h Makefile.in
76         $(QUIET_GEN)glib-mkenums \
77         --fhead "#include <$*.h>\n#include <$*-enumtypes.h>" \
78         --fprod "\n/* enumerations from \"@filename@\" */" \
79         --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[] = {"     \
80         --vprod "      { @VALUENAME@, \"@VALUENAME@\", \"@VALUENAME@\" }," \
81         --vtail "      { 0, NULL, NULL }\n    };\n    etype = g_@type@_register_static (\"@EnumName@\", values);\n  }\n  return etype;\n}\n" \
82         $< > $@
83
84 EXTRA_DIST =                    \
85         $(autostart_DATA)       \
86         $(ui_DATA)
87
88 CLEANFILES = $(BUILT_SOURCES)
89