]> git.0d.be Git - empathy.git/blob - src/Makefile.am
empathy-accounts: init cheese-gtk if needed
[empathy.git] / src / Makefile.am
1 include $(top_srcdir)/tools/flymake.mk
2
3 CPPFLAGS_COMMON =                                       \
4         $(EMPATHY_CFLAGS)                               \
5         $(EDS_CFLAGS)                                   \
6         $(ERROR_CFLAGS)                                 \
7         -I$(top_srcdir)                                 \
8         -DG_LOG_DOMAIN=\"empathy\"                      \
9         -DBIN_DIR=\"$(bindir)\"                         \
10         $(DISABLE_DEPRECATED)                           \
11         $(WARN_CFLAGS)                                  \
12         $(NULL)
13
14 AM_LDFLAGS = $(LIBM)
15 AM_CPPFLAGS =                                           \
16         $(CPPFLAGS_COMMON)                              \
17         $(LIBCHAMPLAIN_CFLAGS)                          \
18         $(NULL)
19
20 LDADD =                                                         \
21         $(top_builddir)/libempathy-gtk/libempathy-gtk.la        \
22         $(top_builddir)/libempathy/libempathy.la                \
23         $(top_builddir)/extensions/libemp-extensions.la         \
24         $(GCR_LIBS)                                             \
25         $(EMPATHY_LIBS)                                         \
26         $(LIBCHAMPLAIN_LIBS)                                    \
27         $(NULL)
28
29 noinst_LTLIBRARIES = libempathy-accounts-common.la
30
31 libempathy_accounts_common_la_SOURCES =                                 \
32         empathy-accounts-common.c empathy-accounts-common.h             \
33         empathy-accounts-dialog.c empathy-accounts-dialog.h             \
34         empathy-import-dialog.c empathy-import-dialog.h                 \
35         empathy-import-pidgin.c empathy-import-pidgin.h                 \
36         empathy-import-widget.c empathy-import-widget.h                 \
37         empathy-import-utils.c empathy-import-utils.h                   \
38         $(NULL)
39
40 libempathy_accounts_common_la_LIBADD =                                  \
41         $(top_builddir)/libempathy-gtk/libempathy-gtk.la                \
42         $(EDS_LIBS)                                                     \
43         $(EMPATHY_LIBS)                                                 \
44         $(LIBCHAMPLAIN_LIBS)                                            \
45         $(NULL)
46
47 bin_PROGRAMS =                  \
48         empathy                 \
49         empathy-accounts        \
50         empathy-debugger        \
51         $(NULL)
52
53 libexec_PROGRAMS = \
54         empathy-auth-client \
55         empathy-call \
56         empathy-chat
57
58 empathy_accounts_SOURCES =                                              \
59         empathy-accounts.c empathy-accounts.h                           \
60         $(NULL)
61
62 empathy_accounts_CPPFLAGS =                                             \
63         $(AM_CPPFLAGS) \
64         $(CHEESE_CFLAGS) \
65         $(NULL)
66
67 empathy_accounts_LDADD =                                                \
68         $(LDADD)                                                        \
69         libempathy-accounts-common.la                                   \
70         $(NULL)
71
72 empathy_debugger_SOURCES =                                              \
73         empathy-debug-window.c empathy-debug-window.h                   \
74         empathy-debugger.c                                              \
75         $(NULL)
76
77 if HAVE_EMPATHY_AV
78 empathy_av_SOURCES = \
79         empathy-av.c \
80         empathy-audio-sink.c \
81         empathy-audio-sink.h \
82         empathy-audio-src.c \
83         empathy-audio-src.h \
84         empathy-streamed-media-factory.c \
85         empathy-streamed-media-factory.h \
86         empathy-streamed-media-handler.c \
87         empathy-streamed-media-handler.h \
88         empathy-streamed-media-window-fullscreen.c \
89         empathy-streamed-media-window-fullscreen.h \
90         empathy-streamed-media-window.c \
91         empathy-streamed-media-window.h \
92         empathy-video-src.c \
93         empathy-video-src.h \
94         empathy-video-widget.c \
95         empathy-video-widget.h \
96         ev-sidebar.c \
97         ev-sidebar.h \
98         empathy-mic-monitor.c \
99         empathy-mic-monitor.h
100         $(NULL)
101
102 empathy_av_CFLAGS = $(EMPATHY_AV_CFLAGS)
103 empathy_av_LDFLAGS = $(EMPATHY_AV_LIBS) $(LIBM)
104
105 libexec_PROGRAMS += empathy-av
106
107 endif
108
109 empathy_auth_client_SOURCES =                                           \
110         empathy-sanity-cleaning.c empathy-sanity-cleaning.h \
111         empathy-auth-client.c \
112         $(NULL)
113
114 empathy_chat_SOURCES =                                          \
115         empathy-about-dialog.c empathy-about-dialog.h                   \
116         empathy-chat-manager.c empathy-chat-manager.h           \
117         empathy-chat-window.c empathy-chat-window.h             \
118         empathy-invite-participant-dialog.c empathy-invite-participant-dialog.h \
119         empathy-chat.c \
120         gedit-close-button.c gedit-close-button.h \
121         $(NULL)
122
123 empathy_call_SOURCES = \
124        empathy-call.c \
125        empathy-call-factory.c \
126        empathy-call-factory.h \
127        empathy-call-handler.c \
128        empathy-call-handler.h \
129        empathy-call-window.c \
130        empathy-call-window.h \
131        empathy-call-window-fullscreen.c \
132        empathy-call-window-fullscreen.h \
133        empathy-about-dialog.c \
134        empathy-about-dialog.h \
135        empathy-audio-sink.c \
136        empathy-audio-sink.h \
137        empathy-audio-src.c \
138        empathy-audio-src.h \
139        empathy-video-src.c \
140        empathy-video-src.h \
141        empathy-video-widget.c \
142        empathy-video-widget.h \
143        empathy-preferences.c \
144        empathy-preferences.h \
145        empathy-camera-menu.c \
146        empathy-camera-menu.h \
147        empathy-mic-menu.c \
148        empathy-mic-menu.h \
149        empathy-rounded-actor.c \
150        empathy-rounded-actor.h \
151        empathy-rounded-rectangle.c \
152        empathy-rounded-rectangle.h \
153        empathy-rounded-texture.c \
154        empathy-rounded-texture.h \
155        empathy-mic-monitor.c \
156        empathy-mic-monitor.h
157
158 empathy_call_CFLAGS = $(EMPATHY_CALL_CFLAGS)
159 empathy_call_LDFLAGS = $(EMPATHY_CALL_LIBS)
160
161 empathy_handwritten_source = \
162         empathy-about-dialog.c empathy-about-dialog.h                   \
163         empathy-chat-window.c empathy-chat-window.h                     \
164         empathy-chatrooms-window.c empathy-chatrooms-window.h           \
165         empathy-event-manager.c empathy-event-manager.h                 \
166         empathy-ft-manager.c empathy-ft-manager.h                       \
167         empathy-invite-participant-dialog.c empathy-invite-participant-dialog.h \
168         empathy-roster-window.c empathy-roster-window.h                 \
169         empathy-new-chatroom-dialog.c empathy-new-chatroom-dialog.h     \
170         empathy-notifications-approver.c empathy-notifications-approver.h \
171         empathy-call-observer.c empathy-call-observer.h                 \
172         empathy-preferences.c empathy-preferences.h                     \
173         empathy-status-icon.c empathy-status-icon.h                     \
174         empathy-chat-manager.c empathy-chat-manager.h                   \
175         gedit-close-button.c gedit-close-button.h \
176         empathy.c
177
178 empathy_SOURCES =                                                       \
179         $(empathy_handwritten_source)                                   \
180         $(NULL)
181
182 empathy_LDADD =                                                         \
183         libempathy-accounts-common.la                                   \
184         $(top_builddir)/libempathy-gtk/libempathy-gtk.la                \
185         $(top_builddir)/libempathy/libempathy.la                        \
186         $(top_builddir)/extensions/libemp-extensions.la                 \
187         $(EMPATHY_LIBS)                                                 \
188         $(LIBCHAMPLAIN_LIBS)                                            \
189         $(NULL)
190
191 check_c_sources = \
192     $(empathy_handwritten_source) \
193     $(empathy_logs_SOURCES) \
194     $(libempathy_accounts_common_la_SOURCES) \
195     $(empathy_accounts_SOURCES) \
196     $(empathy_debugger_SOURCES) \
197     $(empathy_auth_client_SOURCES) \
198     $(empathy_chat_SOURCES) \
199     $(empathy_call_SOURCES)
200
201 include $(top_srcdir)/tools/check-coding-style.mk
202 check-local: check-coding-style
203
204 uidir = $(datadir)/empathy
205 ui_DATA =                                       \
206         empathy-accounts-dialog.ui              \
207         empathy-call-window-fullscreen.ui       \
208         empathy-call-window.ui                  \
209         empathy-streamed-media-window.ui        \
210         empathy-chat-window.ui                  \
211         empathy-chatrooms-window.ui             \
212         empathy-ft-manager.ui                   \
213         empathy-import-dialog.ui                \
214         empathy-roster-window.ui                        \
215         empathy-roster-window-menubar.ui                \
216         empathy-new-chatroom-dialog.ui          \
217         empathy-preferences.ui                  \
218         empathy-status-icon.ui
219
220 EXTRA_DIST =                    \
221         $(autostart_DATA)       \
222         $(ui_DATA)
223
224 if HAVE_LIBCHAMPLAIN
225 empathy_handwritten_source +=                           \
226         empathy-map-view.c                      \
227         empathy-map-view.h
228
229 ui_DATA +=                                      \
230         empathy-map-view.ui
231 else
232 EXTRA_DIST +=                                   \
233         empathy-map-view.c                      \
234         empathy-map-view.h                      \
235         empathy-map-view.ui
236 endif
237
238 dist_man_MANS =                 \
239         empathy.1 \
240         empathy-accounts.1
241