]> git.0d.be Git - empathy.git/blob - src/Makefile.am
Remove control centre plugin
[empathy.git] / src / Makefile.am
1 include $(top_srcdir)/tools/flymake.mk
2
3 CPPFLAGS_COMMON =                                       \
4         $(YELL_CFLAGS)                                  \
5         $(EMPATHY_CFLAGS)                               \
6         $(EDS_CFLAGS)                                   \
7         $(ERROR_CFLAGS)                                 \
8         -I$(top_srcdir)                                 \
9         -DG_LOG_DOMAIN=\"empathy\"                      \
10         -DBIN_DIR=\"$(bindir)\"                         \
11         $(DISABLE_DEPRECATED)                           \
12         $(WARN_CFLAGS)                                  \
13         $(NULL)
14
15 AM_LDFLAGS = $(LIBM)
16 AM_CPPFLAGS =                                           \
17         $(CPPFLAGS_COMMON)                              \
18         $(LIBCHAMPLAIN_CFLAGS)                          \
19         $(NULL)
20
21 LDADD =                                                         \
22         $(top_builddir)/libempathy-gtk/libempathy-gtk.la        \
23         $(top_builddir)/libempathy/libempathy.la                \
24         $(top_builddir)/extensions/libemp-extensions.la         \
25         $(GCR_LIBS)                                             \
26         $(EMPATHY_LIBS)                                         \
27         $(YELL_LIBS)                                            \
28         $(LIBCHAMPLAIN_LIBS)                                    \
29         $(NULL)
30
31 noinst_LTLIBRARIES = libempathy-accounts-common.la
32
33 libempathy_accounts_common_la_SOURCES =                                 \
34         empathy-accounts-common.c empathy-accounts-common.h             \
35         empathy-account-assistant.c empathy-account-assistant.h         \
36         empathy-accounts-dialog.c empathy-accounts-dialog.h             \
37         empathy-auto-salut-account-helper.c empathy-auto-salut-account-helper.h \
38         empathy-import-dialog.c empathy-import-dialog.h                 \
39         empathy-import-pidgin.c empathy-import-pidgin.h                 \
40         empathy-import-widget.c empathy-import-widget.h                 \
41         empathy-import-utils.c empathy-import-utils.h                   \
42         $(NULL)
43
44 libempathy_accounts_common_la_LIBADD =                                  \
45         $(top_builddir)/libempathy-gtk/libempathy-gtk.la                \
46         $(EDS_LIBS)                                                     \
47         $(EMPATHY_LIBS)                                                 \
48         $(LIBCHAMPLAIN_LIBS)                                            \
49         $(NULL)
50
51 bin_PROGRAMS =                  \
52         empathy                 \
53         empathy-accounts        \
54         empathy-debugger        \
55         $(NULL)
56
57 libexec_PROGRAMS = \
58         empathy-auth-client \
59         empathy-av \
60         empathy-chat
61
62 BUILT_SOURCES = \
63         src-marshal.h \
64         src-marshal.c \
65         src-marshal.list
66
67 empathy_accounts_SOURCES =                                              \
68         empathy-accounts.c empathy-accounts.h                           \
69         $(NULL)
70
71 empathy_accounts_LDADD =                                                \
72         $(LDADD)                                                        \
73         libempathy-accounts-common.la                                   \
74         $(NULL)
75
76 empathy_debugger_SOURCES =                                              \
77         empathy-debug-window.c empathy-debug-window.h                   \
78         empathy-debugger.c                                              \
79         $(NULL)
80
81 empathy_av_SOURCES = \
82         empathy-av.c \
83         empathy-audio-sink.c \
84         empathy-audio-sink.h \
85         empathy-audio-src.c \
86         empathy-audio-src.h \
87         empathy-streamed-media-factory.c \
88         empathy-streamed-media-factory.h \
89         empathy-streamed-media-handler.c \
90         empathy-streamed-media-handler.h \
91         empathy-streamed-media-window-fullscreen.c \
92         empathy-streamed-media-window-fullscreen.h \
93         empathy-streamed-media-window.c \
94         empathy-streamed-media-window.h \
95         empathy-video-src.c \
96         empathy-video-src.h \
97         empathy-video-widget.c \
98         empathy-video-widget.h \
99         ev-sidebar.c \
100         ev-sidebar.h \
101         empathy-mic-monitor.c \
102         empathy-mic-monitor.h
103         $(NULL)
104
105 nodist_empathy_av_SOURCES = $(BUILT_SOURCES)
106
107 empathy_av_CFLAGS = $(EMPATHY_AV_CFLAGS)
108 empathy_av_LDFLAGS = $(EMPATHY_AV_LIBS) $(LIBM)
109
110 empathy_auth_client_SOURCES =                                           \
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 if HAVE_CALL
124
125 libexec_PROGRAMS += empathy-call
126
127 empathy_call_SOURCES = \
128        empathy-call.c \
129        empathy-call-factory.c \
130        empathy-call-factory.h \
131        empathy-call-handler.c \
132        empathy-call-handler.h \
133        empathy-call-window.c \
134        empathy-call-window.h \
135        empathy-call-window-fullscreen.c \
136        empathy-call-window-fullscreen.h \
137        empathy-about-dialog.c \
138        empathy-about-dialog.h \
139        empathy-audio-sink.c \
140        empathy-audio-sink.h \
141        empathy-audio-src.c \
142        empathy-audio-src.h \
143        empathy-video-src.c \
144        empathy-video-src.h \
145        empathy-video-widget.c \
146        empathy-video-widget.h \
147        empathy-preferences.c \
148        empathy-preferences.h \
149        ev-sidebar.c \
150        ev-sidebar.h \
151        empathy-camera-menu.c \
152        empathy-camera-menu.h \
153        empathy-mic-menu.c \
154        empathy-mic-menu.h \
155        empathy-rounded-actor.c \
156        empathy-rounded-actor.h \
157        empathy-rounded-rectangle.c \
158        empathy-rounded-rectangle.h \
159        empathy-rounded-texture.c \
160        empathy-rounded-texture.h \
161        empathy-mic-monitor.c \
162        empathy-mic-monitor.h
163
164 nodist_empathy_call_SOURCES = $(BUILT_SOURCES)
165
166 empathy_call_CFLAGS = $(EMPATHY_CALL_CFLAGS)
167 empathy_call_LDFLAGS = $(EMPATHY_CALL_LIBS)
168
169 endif
170
171 empathy_handwritten_source = \
172         empathy-about-dialog.c empathy-about-dialog.h                   \
173         empathy-chat-window.c empathy-chat-window.h                     \
174         empathy-chatrooms-window.c empathy-chatrooms-window.h           \
175         empathy-event-manager.c empathy-event-manager.h                 \
176         empathy-ft-manager.c empathy-ft-manager.h                       \
177         empathy-invite-participant-dialog.c empathy-invite-participant-dialog.h \
178         empathy-main-window.c empathy-main-window.h                     \
179         empathy-migrate-butterfly-logs.c empathy-migrate-butterfly-logs.h \
180         empathy-new-chatroom-dialog.c empathy-new-chatroom-dialog.h     \
181         empathy-notifications-approver.c empathy-notifications-approver.h \
182         empathy-call-observer.c empathy-call-observer.h                 \
183         empathy-preferences.c empathy-preferences.h                     \
184         empathy-status-icon.c empathy-status-icon.h                     \
185         empathy-chat-manager.c empathy-chat-manager.h                   \
186         gedit-close-button.c gedit-close-button.h \
187         empathy.c
188
189 empathy_SOURCES =                                                       \
190         $(empathy_handwritten_source)                                   \
191         $(NULL)
192
193 empathy_LDADD =                                                         \
194         libempathy-accounts-common.la                                   \
195         $(top_builddir)/libempathy-gtk/libempathy-gtk.la                \
196         $(top_builddir)/libempathy/libempathy.la                        \
197         $(top_builddir)/extensions/libemp-extensions.la                 \
198         $(EMPATHY_LIBS)                                                 \
199         $(LIBCHAMPLAIN_LIBS)                                            \
200         $(NULL)
201
202 nodist_empathy_SOURCES = $(BUILT_SOURCES)
203
204 check_c_sources = \
205     $(empathy_handwritten_source) \
206     $(empathy_logs_SOURCES) \
207     $(empathy_handwritten_av_source)
208
209 include $(top_srcdir)/tools/check-coding-style.mk
210 check-local: check-coding-style
211
212 uidir = $(datadir)/empathy
213 ui_DATA =                                       \
214         empathy-accounts-dialog.ui              \
215         empathy-call-window-fullscreen.ui       \
216         empathy-call-window.ui                  \
217         empathy-streamed-media-window.ui        \
218         empathy-chat-window.ui                  \
219         empathy-chatrooms-window.ui             \
220         empathy-ft-manager.ui                   \
221         empathy-import-dialog.ui                \
222         empathy-main-window.ui                  \
223         empathy-main-window-menubar.ui          \
224         empathy-new-chatroom-dialog.ui          \
225         empathy-preferences.ui                  \
226         empathy-status-icon.ui
227
228 EXTRA_DIST =                    \
229         $(autostart_DATA)       \
230         $(ui_DATA)
231
232 if HAVE_LIBCHAMPLAIN
233 empathy_handwritten_source +=                           \
234         empathy-map-view.c                      \
235         empathy-map-view.h
236
237 ui_DATA +=                                      \
238         empathy-map-view.ui
239 else
240 EXTRA_DIST +=                                   \
241         empathy-map-view.c                      \
242         empathy-map-view.h                      \
243         empathy-map-view.ui
244 endif
245
246 dist_man_MANS =                 \
247         empathy.1 \
248         empathy-accounts.1
249
250 src-marshal.list: $(empathy_SOURCES) $(empathy_call_SOURCES) Makefile.am
251         $(AM_V_GEN)( cd $(srcdir) && \
252         sed -n -e 's/.*src_marshal_\([[:upper:][:digit:]]*__[[:upper:][:digit:]_]*\).*/\1/p' \
253         $(empathy_SOURCES) $(empathy_av_SOURCES) $(empathy_call_SOURCES) ) \
254         | sed -e 's/__/:/' -e 'y/_/,/' | sort -u > $@.tmp
255         @if cmp -s $@.tmp $@; then \
256                 rm $@.tmp; \
257         else \
258                 mv $@.tmp $@; \
259         fi
260
261 %-marshal.h: %-marshal.list Makefile
262         $(AM_V_GEN)$(GLIB_GENMARSHAL) --header --prefix=_$(subst -,_,$*)_marshal $< > $*-marshal.h
263
264 %-marshal.c: %-marshal.list Makefile
265         $(AM_V_GEN)echo "#include \"src-marshal.h\"" > $@ && \
266         $(GLIB_GENMARSHAL) --body --prefix=_$(subst -,_,$*)_marshal $< >> $*-marshal.c
267
268 CLEANFILES = $(BUILT_SOURCES)
269