sax: ConverterTest: add leap year tests
[LibreOffice.git] / glib / makefile.mk
blob1b31d395eab694ece254b0fc5bc3fa4e01441c5b
1 #*************************************************************************
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 #
5 # Copyright 2000, 2010 Oracle and/or its affiliates.
7 # OpenOffice.org - a multi-platform office productivity suite
9 # This file is part of OpenOffice.org.
11 # OpenOffice.org is free software: you can redistribute it and/or modify
12 # it under the terms of the GNU Lesser General Public License version 3
13 # only, as published by the Free Software Foundation.
15 # OpenOffice.org is distributed in the hope that it will be useful,
16 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 # GNU Lesser General Public License version 3 for more details
19 # (a copy is included in the LICENSE file that accompanied this code).
21 # You should have received a copy of the GNU Lesser General Public License
22 # version 3 along with OpenOffice.org. If not, see
23 # <http://www.openoffice.org/license.html>
24 # for a copy of the LGPLv3 License.
26 #*************************************************************************
28 PRJ=.
30 PRJNAME=glib
31 TARGET=so_glib
33 # --- Settings -----------------------------------------------------
35 .INCLUDE : settings.mk
37 .IF "$(SYSTEM_GLIB)" == "YES"
38 all:
39 @echo "An already available installation of glib should exist on your system."
40 @echo "Therefore the version provided here does not need to be built in addition."
41 .ENDIF
43 # --- Files --------------------------------------------------------
45 GLIBVERSION=2.28.1
47 TARFILE_NAME=$(PRJNAME)-$(GLIBVERSION)
48 TARFILE_MD5=9f6e85e1e38490c3956f4415bcd33e6e
51 .IF "$(OS)"=="MACOSX" || "$(OS)"=="IOS"
52 PATCH_FILES=glib-2.28.1.patch glib-2.28.1.noise.patch
54 .IF "$(OS)"=="IOS"
55 CONFIGURE_FLAGS= \
56 glib_cv_stack_grows=no \
57 glib_cv_uscore=yes \
58 ac_cv_func_posix_getpwuid_r=yes \
59 ac_cv_func_posix_getgrgid_r=yes \
60 ac_cv_func__NSGetEnviron=no \
61 --disable-shared
62 FRAMEWORK=-framework CoreFoundation
63 .ELSE
64 CONFIGURE_FLAGS=--disable-static
65 .ENDIF
67 .IF "$(OS)"=="MACOSX" && "$(CROSS_COMPILING)"=="YES"
68 CONFIGURE_FLAGS+= \
69 glib_cv_stack_grows=no \
70 glib_cv_uscore=yes \
71 ac_cv_func_posix_getpwuid_r=yes \
72 ac_cv_func_posix_getgrgid_r=yes \
73 ac_cv_func__NSGetEnviron=yes
74 .ENDIF
76 CONFIGURE_FLAGS+=--prefix=$(SRC_ROOT)$/$(PRJNAME)$/$(MISC)
77 CONFIGURE_FLAGS+=--disable-fam
78 CONFIGURE_FLAGS+=CPPFLAGS="$(ARCH_FLAGS) $(EXTRA_CDEFS) -DBUILD_OS_APPLEOSX"
79 CONFIGURE_FLAGS+=CFLAGS="$(ARCH_FLAGS) $(EXTRA_CFLAGS) -I$(SOLARINCDIR)$/external"
80 CONFIGURE_FLAGS+=LDFLAGS="-L$(SOLARLIBDIR) $(EXTRA_LINKFLAGS) $(FRAMEWORK)"
82 .IF "$(CROSS_COMPILING)"=="YES"
83 CONFIGURE_FLAGS+=--build=$(BUILD_PLATFORM) --host=$(HOST_PLATFORM)
84 .ENDIF
86 CONFIGURE_ACTION=$(AUGMENT_LIBRARY_PATH) ./configure
88 .IF "$(VERBOSE)"!=""
89 VFLAG=V=1
90 .ENDIF
92 BUILD_ACTION=$(AUGMENT_LIBRARY_PATH) $(GNUMAKE) $(VFLAG) -j$(MAXPROCESS)
94 .IF "$(OS)"=="MACOSX"
96 EXTRPATH=LOADER
98 OUT2LIB+=gio/.libs/libgio-2.0.0.dylib
99 OUT2LIB+=glib/.libs/libglib-2.0.0.dylib
100 OUT2LIB+=gmodule/.libs/libgmodule-2.0.0.dylib
101 OUT2LIB+=gobject/.libs/libgobject-2.0.0.dylib
102 OUT2LIB+=gthread/.libs/libgthread-2.0.0.dylib
104 OUT2BIN+=gobject/glib-mkenums
105 OUT2BIN+=gobject/.libs/glib-genmarshal
106 OUT2BIN+=gio/.libs/glib-compile-schemas
108 .ELIF "$(OS)"=="IOS"
110 OUT2LIB+=gio/.libs/libgio-2.0.a
111 OUT2LIB+=glib/.libs/libglib-2.0.a
112 OUT2LIB+=gmodule/.libs/libgmodule-2.0.a
113 OUT2LIB+=gobject/.libs/libgobject-2.0.a
114 OUT2LIB+=gthread/.libs/libgthread-2.0.a
116 .ENDIF
118 .ELIF "$(OS)"=="WNT"
120 CONVERTFILES=gobject/gmarshal.c
122 PATCH_FILES=glib-2.28.1-win32.patch glib-2.28.1-win32-2.patch
124 CONFIGURE_ACTION=
126 ADDITIONAL_FILES= config.h \
127 gio/gvdb/makefile.msc \
128 gio/win32/makefile.msc \
129 glib/glibconfig.h \
130 gmodule/gmoduleconf.h \
131 gobject/glib-mkenums
133 BUILD_ACTION=nmake -f makefile.msc
135 OUT2BIN+=gio$/giolo.dll
136 OUT2BIN+=glib$/gliblo.dll
137 OUT2BIN+=gmodule$/gmodulelo.dll
138 OUT2BIN+=gobject$/gobjectlo.dll
139 OUT2BIN+=gthread$/gthreadlo.dll
140 OUT2BIN+=gobject$/glib-mkenums
141 OUT2BIN+=gobject$/glib-genmarshal.exe
143 OUT2LIB+=build/win32/dirent/dirent.lib
144 OUT2LIB+=gio/gio-2.0.lib
145 OUT2LIB+=gio/gvdb/giogvdb.lib
146 OUT2LIB+=gio/win32/giowin32.lib
147 OUT2LIB+=glib/glib-2.0.lib
148 OUT2LIB+=glib/glib-2.28s.lib
149 OUT2LIB+=glib/gnulib/gnulib.lib
150 OUT2LIB+=glib/pcre/pcre.lib
151 OUT2LIB+=gmodule/gmodule-2.0.lib
152 OUT2LIB+=gobject/glib-genmarshal.lib
153 OUT2LIB+=gobject/gobject-2.0.lib
154 OUT2LIB+=gthread/gthread-2.0.lib
156 OUT2INC+=build$/win32$/make.msc
157 OUT2INC+=build$/win32$/module.defs
159 .ENDIF
161 OUT2INC+=glib/glib.h
162 OUT2INC+=glib/glib-object.h
163 OUT2INC+=glib/glibconfig.h
164 OUT2INC+=gmodule/gmodule.h
166 OUT2INC+=gio/gdesktopappinfo.h
167 OUT2INC+=gio/gunixcredentialsmessage.h
168 OUT2INC+=gio/gunixinputstream.h
169 OUT2INC+=gio/gunixsocketaddress.h
170 OUT2INC+=gio/gfiledescriptorbased.h
171 OUT2INC+=gio/gunixfdlist.h
172 OUT2INC+=gio/gunixmounts.h
173 OUT2INC+=gio/gunixconnection.h
174 OUT2INC+=gio/gunixfdmessage.h
175 OUT2INC+=gio/gunixoutputstream.h
178 OUT2INC+=gio/gaction.h
179 OUT2INC+=gio/gfileicon.h
180 OUT2INC+=gio/gproxyaddressenumerator.h
181 OUT2INC+=gio/gactiongroup.h
182 OUT2INC+=gio/gfileinfo.h
183 OUT2INC+=gio/gproxyresolver.h
184 OUT2INC+=gio/gappinfo.h
185 OUT2INC+=gio/gfileinputstream.h
186 OUT2INC+=gio/gresolver.h
187 OUT2INC+=gio/gapplication.h
188 OUT2INC+=gio/gfileiostream.h
189 OUT2INC+=gio/gseekable.h
190 OUT2INC+=gio/gapplicationcommandline.h
191 OUT2INC+=gio/gfilemonitor.h
192 OUT2INC+=gio/gsettings.h
193 OUT2INC+=gio/gasyncinitable.h
194 OUT2INC+=gio/gfilenamecompleter.h
195 OUT2INC+=gio/gsettingsbackend.h
196 OUT2INC+=gio/gasyncresult.h
197 OUT2INC+=gio/gfileoutputstream.h
198 OUT2INC+=gio/gsimpleaction.h
199 OUT2INC+=gio/gbufferedinputstream.h
200 OUT2INC+=gio/gfilterinputstream.h
201 OUT2INC+=gio/gsimpleactiongroup.h
202 OUT2INC+=gio/gbufferedoutputstream.h
203 OUT2INC+=gio/gfilteroutputstream.h
204 OUT2INC+=gio/gsimpleasyncresult.h
205 OUT2INC+=gio/gcancellable.h
206 OUT2INC+=gio/gicon.h
207 OUT2INC+=gio/gsimplepermission.h
208 OUT2INC+=gio/gcharsetconverter.h
209 OUT2INC+=gio/ginetaddress.h
210 OUT2INC+=gio/gsocket.h
211 OUT2INC+=gio/gcontenttype.h
212 OUT2INC+=gio/ginetsocketaddress.h
213 OUT2INC+=gio/gsocketaddress.h
214 OUT2INC+=gio/gconverter.h
215 OUT2INC+=gio/ginitable.h
216 OUT2INC+=gio/gsocketaddressenumerator.h
217 OUT2INC+=gio/gconverterinputstream.h
218 OUT2INC+=gio/ginputstream.h
219 OUT2INC+=gio/gsocketclient.h
220 OUT2INC+=gio/gconverteroutputstream.h
221 OUT2INC+=gio/gio.h
222 OUT2INC+=gio/gsocketconnectable.h
223 OUT2INC+=gio/gcredentials.h
224 OUT2INC+=gio/gioenums.h
225 OUT2INC+=gio/gsocketconnection.h
226 OUT2INC+=gio/gdatainputstream.h
227 OUT2INC+=gio/gioenumtypes.h
228 OUT2INC+=gio/gsocketcontrolmessage.h
229 OUT2INC+=gio/gdataoutputstream.h
230 OUT2INC+=gio/gioerror.h
231 OUT2INC+=gio/gsocketlistener.h
232 OUT2INC+=gio/gdbusaddress.h
233 OUT2INC+=gio/giomodule.h
234 OUT2INC+=gio/gsocketservice.h
235 OUT2INC+=gio/gdbusauthobserver.h
236 OUT2INC+=gio/gioscheduler.h
237 OUT2INC+=gio/gsrvtarget.h
238 OUT2INC+=gio/gdbusconnection.h
239 OUT2INC+=gio/giostream.h
240 OUT2INC+=gio/gtcpconnection.h
241 OUT2INC+=gio/gdbuserror.h
242 OUT2INC+=gio/giotypes.h
243 OUT2INC+=gio/gtcpwrapperconnection.h
244 OUT2INC+=gio/gdbusintrospection.h
245 OUT2INC+=gio/gloadableicon.h
246 OUT2INC+=gio/gthemedicon.h
247 OUT2INC+=gio/gdbusmessage.h
248 OUT2INC+=gio/gmemoryinputstream.h
249 OUT2INC+=gio/gthreadedsocketservice.h
250 OUT2INC+=gio/gdbusmethodinvocation.h
251 OUT2INC+=gio/gmemoryoutputstream.h
252 OUT2INC+=gio/gtlsbackend.h
253 OUT2INC+=gio/gdbusnameowning.h
254 OUT2INC+=gio/gmount.h
255 OUT2INC+=gio/gtlscertificate.h
256 OUT2INC+=gio/gdbusnamewatching.h
257 OUT2INC+=gio/gmountoperation.h
258 OUT2INC+=gio/gtlsclientconnection.h
259 OUT2INC+=gio/gdbusproxy.h
260 OUT2INC+=gio/gnativevolumemonitor.h
261 OUT2INC+=gio/gtlsconnection.h
262 OUT2INC+=gio/gdbusserver.h
263 OUT2INC+=gio/gnetworkaddress.h
264 OUT2INC+=gio/gtlsserverconnection.h
265 OUT2INC+=gio/gdbusutils.h
266 OUT2INC+=gio/gnetworkservice.h
267 OUT2INC+=gio/gvfs.h
268 OUT2INC+=gio/gdrive.h
269 OUT2INC+=gio/goutputstream.h
270 OUT2INC+=gio/gvolume.h
271 OUT2INC+=gio/gemblem.h
272 OUT2INC+=gio/gpermission.h
273 OUT2INC+=gio/gvolumemonitor.h
274 OUT2INC+=gio/gemblemedicon.h
275 OUT2INC+=gio/gpollableinputstream.h
276 OUT2INC+=gio/gzlibcompressor.h
277 OUT2INC+=gio/gfile.h
278 OUT2INC+=gio/gpollableoutputstream.h
279 OUT2INC+=gio/gzlibdecompressor.h
280 OUT2INC+=gio/gfileattribute.h
281 OUT2INC+=gio/gproxy.h
282 OUT2INC+=gio/gfileenumerator.h
283 OUT2INC+=gio/gproxyaddress.h
285 OUT2INC+=glib/galloca.h
286 OUT2INC+=glib/gconvert.h
287 OUT2INC+=glib/gi18n.h
288 OUT2INC+=glib/goption.h
289 OUT2INC+=glib/gscanner.h
290 OUT2INC+=glib/gthreadpool.h
291 OUT2INC+=glib/garray.h
292 OUT2INC+=glib/gdataset.h
293 OUT2INC+=glib/giochannel.h
294 OUT2INC+=glib/gpattern.h
295 OUT2INC+=glib/gsequence.h
296 OUT2INC+=glib/gtimer.h
297 OUT2INC+=glib/gasyncqueue.h
298 OUT2INC+=glib/gdate.h
299 OUT2INC+=glib/gkeyfile.h
300 OUT2INC+=glib/gpoll.h
301 OUT2INC+=glib/gshell.h
302 OUT2INC+=glib/gtimezone.h
303 OUT2INC+=glib/gatomic.h
304 OUT2INC+=glib/gdatetime.h
305 OUT2INC+=glib/glist.h
306 OUT2INC+=glib/gprimes.h
307 OUT2INC+=glib/gslice.h
308 OUT2INC+=glib/gtree.h
309 OUT2INC+=glib/gbacktrace.h
310 OUT2INC+=glib/gdir.h
311 OUT2INC+=glib/gmacros.h
312 OUT2INC+=glib/gprintf.h
313 OUT2INC+=glib/gslist.h
314 OUT2INC+=glib/gtypes.h
315 OUT2INC+=glib/gbase64.h
316 OUT2INC+=glib/gerror.h
317 OUT2INC+=glib/gmain.h
318 OUT2INC+=glib/gqsort.h
319 OUT2INC+=glib/gspawn.h
320 OUT2INC+=glib/gunicode.h
321 OUT2INC+=glib/gbitlock.h
322 OUT2INC+=glib/gfileutils.h
323 OUT2INC+=glib/gmappedfile.h
324 OUT2INC+=glib/gquark.h
325 OUT2INC+=glib/gstdio.h
326 OUT2INC+=glib/gurifuncs.h
327 OUT2INC+=glib/gbookmarkfile.h
328 OUT2INC+=glib/ghash.h
329 OUT2INC+=glib/gmarkup.h
330 OUT2INC+=glib/gqueue.h
331 OUT2INC+=glib/gstrfuncs.h
332 OUT2INC+=glib/gutils.h
333 OUT2INC+=glib/gcache.h
334 OUT2INC+=glib/ghook.h
335 OUT2INC+=glib/gmem.h
336 OUT2INC+=glib/grand.h
337 OUT2INC+=glib/gstring.h
338 OUT2INC+=glib/gvariant.h
339 OUT2INC+=glib/gchecksum.h
340 OUT2INC+=glib/ghostutils.h
341 OUT2INC+=glib/gmessages.h
342 OUT2INC+=glib/gregex.h
343 OUT2INC+=glib/gtestutils.h
344 OUT2INC+=glib/gvarianttype.h
345 OUT2INC+=glib/gcompletion.h
346 OUT2INC+=glib/gi18n-lib.h
347 OUT2INC+=glib/gnode.h
348 OUT2INC+=glib/grel.h
349 OUT2INC+=glib/gthread.h
350 OUT2INC+=glib/gwin32.h
353 OUT2INC+=gobject/gbinding.h
354 OUT2INC+=gobject/gmarshal.h
355 OUT2INC+=gobject/gparamspecs.h
356 OUT2INC+=gobject/gtypemodule.h
357 OUT2INC+=gobject/gvaluecollector.h
358 OUT2INC+=gobject/gboxed.h
359 OUT2INC+=gobject/gobject.h
360 OUT2INC+=gobject/gsignal.h
361 OUT2INC+=gobject/gtypeplugin.h
362 OUT2INC+=gobject/gvaluetypes.h
363 OUT2INC+=gobject/gclosure.h
364 OUT2INC+=gobject/gobjectnotifyqueue.c
365 OUT2INC+=gobject/gsourceclosure.h
366 OUT2INC+=gobject/gvalue.h
367 OUT2INC+=gobject/genums.h
368 OUT2INC+=gobject/gparam.h
369 OUT2INC+=gobject/gtype.h
370 OUT2INC+=gobject/gvaluearray.h
372 # --- Targets ------------------------------------------------------
374 .INCLUDE : set_ext.mk
375 .INCLUDE : target.mk
376 .INCLUDE : tg_ext.mk