]> git.0d.be Git - empathy.git/blob - src/Makefile.am
Merge branch 'empathy-av-ocrete'
[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-auth-client.c \
106         $(NULL)
107
108 empathy_chat_SOURCES =                                          \
109         empathy-about-dialog.c empathy-about-dialog.h                   \
110         empathy-chat-manager.c empathy-chat-manager.h           \
111         empathy-chat-window.c empathy-chat-window.h             \
112         empathy-invite-participant-dialog.c empathy-invite-participant-dialog.h \
113         empathy-chat.c \
114         gedit-close-button.c gedit-close-button.h \
115         $(NULL)
116
117 empathy_call_SOURCES = \
118        empathy-call.c \
119        empathy-call-factory.c \
120        empathy-call-factory.h \
121        empathy-call-handler.c \
122        empathy-call-handler.h \
123        empathy-call-window.c \
124        empathy-call-window.h \
125        empathy-call-window-fullscreen.c \
126        empathy-call-window-fullscreen.h \
127        empathy-about-dialog.c \
128        empathy-about-dialog.h \
129        empathy-audio-sink.c \
130        empathy-audio-sink.h \
131        empathy-audio-src.c \
132        empathy-audio-src.h \
133        empathy-video-src.c \
134        empathy-video-src.h \
135        empathy-video-widget.c \
136        empathy-video-widget.h \
137        empathy-preferences.c \
138        empathy-preferences.h \
139        empathy-camera-menu.c \
140        empathy-camera-menu.h \
141        empathy-mic-menu.c \
142        empathy-mic-menu.h \
143        empathy-rounded-actor.c \
144        empathy-rounded-actor.h \
145        empathy-rounded-rectangle.c \
146        empathy-rounded-rectangle.h \
147        empathy-rounded-texture.c \
148        empathy-rounded-texture.h \
149        empathy-mic-monitor.c \
150        empathy-mic-monitor.h
151
152 empathy_call_CFLAGS = $(EMPATHY_CALL_CFLAGS)
153 empathy_call_LDFLAGS = $(EMPATHY_CALL_LIBS)
154
155 empathy_handwritten_source = \
156         empathy-about-dialog.c empathy-about-dialog.h                   \
157         empathy-chat-window.c empathy-chat-window.h                     \
158         empathy-chatrooms-window.c empathy-chatrooms-window.h           \
159         empathy-event-manager.c empathy-event-manager.h                 \
160         empathy-ft-manager.c empathy-ft-manager.h                       \
161         empathy-invite-participant-dialog.c empathy-invite-participant-dialog.h \
162         empathy-roster-window.c empathy-roster-window.h                 \
163         empathy-new-chatroom-dialog.c empathy-new-chatroom-dialog.h     \
164         empathy-notifications-approver.c empathy-notifications-approver.h \
165         empathy-call-observer.c empathy-call-observer.h                 \
166         empathy-preferences.c empathy-preferences.h                     \
167         empathy-status-icon.c empathy-status-icon.h                     \
168         empathy-chat-manager.c empathy-chat-manager.h                   \
169         gedit-close-button.c gedit-close-button.h \
170         empathy.c
171
172 empathy_SOURCES =                                                       \
173         $(empathy_handwritten_source)                                   \
174         $(NULL)
175
176 empathy_LDADD =                                                         \
177         libempathy-accounts-common.la                                   \
178         $(top_builddir)/libempathy-gtk/libempathy-gtk.la                \
179         $(top_builddir)/libempathy/libempathy.la                        \
180         $(top_builddir)/extensions/libemp-extensions.la                 \
181         $(EMPATHY_LIBS)                                                 \
182         $(LIBCHAMPLAIN_LIBS)                                            \
183         $(NULL)
184
185 check_c_sources = \
186     $(empathy_handwritten_source) \
187     $(empathy_logs_SOURCES) \
188     $(libempathy_accounts_common_la_SOURCES) \
189     $(empathy_accounts_SOURCES) \
190     $(empathy_debugger_SOURCES) \
191     $(empathy_auth_client_SOURCES) \
192     $(empathy_chat_SOURCES) \
193     $(empathy_call_SOURCES)
194
195 include $(top_srcdir)/tools/check-coding-style.mk
196 check-local: check-coding-style
197
198 uidir = $(datadir)/empathy
199 ui_DATA =                                       \
200         empathy-accounts-dialog.ui              \
201         empathy-call-window-fullscreen.ui       \
202         empathy-call-window.ui                  \
203         empathy-streamed-media-window.ui        \
204         empathy-chat-window.ui                  \
205         empathy-chatrooms-window.ui             \
206         empathy-ft-manager.ui                   \
207         empathy-import-dialog.ui                \
208         empathy-roster-window.ui                        \
209         empathy-roster-window-menubar.ui                \
210         empathy-new-chatroom-dialog.ui          \
211         empathy-preferences.ui                  \
212         empathy-status-icon.ui
213
214 EXTRA_DIST =                    \
215         $(autostart_DATA)       \
216         $(ui_DATA)
217
218 if HAVE_LIBCHAMPLAIN
219 empathy_handwritten_source +=                           \
220         empathy-map-view.c                      \
221         empathy-map-view.h
222
223 ui_DATA +=                                      \
224         empathy-map-view.ui
225 else
226 EXTRA_DIST +=                                   \
227         empathy-map-view.c                      \
228         empathy-map-view.h                      \
229         empathy-map-view.ui
230 endif
231
232 dist_man_MANS =                 \
233         empathy.1 \
234         empathy-accounts.1
235