]> git.0d.be Git - empathy.git/blob - src/Makefile.am
Use the telepathy-account-widgets submodule instead of the internal copy
[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         empathy-about-dialog.c empathy-about-dialog.h                   \
90         empathy-chat-manager.c empathy-chat-manager.h           \
91         empathy-chat-window.c empathy-chat-window.h             \
92         empathy-invite-participant-dialog.c empathy-invite-participant-dialog.h \
93         empathy-chat.c \
94         $(NULL)
95
96 nodist_empathy_chat_SOURCES = \
97         empathy-chat-resources.c \
98         empathy-chat-resources.h \
99         $(NULL)
100
101 empathy_call_SOURCES = \
102        empathy-call.c \
103        empathy-call-factory.c \
104        empathy-call-factory.h \
105        empathy-call-handler.c \
106        empathy-call-handler.h \
107        empathy-call-window.c \
108        empathy-call-window.h \
109        empathy-call-window-fullscreen.c \
110        empathy-call-window-fullscreen.h \
111        empathy-about-dialog.c \
112        empathy-about-dialog.h \
113        empathy-audio-sink.c \
114        empathy-audio-sink.h \
115        empathy-audio-src.c \
116        empathy-audio-src.h \
117        empathy-audio-utils.c \
118        empathy-audio-utils.h \
119        empathy-video-src.c \
120        empathy-video-src.h \
121        empathy-preferences.c \
122        empathy-preferences.h \
123        empathy-camera-menu.c \
124        empathy-camera-menu.h \
125        empathy-mic-menu.c \
126        empathy-mic-menu.h \
127        empathy-rounded-actor.c \
128        empathy-rounded-actor.h \
129        empathy-rounded-rectangle.c \
130        empathy-rounded-rectangle.h \
131        empathy-rounded-texture.c \
132        empathy-rounded-texture.h \
133        empathy-mic-monitor.c \
134        empathy-mic-monitor.h
135
136 empathy_call_CFLAGS = $(EMPATHY_CALL_CFLAGS) -DGST_USE_UNSTABLE_API
137 empathy_call_LDFLAGS = $(EMPATHY_CALL_LIBS)
138
139 empathy_handwritten_source = \
140         empathy-about-dialog.c empathy-about-dialog.h                   \
141         empathy-chat-window.c empathy-chat-window.h                     \
142         empathy-chatrooms-window.c empathy-chatrooms-window.h           \
143         empathy-event-manager.c empathy-event-manager.h                 \
144         empathy-ft-manager.c empathy-ft-manager.h                       \
145         empathy-invite-participant-dialog.c empathy-invite-participant-dialog.h \
146         empathy-roster-window.c empathy-roster-window.h                 \
147         empathy-new-chatroom-dialog.c empathy-new-chatroom-dialog.h     \
148         empathy-notifications-approver.c empathy-notifications-approver.h \
149         empathy-call-observer.c empathy-call-observer.h                 \
150         empathy-preferences.c empathy-preferences.h                     \
151         empathy-status-icon.c empathy-status-icon.h                     \
152         empathy-chat-manager.c empathy-chat-manager.h                   \
153         empathy.c
154
155 empathy_SOURCES =                                                       \
156         $(empathy_handwritten_source)                                   \
157         $(NULL)
158
159 empathy_LDADD =                                                         \
160         libempathy-accounts-common.la                                   \
161         $(top_builddir)/libempathy-gtk/libempathy-gtk.la                \
162         $(top_builddir)/libempathy/libempathy.la                        \
163         $(top_builddir)/extensions/libemp-extensions.la                 \
164         $(EMPATHY_LIBS)                                                 \
165         $(LIBCHAMPLAIN_LIBS)                                            \
166         $(NULL)
167
168 check_c_sources = \
169     $(empathy_handwritten_source) \
170     $(empathy_logs_SOURCES) \
171     $(libempathy_accounts_common_la_SOURCES) \
172     $(empathy_accounts_SOURCES) \
173     $(empathy_debugger_SOURCES) \
174     $(empathy_auth_client_SOURCES) \
175     $(empathy_chat_SOURCES) \
176     $(empathy_call_SOURCES)
177
178 include $(top_srcdir)/tools/check-coding-style.mk
179 check-local: check-coding-style
180
181 uidir = $(datadir)/empathy
182 ui_DATA =                                       \
183         empathy-accounts-dialog.ui              \
184         empathy-call-window-fullscreen.ui       \
185         empathy-call-window.ui                  \
186         empathy-chat-window.ui                  \
187         empathy-chatrooms-window.ui             \
188         empathy-ft-manager.ui                   \
189         empathy-import-dialog.ui                \
190         empathy-roster-window.ui                        \
191         empathy-roster-window-menubar.ui                \
192         empathy-new-chatroom-dialog.ui          \
193         empathy-preferences.ui                  \
194         empathy-status-icon.ui
195
196 EXTRA_DIST =                    \
197         $(autostart_DATA)       \
198         $(ui_DATA)              \
199         empathy-chat.js         \
200         empathy-chat.gresource.xml
201
202 dist_man_MANS =                 \
203         empathy.1 \
204         empathy-accounts.1
205
206 BUILT_SOURCES = \
207         $(nodist_empathy_chat_SOURCES) \
208         $(NULL)
209
210 CLEANFILES = $(BUILT_SOURCES)
211
212 chat_resource_files: $(shell $(GLIB_COMPILE_RESOURCES) --generate-dependencies --sourcedir=$(srcdir) $(srcdir)/empathy-chat.gresource.xml)
213
214 empathy-chat-resources.c: empathy-chat.gresource.xml $(chat_resource_files)
215         $(AM_V_GEN)$(GLIB_COMPILE_RESOURCES) --target=$@ --sourcedir=$(srcdir) --generate-source $<
216
217 empathy-chat-resources.h: empathy-chat.gresource.xml $(chat_resource_files)
218         $(AM_V_GEN)$(GLIB_COMPILE_RESOURCES) --target=$@ --sourcedir=$(srcdir) --generate-header $<