1 ## Process this file with automake to produce Makefile.in
8 -DG_LOG_DOMAIN=\"libsoup\" \
11 $(SOUP_MAINTAINER_FLAGS) \
17 $(GNOME_KEYRING_CFLAGS) \
21 MARSHAL_GENERATED = soup-marshal.c soup-marshal.h
22 MKENUMS_GENERATED = soup-enum-types.c soup-enum-types.h
24 soup-marshal.h: soup-marshal.list
25 $(AM_V_GEN) ( $(GLIB_GENMARSHAL) --prefix=soup_marshal $(srcdir)/soup-marshal.list --header > soup-marshal.tmp \
26 && mv soup-marshal.tmp soup-marshal.h ) \
27 || ( rm -f soup-marshal.tmp && exit 1 )
29 soup-marshal.c: soup-marshal.h
30 $(AM_V_GEN) ( (echo '#include "soup-marshal.h"'; $(GLIB_GENMARSHAL) --prefix=soup_marshal $(srcdir)/soup-marshal.list --body) > soup-marshal.tmp \
31 && mv soup-marshal.tmp soup-marshal.c ) \
32 || ( rm -f soup-marshal.tmp && exit 1 )
34 soup-enum-types.h: $(soup_headers)
35 $(AM_V_GEN) ( cd $(srcdir) && $(GLIB_MKENUMS) --template soup-enum-types.h.tmpl \
36 $(soup_headers) ) > soup-enum-types.h.tmp \
37 && mv soup-enum-types.h.tmp soup-enum-types.h \
38 || rm -f soup-enum-type.h.tmp
40 soup-enum-types.c: $(libsoupinclude_HEADERS)
41 $(AM_V_GEN) ( cd $(srcdir) && $(GLIB_MKENUMS) --template soup-enum-types.c.tmpl \
42 $(soup_headers) ) > soup-enum-types.c.tmp \
43 && mv soup-enum-types.c.tmp soup-enum-types.c \
44 || rm -f soup-enum-type.c.tmp
46 BUILT_SOURCES = $(MARSHAL_GENERATED) $(MKENUMS_GENERATED)
48 CLEANFILES = $(MARSHAL_GENERATED) $(MKENUMS_GENERATED)
50 libsoupincludedir = $(includedir)/libsoup-2.4/libsoup
57 soup-auth-domain-basic.h \
58 soup-auth-domain-digest.h \
59 soup-content-decoder.h \
60 soup-content-sniffer.h \
63 soup-cookie-jar-text.h \
70 soup-message-headers.h \
74 soup-password-manager.h \
76 soup-proxy-resolver.h \
77 soup-proxy-uri-resolver.h \
80 soup-session-async.h \
81 soup-session-feature.h \
90 libsoupinclude_HEADERS = \
94 lib_LTLIBRARIES = libsoup-2.4.la
96 libsoup_2_4_la_LDFLAGS = \
97 -version-info $(SOUP_CURRENT):$(SOUP_REVISION):$(SOUP_AGE) -no-undefined
99 libsoup_2_4_la_LIBADD = \
103 $(LIBGNUTLS_LIBS_STATIC) \
108 libsoup_2_4_la_SOURCES = \
119 soup-auth-domain-basic.c \
120 soup-auth-domain-digest.c \
121 soup-auth-manager.h \
122 soup-auth-manager.c \
123 soup-auth-manager-ntlm.h \
124 soup-auth-manager-ntlm.c \
131 soup-content-decoder.c \
132 soup-content-sniffer.c \
135 soup-cookie-jar-text.c \
142 soup-message-body.c \
143 soup-message-client-io.c \
144 soup-message-headers.c \
146 soup-message-private.h \
147 soup-message-queue.h \
148 soup-message-queue.c \
149 soup-message-server-io.c \
154 soup-password-manager.c \
157 soup-proxy-resolver.c \
158 soup-proxy-resolver-static.h \
159 soup-proxy-resolver-static.c \
160 soup-proxy-uri-resolver.c \
163 soup-session-async.c \
164 soup-session-feature.c \
165 soup-session-private.h \
166 soup-session-sync.c \
174 if BUILD_LIBSOUP_GNOME
176 libsoupgnomeincludedir = $(includedir)/libsoup-gnome-2.4/libsoup
178 libsoupgnomeinclude_HEADERS = \
179 soup-cookie-jar-sqlite.h\
181 soup-gnome-features.h
183 lib_LTLIBRARIES += libsoup-gnome-2.4.la
185 libsoup_gnome_2_4_la_LDFLAGS = $(libsoup_2_4_la_LDFLAGS)
187 libsoup_gnome_2_4_la_LIBADD = \
193 $(GNOME_KEYRING_LIBS)
195 libsoup_gnome_2_4_la_SOURCES = \
196 soup-cookie-jar-sqlite.c \
197 soup-gnome-features.c \
198 soup-proxy-resolver-gnome.h \
199 soup-proxy-resolver-gnome.c \
200 soup-password-manager-gnome.h \
201 soup-password-manager-gnome.c
206 # Introspection support
208 include $(INTROSPECTION_MAKEFILE)
210 INTROSPECTION_SCANNER_ARGS = --add-include-path=.
211 INTROSPECTION_COMPILER_ARGS = --includedir=.
213 if HAVE_INTROSPECTION
217 $(filter-out soup.h soup-enum-types.% soup-marshal.%,\
218 $(soup_headers) $(libsoup_2_4_la_SOURCES))
219 gi_built_soup_files = soup-enum-types.h
221 Soup-2.4.gir: libsoup-2.4.la
222 Soup_2_4_gir_INCLUDES = Gio-2.0
223 Soup_2_4_gir_CFLAGS = $(INCLUDES)
224 Soup_2_4_gir_LIBS = libsoup-2.4.la
225 Soup_2_4_gir_FILES = \
226 $(addprefix $(srcdir)/, $(gi_soup_files)) \
227 $(foreach f,$(gi_built_soup_files), \
228 $(if $(shell test -f $(addprefix $(srcdir)/,$(f)) && echo yes), \
229 $(addprefix $(srcdir)/,$(f)), \
232 INTROSPECTION_GIRS += Soup-2.4.gir
234 if BUILD_LIBSOUP_GNOME
237 gi_soup_gnome_files = $(filter-out soup-gnome.h,\
238 $(libsoupgnomeinclude_HEADERS) \
239 $(libsoup_gnome_2_4_la_SOURCES))
240 SoupGNOME-2.4.gir: libsoup-gnome-2.4.la Soup-2.4.gir
241 SoupGNOME_2_4_gir_SCANNERFLAGS = --identifier-prefix=Soup --symbol-prefix=soup
242 SoupGNOME_2_4_gir_INCLUDES = Soup-2.4
243 SoupGNOME_2_4_gir_CFLAGS = $(INCLUDES)
244 SoupGNOME_2_4_gir_LIBS = libsoup-gnome-2.4.la
245 SoupGNOME_2_4_gir_FILES = $(addprefix $(srcdir)/,$(gi_soup_gnome_files))
247 INTROSPECTION_GIRS += SoupGNOME-2.4.gir
251 girdir = $(datadir)/gir-1.0
252 gir_DATA = $(INTROSPECTION_GIRS)
254 typelibdir = $(libdir)/girepository-1.0
255 typelib_DATA = $(INTROSPECTION_GIRS:.gir=.typelib)
257 CLEANFILES += $(gir_DATA) $(typelib_DATA)
263 soup-enum-types.h.tmpl \
264 soup-enum-types.c.tmpl