8806ae45782e791f24fda07c79d4c3951039d781
[empathy.git] / src / Makefile.am
1 include $(top_srcdir)/tools/flymake.mk
2
3 CPPFLAGS_COMMON =                                       \
4         $(EMPATHY_CFLAGS)                               \
5         $(TPAW_CFLAGS)                                  \
6         $(ERROR_CFLAGS)                                 \
7         -I$(top_srcdir)/libempathy-gtk                  \
8         -I$(top_srcdir)/libempathy                      \
9         -I$(top_srcdir)/extensions                      \
10         -I$(top_builddir)/libempathy-gtk                \
11         -I$(top_builddir)/libempathy                    \
12         -DG_LOG_DOMAIN=\"empathy\"                      \
13         -DBIN_DIR=\"$(bindir)\"                         \
14         $(DISABLE_DEPRECATED)                           \
15         $(WARN_CFLAGS)                                  \
16         $(NULL)
17
18 AM_LDFLAGS = $(LIBM)
19 AM_CPPFLAGS =                                           \
20         $(CPPFLAGS_COMMON)                              \
21         $(LIBCHAMPLAIN_CFLAGS)                          \
22         $(UOA_CFLAGS)                                   \
23         $(NULL)
24
25 LDADD =                                                         \
26         $(top_builddir)/libempathy-gtk/libempathy-gtk.la        \
27         $(top_builddir)/libempathy/libempathy.la                \
28         $(top_builddir)/extensions/libemp-extensions.la         \
29         $(GCR_LIBS)                                             \
30         $(EMPATHY_LIBS)                                         \
31         $(TPAW_LIBS)                                            \
32         $(LIBCHAMPLAIN_LIBS)                                    \
33         $(UOA_LIBS)                                             \
34         $(NULL)
35
36 noinst_LTLIBRARIES = libempathy-accounts-common.la
37
38 libempathy_accounts_common_la_SOURCES =                                 \
39         empathy-accounts-common.c empathy-accounts-common.h             \
40         empathy-accounts-dialog.c empathy-accounts-dialog.h             \
41         empathy-import-dialog.c empathy-import-dialog.h                 \
42         empathy-import-pidgin.c empathy-import-pidgin.h                 \
43         empathy-import-widget.c empathy-import-widget.h                 \
44         empathy-import-utils.c empathy-import-utils.h                   \
45         $(NULL)
46
47 libempathy_accounts_common_la_LIBADD =                                  \
48         $(top_builddir)/libempathy-gtk/libempathy-gtk.la                \
49         $(EMPATHY_LIBS)                                                 \
50         $(LIBCHAMPLAIN_LIBS)                                            \
51         $(NULL)
52
53 bin_PROGRAMS =                  \
54         empathy                 \
55         empathy-accounts        \
56         empathy-debugger        \
57         $(NULL)
58
59 libexec_PROGRAMS = \
60         empathy-auth-client \
61         empathy-call \
62         empathy-chat
63
64 empathy_accounts_SOURCES =                                              \
65         empathy-accounts.c empathy-accounts.h                           \
66         $(NULL)
67
68 empathy_accounts_CPPFLAGS =                                             \
69         $(AM_CPPFLAGS) \
70         $(CHEESE_CFLAGS) \
71         $(NULL)
72
73 empathy_accounts_LDADD =                                                \
74         $(LDADD)                                                        \
75         libempathy-accounts-common.la                                   \
76         $(NULL)
77
78 empathy_debugger_SOURCES =                                              \
79         empathy-debug-window.c empathy-debug-window.h                   \
80         empathy-debugger.c                                              \
81         $(NULL)
82
83 empathy_auth_client_SOURCES =                                           \
84         empathy-sanity-cleaning.c empathy-sanity-cleaning.h \
85         empathy-auth-client.c \
86         $(NULL)
87
88 empathy_chat_SOURCES =                                          \
89         chat-manager-interface.c chat-manager-interface.h \
90         empathy-about-dialog.c empathy-about-dialog.h                   \
91         empathy-chat-manager.c empathy-chat-manager.h           \
92         empathy-chat-window.c empathy-chat-window.h             \
93         empathy-invite-participant-dialog.c empathy-invite-participant-dialog.h \
94         empathy-chat.c \
95         $(NULL)
96
97 nodist_empathy_chat_SOURCES = \
98         empathy-chat-resources.c \
99         empathy-chat-resources.h \
100         $(NULL)
101
102 empathy_call_SOURCES = \
103        empathy-call.c \
104        empathy-call-factory.c \
105        empathy-call-factory.h \
106        empathy-call-handler.c \
107        empathy-call-handler.h \
108        empathy-call-window.c \
109        empathy-call-window.h \
110        empathy-call-window-fullscreen.c \
111        empathy-call-window-fullscreen.h \
112        empathy-about-dialog.c \
113        empathy-about-dialog.h \
114        empathy-audio-sink.c \
115        empathy-audio-sink.h \
116        empathy-audio-src.c \
117        empathy-audio-src.h \
118        empathy-audio-utils.c \
119        empathy-audio-utils.h \
120        empathy-video-src.c \
121        empathy-video-src.h \
122        empathy-preferences.c \
123        empathy-preferences.h \
124        empathy-camera-menu.c \
125        empathy-camera-menu.h \
126        empathy-mic-menu.c \
127        empathy-mic-menu.h \
128        empathy-rounded-actor.c \
129        empathy-rounded-actor.h \
130        empathy-rounded-rectangle.c \
131        empathy-rounded-rectangle.h \
132        empathy-rounded-texture.c \
133        empathy-rounded-texture.h \
134        empathy-mic-monitor.c \
135        empathy-mic-monitor.h
136
137 empathy_call_CFLAGS = $(EMPATHY_CALL_CFLAGS) -DGST_USE_UNSTABLE_API
138 empathy_call_LDFLAGS = $(EMPATHY_CALL_LIBS)
139
140 empathy_handwritten_source = \
141         empathy-about-dialog.c empathy-about-dialog.h                   \
142         empathy-chat-window.c empathy-chat-window.h                     \
143         empathy-chatrooms-window.c empathy-chatrooms-window.h           \
144         empathy-event-manager.c empathy-event-manager.h                 \
145         empathy-ft-manager.c empathy-ft-manager.h                       \
146         empathy-invite-participant-dialog.c empathy-invite-participant-dialog.h \
147         empathy-roster-window.c empathy-roster-window.h                 \
148         empathy-new-chatroom-dialog.c empathy-new-chatroom-dialog.h     \
149         empathy-notifications-approver.c empathy-notifications-approver.h \
150         empathy-call-observer.c empathy-call-observer.h                 \
151         empathy-preferences.c empathy-preferences.h                     \
152         empathy-status-icon.c empathy-status-icon.h                     \
153         empathy-chat-manager.c empathy-chat-manager.h                   \
154         empathy.c
155
156 empathy_SOURCES =                                                       \
157         $(empathy_handwritten_source)                                   \
158         chat-manager-interface.c chat-manager-interface.h \
159         $(NULL)
160
161 empathy_LDADD =                                                         \
162         libempathy-accounts-common.la                                   \
163         $(top_builddir)/libempathy-gtk/libempathy-gtk.la                \
164         $(top_builddir)/libempathy/libempathy.la                        \
165         $(top_builddir)/extensions/libemp-extensions.la                 \
166         $(EMPATHY_LIBS)                                                 \
167         $(LIBCHAMPLAIN_LIBS)                                            \
168         $(NULL)
169
170 check_c_sources = \
171     $(empathy_handwritten_source) \
172     $(empathy_logs_SOURCES) \
173     $(libempathy_accounts_common_la_SOURCES) \
174     $(empathy_accounts_SOURCES) \
175     $(empathy_debugger_SOURCES) \
176     $(empathy_auth_client_SOURCES) \
177     $(empathy_chat_SOURCES) \
178     $(empathy_call_SOURCES)
179
180 include $(top_srcdir)/tools/check-coding-style.mk
181 check-local: check-coding-style
182
183 uidir = $(datadir)/empathy
184 ui_DATA =                                       \
185         empathy-accounts-dialog.ui              \
186         empathy-call-window-fullscreen.ui       \
187         empathy-call-window.ui                  \
188         empathy-chat-window.ui                  \
189         empathy-chatrooms-window.ui             \
190         empathy-ft-manager.ui                   \
191         empathy-import-dialog.ui                \
192         empathy-roster-window.ui                        \
193         empathy-roster-window-menubar.ui                \
194         empathy-new-chatroom-dialog.ui          \
195         empathy-preferences.ui                  \
196         empathy-status-icon.ui
197
198 EXTRA_DIST =                    \
199         $(autostart_DATA)       \
200         $(ui_DATA)              \
201         empathy-chat.js         \
202         empathy-chat.gresource.xml \
203         Chat_Manager.xml
204
205 dist_man_MANS =                 \
206         empathy.1 \
207         empathy-accounts.1
208
209 chat-manager-interface.c: chat-manager-interface.h
210 chat-manager-interface.h: Makefile.am Chat_Manager.xml
211         gdbus-codegen \
212                 --interface-prefix org.gnome.Empathy. \
213                 --c-namespace EmpathyGen \
214                 --generate-c-code chat-manager-interface \
215                 Chat_Manager.xml
216
217 BUILT_SOURCES = \
218         $(nodist_empathy_chat_SOURCES) \
219         chat-manager-interface.c \
220         chat-manager-interface.h \
221         $(NULL)
222
223 CLEANFILES = $(BUILT_SOURCES)
224
225 chat_resource_files: $(shell $(GLIB_COMPILE_RESOURCES) --generate-dependencies --sourcedir=$(srcdir) $(srcdir)/empathy-chat.gresource.xml)
226
227 empathy-chat-resources.c: empathy-chat.gresource.xml $(chat_resource_files)
228         $(AM_V_GEN)$(GLIB_COMPILE_RESOURCES) --target=$@ --sourcedir=$(srcdir) --generate-source $<
229
230 empathy-chat-resources.h: empathy-chat.gresource.xml $(chat_resource_files)
231         $(AM_V_GEN)$(GLIB_COMPILE_RESOURCES) --target=$@ --sourcedir=$(srcdir) --generate-header $<