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