]> git.0d.be Git - empathy.git/blob - src/Makefile.am
move create_salut_account_if_needed and should_create_salut_account to a new file
[empathy.git] / src / Makefile.am
1 include $(top_srcdir)/tools/flymake.mk
2
3 AM_CPPFLAGS =                                           \
4         $(ERROR_CFLAGS)                                 \
5         -I$(top_srcdir)                                 \
6         -DG_LOG_DOMAIN=\"empathy\"                      \
7         $(EMPATHY_CFLAGS)                               \
8         $(LIBNOTIFY_CFLAGS)                             \
9         $(LIBCHAMPLAIN_CFLAGS)                          \
10         $(DISABLE_DEPRECATED)                           \
11         $(WEBKIT_CFLAGS)                                \
12         $(WARN_CFLAGS)
13
14 LDADD =                                                         \
15         $(top_builddir)/libempathy-gtk/libempathy-gtk.la        \
16         $(top_builddir)/libempathy/libempathy.la                \
17         $(top_builddir)/extensions/libemp-extensions.la         \
18         $(LIBNOTIFY_LIBS)                                       \
19         $(EMPATHY_LIBS)                                         \
20         $(LIBCHAMPLAIN_LIBS)                                    \
21         $(WEBKIT_LIBS)
22
23 bin_PROGRAMS =                  \
24         empathy
25
26 BUILT_SOURCES=
27
28 empathy_handwritten_source = \
29         empathy-about-dialog.c empathy-about-dialog.h                   \
30         empathy-account-assistant.c empathy-account-assistant.h         \
31         empathy-accounts-dialog.c empathy-accounts-dialog.h             \
32         empathy-auto-salut-account-helper.c empathy-auto-salut-account-helper.h \
33         empathy-call-window-fullscreen.c empathy-call-window-fullscreen.h \
34         empathy-call-window.c empathy-call-window.h                     \
35         empathy-chat-window.c empathy-chat-window.h                     \
36         empathy-chatrooms-window.c empathy-chatrooms-window.h           \
37         empathy-debug-window.c empathy-debug-window.h                   \
38         empathy-event-manager.c empathy-event-manager.h                 \
39         empathy-ft-manager.c empathy-ft-manager.h                       \
40         empathy-import-dialog.c empathy-import-dialog.h                 \
41         empathy-import-mc4-accounts.c empathy-import-mc4-accounts.h     \
42         empathy-import-pidgin.c empathy-import-pidgin.h                 \
43         empathy-import-utils.c empathy-import-utils.h                   \
44         empathy-import-widget.c empathy-import-widget.h                 \
45         empathy-invite-participant-dialog.c empathy-invite-participant-dialog.h \
46         empathy-main-window.c empathy-main-window.h                     \
47         empathy-new-chatroom-dialog.c empathy-new-chatroom-dialog.h     \
48         empathy-preferences.c empathy-preferences.h                     \
49         empathy-sidebar.c empathy-sidebar.h                             \
50         empathy-status-icon.c empathy-status-icon.h                     \
51         empathy.c
52
53 empathy_SOURCES =                                                       \
54         $(empathy_handwritten_source)                                   \
55         ephy-spinner.c ephy-spinner.h
56
57 nodist_empathy_SOURCES = $(BUILT_SOURCES)
58
59 check_c_sources = \
60     $(empathy_handwritten_source) \
61     $(empathy_logs_SOURCES)
62 include $(top_srcdir)/tools/check-coding-style.mk
63 check-local: check-coding-style
64
65 uidir = $(datadir)/empathy
66 ui_DATA =                                       \
67         empathy-accounts-dialog.ui              \
68         empathy-call-window-fullscreen.ui       \
69         empathy-call-window.ui                  \
70         empathy-chat-window.ui                  \
71         empathy-chatrooms-window.ui             \
72         empathy-ft-manager.ui                   \
73         empathy-import-dialog.ui                \
74         empathy-main-window.ui                  \
75         empathy-new-chatroom-dialog.ui          \
76         empathy-preferences.ui                  \
77         empathy-status-icon.ui
78
79 EXTRA_DIST =                    \
80         $(autostart_DATA)       \
81         $(ui_DATA)
82
83 if HAVE_LIBCHAMPLAIN
84 empathy_handwritten_source +=                           \
85         empathy-map-view.c                      \
86         empathy-map-view.h
87
88 ui_DATA +=                                      \
89         empathy-map-view.ui
90 else
91 EXTRA_DIST +=                                   \
92         empathy-map-view.c                      \
93         empathy-map-view.h                      \
94         empathy-map-view.ui
95 endif
96
97 dist_man_MANS =                 \
98         empathy.1
99
100 # rules for making the glib enum objects
101 %-enumtypes.h: %.h Makefile.in
102         $(AM_V_GEN)glib-mkenums \
103         --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" \
104         --fprod "/* enumerations from \"@filename@\" */\n" \
105         --vhead "GType @enum_name@_get_type (void);\n#define $(shell echo $* | tr [:lower:]- [:upper:]_ | sed 's/_.*//')_TYPE_@ENUMSHORT@ (@enum_name@_get_type())\n"         \
106         --ftail "G_END_DECLS\n\n#endif /* __$(shell echo $* | tr [:lower:]- [:upper:]_)_ENUM_TYPES_H__ */" \
107         $< > $@
108
109 %-enumtypes.c: %.h Makefile.in
110         $(AM_V_GEN)glib-mkenums \
111         --fhead "#include <$*.h>\n#include <$*-enumtypes.h>" \
112         --fprod "\n/* enumerations from \"@filename@\" */" \
113         --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[] = {"     \
114         --vprod "      { @VALUENAME@, \"@VALUENAME@\", \"@VALUENAME@\" }," \
115         --vtail "      { 0, NULL, NULL }\n    };\n    etype = g_@type@_register_static (\"@EnumName@\", values);\n  }\n  return etype;\n}\n" \
116         $< > $@
117
118 CLEANFILES = $(BUILT_SOURCES)
119