]> git.0d.be Git - empathy.git/blob - src/Makefile.am
Merge remote-tracking branch 'gulic/buttons-668464'
[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_LDADD =                                                \
63         $(LDADD)                                                        \
64         libempathy-accounts-common.la                                   \
65         $(NULL)
66
67 empathy_debugger_SOURCES =                                              \
68         empathy-debug-window.c empathy-debug-window.h                   \
69         empathy-debugger.c                                              \
70         $(NULL)
71
72 if HAVE_EMPATHY_AV
73 empathy_av_SOURCES = \
74         empathy-av.c \
75         empathy-audio-sink.c \
76         empathy-audio-sink.h \
77         empathy-audio-src.c \
78         empathy-audio-src.h \
79         empathy-streamed-media-factory.c \
80         empathy-streamed-media-factory.h \
81         empathy-streamed-media-handler.c \
82         empathy-streamed-media-handler.h \
83         empathy-streamed-media-window-fullscreen.c \
84         empathy-streamed-media-window-fullscreen.h \
85         empathy-streamed-media-window.c \
86         empathy-streamed-media-window.h \
87         empathy-video-src.c \
88         empathy-video-src.h \
89         empathy-video-widget.c \
90         empathy-video-widget.h \
91         ev-sidebar.c \
92         ev-sidebar.h \
93         empathy-mic-monitor.c \
94         empathy-mic-monitor.h
95         $(NULL)
96
97 empathy_av_CFLAGS = $(EMPATHY_AV_CFLAGS)
98 empathy_av_LDFLAGS = $(EMPATHY_AV_LIBS) $(LIBM)
99
100 libexec_PROGRAMS += empathy-av
101
102 endif
103
104 empathy_auth_client_SOURCES =                                           \
105         empathy-sanity-cleaning.c empathy-sanity-cleaning.h \
106         empathy-auth-client.c \
107         $(NULL)
108
109 empathy_chat_SOURCES =                                          \
110         empathy-about-dialog.c empathy-about-dialog.h                   \
111         empathy-chat-manager.c empathy-chat-manager.h           \
112         empathy-chat-window.c empathy-chat-window.h             \
113         empathy-invite-participant-dialog.c empathy-invite-participant-dialog.h \
114         empathy-chat.c \
115         gedit-close-button.c gedit-close-button.h \
116         $(NULL)
117
118 empathy_call_SOURCES = \
119        empathy-call.c \
120        empathy-call-factory.c \
121        empathy-call-factory.h \
122        empathy-call-handler.c \
123        empathy-call-handler.h \
124        empathy-call-window.c \
125        empathy-call-window.h \
126        empathy-call-window-fullscreen.c \
127        empathy-call-window-fullscreen.h \
128        empathy-about-dialog.c \
129        empathy-about-dialog.h \
130        empathy-audio-sink.c \
131        empathy-audio-sink.h \
132        empathy-audio-src.c \
133        empathy-audio-src.h \
134        empathy-video-src.c \
135        empathy-video-src.h \
136        empathy-video-widget.c \
137        empathy-video-widget.h \
138        empathy-preferences.c \
139        empathy-preferences.h \
140        empathy-camera-menu.c \
141        empathy-camera-menu.h \
142        empathy-mic-menu.c \
143        empathy-mic-menu.h \
144        empathy-rounded-actor.c \
145        empathy-rounded-actor.h \
146        empathy-rounded-rectangle.c \
147        empathy-rounded-rectangle.h \
148        empathy-rounded-texture.c \
149        empathy-rounded-texture.h \
150        empathy-mic-monitor.c \
151        empathy-mic-monitor.h
152
153 empathy_call_CFLAGS = $(EMPATHY_CALL_CFLAGS)
154 empathy_call_LDFLAGS = $(EMPATHY_CALL_LIBS)
155
156 empathy_handwritten_source = \
157         empathy-about-dialog.c empathy-about-dialog.h                   \
158         empathy-chat-window.c empathy-chat-window.h                     \
159         empathy-chatrooms-window.c empathy-chatrooms-window.h           \
160         empathy-event-manager.c empathy-event-manager.h                 \
161         empathy-ft-manager.c empathy-ft-manager.h                       \
162         empathy-invite-participant-dialog.c empathy-invite-participant-dialog.h \
163         empathy-roster-window.c empathy-roster-window.h                 \
164         empathy-new-chatroom-dialog.c empathy-new-chatroom-dialog.h     \
165         empathy-notifications-approver.c empathy-notifications-approver.h \
166         empathy-call-observer.c empathy-call-observer.h                 \
167         empathy-preferences.c empathy-preferences.h                     \
168         empathy-status-icon.c empathy-status-icon.h                     \
169         empathy-chat-manager.c empathy-chat-manager.h                   \
170         gedit-close-button.c gedit-close-button.h \
171         empathy.c
172
173 empathy_SOURCES =                                                       \
174         $(empathy_handwritten_source)                                   \
175         $(NULL)
176
177 empathy_LDADD =                                                         \
178         libempathy-accounts-common.la                                   \
179         $(top_builddir)/libempathy-gtk/libempathy-gtk.la                \
180         $(top_builddir)/libempathy/libempathy.la                        \
181         $(top_builddir)/extensions/libemp-extensions.la                 \
182         $(EMPATHY_LIBS)                                                 \
183         $(LIBCHAMPLAIN_LIBS)                                            \
184         $(NULL)
185
186 check_c_sources = \
187     $(empathy_handwritten_source) \
188     $(empathy_logs_SOURCES) \
189     $(libempathy_accounts_common_la_SOURCES) \
190     $(empathy_accounts_SOURCES) \
191     $(empathy_debugger_SOURCES) \
192     $(empathy_auth_client_SOURCES) \
193     $(empathy_chat_SOURCES) \
194     $(empathy_call_SOURCES)
195
196 include $(top_srcdir)/tools/check-coding-style.mk
197 check-local: check-coding-style
198
199 uidir = $(datadir)/empathy
200 ui_DATA =                                       \
201         empathy-accounts-dialog.ui              \
202         empathy-call-window-fullscreen.ui       \
203         empathy-call-window.ui                  \
204         empathy-streamed-media-window.ui        \
205         empathy-chat-window.ui                  \
206         empathy-chatrooms-window.ui             \
207         empathy-ft-manager.ui                   \
208         empathy-import-dialog.ui                \
209         empathy-roster-window.ui                        \
210         empathy-roster-window-menubar.ui                \
211         empathy-new-chatroom-dialog.ui          \
212         empathy-preferences.ui                  \
213         empathy-status-icon.ui
214
215 EXTRA_DIST =                    \
216         $(autostart_DATA)       \
217         $(ui_DATA)
218
219 if HAVE_LIBCHAMPLAIN
220 empathy_handwritten_source +=                           \
221         empathy-map-view.c                      \
222         empathy-map-view.h
223
224 ui_DATA +=                                      \
225         empathy-map-view.ui
226 else
227 EXTRA_DIST +=                                   \
228         empathy-map-view.c                      \
229         empathy-map-view.h                      \
230         empathy-map-view.ui
231 endif
232
233 dist_man_MANS =                 \
234         empathy.1 \
235         empathy-accounts.1
236