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