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