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