]> git.0d.be Git - empathy.git/blob - src/Makefile.am
all: remove butterfly workarounds (bgo#612555)
[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-new-chatroom-dialog.c empathy-new-chatroom-dialog.h     \
180         empathy-notifications-approver.c empathy-notifications-approver.h \
181         empathy-call-observer.c empathy-call-observer.h                 \
182         empathy-preferences.c empathy-preferences.h                     \
183         empathy-status-icon.c empathy-status-icon.h                     \
184         empathy-chat-manager.c empathy-chat-manager.h                   \
185         gedit-close-button.c gedit-close-button.h \
186         empathy.c
187
188 empathy_SOURCES =                                                       \
189         $(empathy_handwritten_source)                                   \
190         $(NULL)
191
192 empathy_LDADD =                                                         \
193         libempathy-accounts-common.la                                   \
194         $(top_builddir)/libempathy-gtk/libempathy-gtk.la                \
195         $(top_builddir)/libempathy/libempathy.la                        \
196         $(top_builddir)/extensions/libemp-extensions.la                 \
197         $(EMPATHY_LIBS)                                                 \
198         $(LIBCHAMPLAIN_LIBS)                                            \
199         $(NULL)
200
201 nodist_empathy_SOURCES = $(BUILT_SOURCES)
202
203 check_c_sources = \
204     $(empathy_handwritten_source) \
205     $(empathy_logs_SOURCES) \
206     $(empathy_handwritten_av_source)
207
208 include $(top_srcdir)/tools/check-coding-style.mk
209 check-local: check-coding-style
210
211 uidir = $(datadir)/empathy
212 ui_DATA =                                       \
213         empathy-accounts-dialog.ui              \
214         empathy-call-window-fullscreen.ui       \
215         empathy-call-window.ui                  \
216         empathy-streamed-media-window.ui        \
217         empathy-chat-window.ui                  \
218         empathy-chatrooms-window.ui             \
219         empathy-ft-manager.ui                   \
220         empathy-import-dialog.ui                \
221         empathy-main-window.ui                  \
222         empathy-main-window-menubar.ui          \
223         empathy-new-chatroom-dialog.ui          \
224         empathy-preferences.ui                  \
225         empathy-status-icon.ui
226
227 EXTRA_DIST =                    \
228         $(autostart_DATA)       \
229         $(ui_DATA)
230
231 if HAVE_LIBCHAMPLAIN
232 empathy_handwritten_source +=                           \
233         empathy-map-view.c                      \
234         empathy-map-view.h
235
236 ui_DATA +=                                      \
237         empathy-map-view.ui
238 else
239 EXTRA_DIST +=                                   \
240         empathy-map-view.c                      \
241         empathy-map-view.h                      \
242         empathy-map-view.ui
243 endif
244
245 dist_man_MANS =                 \
246         empathy.1 \
247         empathy-accounts.1
248
249 src-marshal.list: $(empathy_SOURCES) $(empathy_call_SOURCES) Makefile.am
250         $(AM_V_GEN)( cd $(srcdir) && \
251         sed -n -e 's/.*src_marshal_\([[:upper:][:digit:]]*__[[:upper:][:digit:]_]*\).*/\1/p' \
252         $(empathy_SOURCES) $(empathy_av_SOURCES) $(empathy_call_SOURCES) ) \
253         | sed -e 's/__/:/' -e 'y/_/,/' | sort -u > $@.tmp
254         @if cmp -s $@.tmp $@; then \
255                 rm $@.tmp; \
256         else \
257                 mv $@.tmp $@; \
258         fi
259
260 %-marshal.h: %-marshal.list Makefile
261         $(AM_V_GEN)$(GLIB_GENMARSHAL) --header --prefix=_$(subst -,_,$*)_marshal $< > $*-marshal.h
262
263 %-marshal.c: %-marshal.list Makefile
264         $(AM_V_GEN)echo "#include \"src-marshal.h\"" > $@ && \
265         $(GLIB_GENMARSHAL) --body --prefix=_$(subst -,_,$*)_marshal $< >> $*-marshal.c
266
267 CLEANFILES = $(BUILT_SOURCES)
268