comparison libgaim/Makefile.am @ 20389:e354528c4163

propagate from branch 'im.pidgin.gaim' (head 70ac931e4936c7916eec18a07fe46a0af0fd7403) to branch 'im.pidgin.rlaager.merging.soc-msnp13-to-svn18164' (head 5b5cde92182d2a922a8e7e6c2308342a5490a8c9)
author Richard Laager <rlaager@wiktel.com>
date Sun, 15 Apr 2007 02:10:37 +0000
parents ba149ceb20b7
children
comparison
equal deleted inserted replaced
19842:21cb7a79ac7f 20389:e354528c4163
1 EXTRA_DIST = \
2 dbus-analyze-functions.py \
3 dbus-analyze-types.py \
4 gaim-notifications-example \
5 gaim-remote \
6 gaim-send \
7 gaim-send-async \
8 gaim-url-handler \
9 Makefile.mingw \
10 win32/global.mak \
11 win32/libc_interface.c \
12 win32/libc_interface.h \
13 win32/libc_internal.h \
14 win32/libgaimrc.rc.in \
15 win32/rules.mak \
16 win32/targets.mak \
17 win32/wgaimerror.h \
18 win32/win32dep.c \
19 win32/giowin32.c \
20 win32/win32dep.h
21
22 if USE_GCONFTOOL
23 GCONF_DIR=gconf
24 endif
25
26 SUBDIRS = $(GCONF_DIR) plugins protocols tests
27
28 gaim_coresources = \
29 account.c \
30 accountopt.c \
31 blist.c \
32 buddyicon.c \
33 cipher.c \
34 circbuffer.c \
35 cmds.c \
36 connection.c \
37 conversation.c \
38 core.c \
39 debug.c \
40 desktopitem.c \
41 eventloop.c \
42 ft.c \
43 idle.c \
44 imgstore.c \
45 log.c \
46 mime.c \
47 network.c \
48 ntlm.c \
49 notify.c \
50 plugin.c \
51 pluginpref.c \
52 pounce.c \
53 prefix.c \
54 prefs.c \
55 privacy.c \
56 proxy.c \
57 prpl.c \
58 request.c \
59 roomlist.c \
60 savedstatuses.c \
61 server.c \
62 signals.c \
63 dnsquery.c \
64 dnssrv.c\
65 status.c \
66 stringref.c \
67 stun.c \
68 sound.c \
69 sslconn.c \
70 upnp.c \
71 util.c \
72 value.c \
73 xmlnode.c \
74 whiteboard.c
75
76 gaim_coreheaders = \
77 account.h \
78 accountopt.h \
79 blist.h \
80 buddyicon.h \
81 cipher.h \
82 circbuffer.h \
83 cmds.h \
84 connection.h \
85 conversation.h \
86 core.h \
87 dbus-maybe.h \
88 debug.h \
89 desktopitem.h \
90 eventloop.h \
91 ft.h \
92 gaim.h \
93 idle.h \
94 imgstore.h \
95 log.h \
96 mime.h \
97 network.h \
98 notify.h \
99 ntlm.h \
100 plugin.h \
101 pluginpref.h \
102 pounce.h \
103 prefs.h \
104 privacy.h \
105 proxy.h \
106 prpl.h \
107 request.h \
108 roomlist.h \
109 savedstatuses.h \
110 server.h \
111 signals.h \
112 dnsquery.h \
113 dnssrv.h \
114 status.h \
115 stringref.h \
116 stun.h \
117 sound.h \
118 sslconn.h \
119 upnp.h \
120 util.h \
121 value.h \
122 version.h \
123 xmlnode.h \
124 whiteboard.h
125
126 if ENABLE_DBUS
127
128 CLEANFILES = \
129 dbus-bindings.c \
130 dbus-client-binding.c \
131 dbus-client-binding.h \
132 dbus-types.c \
133 dbus-types.h \
134 gaim-client-bindings.c \
135 gaim-client-bindings.h \
136 gaim.service
137
138 # gaim dbus server
139
140 dbus_sources = dbus-server.c dbus-useful.c
141 dbus_headers = dbus-bindings.h dbus-gaim.h dbus-server.h dbus-useful.h dbus-define-api.h
142
143 dbus_exported = dbus-useful.h dbus-define-api.h account.h blist.h buddyicon.h \
144 connection.h conversation.h core.h log.h prefs.h roomlist.h \
145 savedstatuses.h status.h server.h xmlnode.h
146
147 gaim_build_coreheaders = $(addprefix $(srcdir)/, $(gaim_coreheaders))
148 dbus_build_exported = $(addprefix $(srcdir)/, $(dbus_exported))
149
150 dbus-types.c: dbus-analyze-types.py $(gaim_coreheaders)
151 cat $(gaim_build_coreheaders) | $(PYTHON) $(srcdir)/dbus-analyze-types.py --pattern=GAIM_DBUS_DEFINE_TYPE\(%s\) > $@
152
153 dbus-types.h: dbus-analyze-types.py $(dbus_coreheaders)
154 cat $(gaim_build_coreheaders) | $(PYTHON) $(srcdir)/dbus-analyze-types.py --pattern=GAIM_DBUS_DECLARE_TYPE\(%s\) > $@
155
156 dbus-bindings.c: dbus-analyze-functions.py $(dbus_exported)
157 cat $(dbus_build_exported) | $(PYTHON) $(srcdir)/dbus-analyze-functions.py > $@
158
159 dbus-server.$(OBJEXT): dbus-bindings.c dbus-types.c dbus-types.h
160 dbus-server.lo: dbus-bindings.c dbus-types.c dbus-types.h
161 $(libgaim_la_OBJECTS): dbus-types.h
162
163 # libgaim-client
164
165 libgaim_client_lib = libgaim-client.la
166
167 libgaim_client_la_SOURCES = gaim-client.c gaim-client.h
168
169 libgaim_client_la_LIBADD = $(DBUS_LIBS)
170
171 gaim-client-bindings.c: dbus-analyze-functions.py $(dbus_exported)
172 cat $(dbus_build_exported) | $(PYTHON) $(srcdir)/dbus-analyze-functions.py --client > $@
173
174 gaim-client-bindings.h: dbus-analyze-types.py dbus-analyze-functions.py $(gaim_coreheaders) $(dbus_exported)
175 cat $(gaim_build_coreheaders) | $(PYTHON) $(srcdir)/dbus-analyze-types.py --keyword=enum --verbatim > $@
176 cat $(dbus_build_exported) | $(PYTHON) $(srcdir)/dbus-analyze-functions.py --client --headers >> $@
177
178 $(libgaim_client_la_OBJECTS): gaim-client-bindings.h gaim-client-bindings.c
179
180 # gaim-client-example
181
182 gaim_client_example_SOURCES = gaim-client-example.c
183
184 gaim_client_example_DEPENDENCIES = libgaim-client.la
185
186 gaim_client_example_LDADD = \
187 libgaim-client.la \
188 $(GLIB_LIBS) \
189 $(DBUS_LIBS)
190
191 bin_PROGRAMS = gaim-client-example
192
193 gaim-client-example.$(OBJEXT): gaim-client-bindings.h
194
195 # scripts
196
197 bin_SCRIPTS = gaim-remote gaim-send gaim-send-async gaim-url-handler
198
199 endif
200
201 lib_LTLIBRARIES = libgaim.la $(libgaim_client_lib)
202
203 libgaim_la_SOURCES = \
204 $(gaim_coresources) \
205 $(dbus_sources)
206
207 noinst_HEADERS= \
208 internal.h \
209 prefix.h
210
211 libgaimincludedir=$(includedir)/gaim
212 libgaiminclude_HEADERS = \
213 $(gaim_coreheaders) \
214 $(dbus_headers)
215
216 libgaim_la_DEPENDENCIES = $(STATIC_LINK_LIBS)
217 libgaim_la_LDFLAGS = -export-dynamic
218 libgaim_la_LIBADD = \
219 $(DBUS_LIBS) \
220 $(GLIB_LIBS) \
221 $(LIBXML_LIBS) \
222 $(LIBNM_LIBS) \
223 $(STATIC_LINK_LIBS) \
224 $(INTLLIBS) \
225 -lm
226
227 AM_CPPFLAGS = \
228 -DBR_PTHREADS=0 \
229 -DDATADIR=\"$(datadir)\" \
230 -DLIBDIR=\"$(libdir)/gaim/\" \
231 -DLOCALEDIR=\"$(datadir)/locale\" \
232 -DSYSCONFDIR=\"$(sysconfdir)\" \
233 $(GLIB_CFLAGS) \
234 $(DEBUG_CFLAGS) \
235 $(DBUS_CFLAGS) \
236 $(LIBXML_CFLAGS) \
237 $(LIBNM_CFLAGS)