]> git.0d.be Git - empathy.git/blob - src/Makefile.am
use a single window, with tabs
[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
63 empathy_accounts_SOURCES =                                              \
64         empathy-accounts.c empathy-accounts.h                           \
65         $(NULL)
66
67 empathy_accounts_CPPFLAGS =                                             \
68         $(AM_CPPFLAGS) \
69         $(CHEESE_CFLAGS) \
70         $(NULL)
71
72 empathy_accounts_LDADD =                                                \
73         $(LDADD)                                                        \
74         libempathy-accounts-common.la                                   \
75         $(NULL)
76
77 empathy_debugger_SOURCES =                                              \
78         empathy-debug-window.c empathy-debug-window.h                   \
79         empathy-debugger.c                                              \
80         $(NULL)
81
82 empathy_auth_client_SOURCES =                                           \
83         empathy-sanity-cleaning.c empathy-sanity-cleaning.h \
84         empathy-auth-client.c \
85         $(NULL)
86
87 empathy_chat_SOURCES =                                          \
88         chat-manager-interface.c chat-manager-interface.h \
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         polari-fixed-size-frame.c  polari-fixed-size-frame.h \
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         polari-fixed-size-frame.c  polari-fixed-size-frame.h \
155         empathy.c
156
157 empathy_SOURCES =                                                       \
158         $(empathy_handwritten_source)                                   \
159         chat-manager-interface.c chat-manager-interface.h \
160         $(NULL)
161
162 empathy_LDADD =                                                         \
163         libempathy-accounts-common.la                                   \
164         $(top_builddir)/libempathy-gtk/libempathy-gtk.la                \
165         $(top_builddir)/libempathy/libempathy.la                        \
166         $(top_builddir)/extensions/libemp-extensions.la                 \
167         $(EMPATHY_LIBS)                                                 \
168         $(LIBCHAMPLAIN_LIBS)                                            \
169         $(NULL)
170
171 check_c_sources = \
172     $(empathy_handwritten_source) \
173     $(empathy_logs_SOURCES) \
174     $(libempathy_accounts_common_la_SOURCES) \
175     $(empathy_accounts_SOURCES) \
176     $(empathy_debugger_SOURCES) \
177     $(empathy_auth_client_SOURCES) \
178     $(empathy_chat_SOURCES) \
179     $(empathy_call_SOURCES)
180
181 include $(top_srcdir)/tools/check-coding-style.mk
182 check-local: check-coding-style
183
184 uidir = $(datadir)/empathy
185 ui_DATA =                                       \
186         empathy-accounts-dialog.ui              \
187         empathy-call-window-fullscreen.ui       \
188         empathy-call-window.ui                  \
189         empathy-chat-window.ui                  \
190         empathy-chatrooms-window.ui             \
191         empathy-ft-manager.ui                   \
192         empathy-import-dialog.ui                \
193         empathy-roster-window.ui                        \
194         empathy-roster-window-menubar.ui                \
195         empathy-new-chatroom-dialog.ui          \
196         empathy-preferences.ui                  \
197         empathy-status-icon.ui
198
199 EXTRA_DIST =                    \
200         $(autostart_DATA)       \
201         $(ui_DATA)              \
202         empathy-chat.js         \
203         empathy-chat.gresource.xml \
204         Chat_Manager.xml
205
206 dist_man_MANS =                 \
207         empathy.1 \
208         empathy-accounts.1
209
210 chat-manager-interface.c: chat-manager-interface.h
211 chat-manager-interface.h: Makefile.am Chat_Manager.xml
212         gdbus-codegen \
213                 --interface-prefix org.gnome.Empathy. \
214                 --c-namespace EmpathyGen \
215                 --generate-c-code chat-manager-interface \
216                 Chat_Manager.xml
217
218 BUILT_SOURCES = \
219         $(nodist_empathy_chat_SOURCES) \
220         chat-manager-interface.c \
221         chat-manager-interface.h \
222         $(NULL)
223
224 CLEANFILES = $(BUILT_SOURCES)
225
226 chat_resource_files: $(shell $(GLIB_COMPILE_RESOURCES) --generate-dependencies --sourcedir=$(srcdir) $(srcdir)/empathy-chat.gresource.xml)
227
228 empathy-chat-resources.c: empathy-chat.gresource.xml $(chat_resource_files)
229         $(AM_V_GEN)$(GLIB_COMPILE_RESOURCES) --target=$@ --sourcedir=$(srcdir) --generate-source $<
230
231 empathy-chat-resources.h: empathy-chat.gresource.xml $(chat_resource_files)
232         $(AM_V_GEN)$(GLIB_COMPILE_RESOURCES) --target=$@ --sourcedir=$(srcdir) --generate-header $<