]> git.0d.be Git - empathy.git/blob - src/Makefile.am
6360dee09d4d2ba80db22ba24e0041c63d91a029
[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-call-window-fullscreen.c empathy-call-window-fullscreen.h \
33         empathy-call-window.c empathy-call-window.h                     \
34         empathy-chat-window.c empathy-chat-window.h                     \
35         empathy-chatrooms-window.c empathy-chatrooms-window.h           \
36         empathy-debug-window.c empathy-debug-window.h                   \
37         empathy-event-manager.c empathy-event-manager.h                 \
38         empathy-ft-manager.c empathy-ft-manager.h                       \
39         empathy-import-dialog.c empathy-import-dialog.h                 \
40         empathy-import-mc4-accounts.c empathy-import-mc4-accounts.h     \
41         empathy-import-pidgin.c empathy-import-pidgin.h                 \
42         empathy-import-utils.c empathy-import-utils.h                   \
43         empathy-import-widget.c empathy-import-widget.h                 \
44         empathy-invite-participant-dialog.c empathy-invite-participant-dialog.h \
45         empathy-main-window.c empathy-main-window.h                     \
46         empathy-new-chatroom-dialog.c empathy-new-chatroom-dialog.h     \
47         empathy-preferences.c empathy-preferences.h                     \
48         empathy-sidebar.c empathy-sidebar.h                             \
49         empathy-status-icon.c empathy-status-icon.h                     \
50         empathy.c
51
52 empathy_SOURCES =                                                       \
53         $(empathy_handwritten_source)                                   \
54         ephy-spinner.c ephy-spinner.h
55
56 nodist_empathy_SOURCES = $(BUILT_SOURCES)
57
58 check_c_sources = \
59     $(empathy_handwritten_source) \
60     $(empathy_logs_SOURCES)
61 include $(top_srcdir)/tools/check-coding-style.mk
62 check-local: check-coding-style
63
64 uidir = $(datadir)/empathy
65 ui_DATA =                                       \
66         empathy-accounts-dialog.ui              \
67         empathy-call-window-fullscreen.ui       \
68         empathy-call-window.ui                  \
69         empathy-chat-window.ui                  \
70         empathy-chatrooms-window.ui             \
71         empathy-ft-manager.ui                   \
72         empathy-import-dialog.ui                \
73         empathy-main-window.ui                  \
74         empathy-new-chatroom-dialog.ui          \
75         empathy-preferences.ui                  \
76         empathy-status-icon.ui
77
78 EXTRA_DIST =                    \
79         $(autostart_DATA)       \
80         $(ui_DATA)
81
82 if HAVE_LIBCHAMPLAIN
83 empathy_handwritten_source +=                           \
84         empathy-map-view.c                      \
85         empathy-map-view.h
86
87 ui_DATA +=                                      \
88         empathy-map-view.ui
89 else
90 EXTRA_DIST +=                                   \
91         empathy-map-view.c                      \
92         empathy-map-view.h                      \
93         empathy-map-view.ui
94 endif
95
96 dist_man_MANS =                 \
97         empathy.1
98
99 # rules for making the glib enum objects
100 %-enumtypes.h: %.h Makefile.in
101         $(AM_V_GEN)glib-mkenums \
102         --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" \
103         --fprod "/* enumerations from \"@filename@\" */\n" \
104         --vhead "GType @enum_name@_get_type (void);\n#define $(shell echo $* | tr [:lower:]- [:upper:]_ | sed 's/_.*//')_TYPE_@ENUMSHORT@ (@enum_name@_get_type())\n"         \
105         --ftail "G_END_DECLS\n\n#endif /* __$(shell echo $* | tr [:lower:]- [:upper:]_)_ENUM_TYPES_H__ */" \
106         $< > $@
107
108 %-enumtypes.c: %.h Makefile.in
109         $(AM_V_GEN)glib-mkenums \
110         --fhead "#include <$*.h>\n#include <$*-enumtypes.h>" \
111         --fprod "\n/* enumerations from \"@filename@\" */" \
112         --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[] = {"     \
113         --vprod "      { @VALUENAME@, \"@VALUENAME@\", \"@VALUENAME@\" }," \
114         --vtail "      { 0, NULL, NULL }\n    };\n    etype = g_@type@_register_static (\"@EnumName@\", values);\n  }\n  return etype;\n}\n" \
115         $< > $@
116
117 CLEANFILES = $(BUILT_SOURCES)
118