Version 3.6.0.4, tag libreoffice-3.6.0.4
[LibreOffice.git] / glib / makefile.mk
blobb81cc53d3547ea21f240301e9a8f55ffd248500e
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)"!="WNT"
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 .IF "$(OS)" == "MACOSX"
77 CONFIGURE_FLAGS += \
78 --prefix=/@.__________________________________________________$(EXTRPATH)
79 .ELSE
80 CONFIGURE_FLAGS+=--prefix=$(SRC_ROOT)$/$(PRJNAME)$/$(MISC)
81 .END
83 CONFIGURE_FLAGS+=--disable-fam
84 CONFIGURE_FLAGS+=CPPFLAGS="$(ARCH_FLAGS) $(EXTRA_CDEFS) -DBUILD_OS_APPLEOSX"
85 CONFIGURE_FLAGS+=CFLAGS="$(ARCH_FLAGS) $(EXTRA_CFLAGS) -I$(SOLARINCDIR)$/external"
86 CONFIGURE_FLAGS+=LDFLAGS="-L$(SOLARLIBDIR) $(EXTRA_LINKFLAGS) $(FRAMEWORK)"
88 .IF "$(CROSS_COMPILING)"=="YES"
89 CONFIGURE_FLAGS+=--build=$(BUILD_PLATFORM) --host=$(HOST_PLATFORM)
90 .ENDIF
92 CONFIGURE_ACTION=$(AUGMENT_LIBRARY_PATH) ./configure
94 .IF "$(VERBOSE)"!=""
95 VFLAG=V=1
96 .ENDIF
98 BUILD_ACTION=$(AUGMENT_LIBRARY_PATH) $(GNUMAKE) $(VFLAG) -j$(MAXPROCESS)
100 .IF "$(OS)"!="IOS"
102 .IF "$(OS)" == "MACOSX"
103 my_ext = .0$(DLLPOST)
104 .ELSE
105 my_ext = $(DLLPOST).0
106 .END
108 OUT2LIB+=gio/.libs/libgio-2.0$(my_ext)
109 OUT2LIB+=glib/.libs/libglib-2.0$(my_ext)
110 OUT2LIB+=gmodule/.libs/libgmodule-2.0$(my_ext)
111 OUT2LIB+=gobject/.libs/libgobject-2.0$(my_ext)
112 OUT2LIB+=gthread/.libs/libgthread-2.0$(my_ext)
114 OUT2BIN_NONE+=gobject/glib-mkenums
115 OUT2BIN_NONE+=gobject/.libs/glib-genmarshal
116 OUT2BIN_NONE+=gio/.libs/glib-compile-schemas
118 .ELSE
120 OUT2LIB+=gio/.libs/libgio-2.0.a
121 OUT2LIB+=glib/.libs/libglib-2.0.a
122 OUT2LIB+=gmodule/.libs/libgmodule-2.0.a
123 OUT2LIB+=gobject/.libs/libgobject-2.0.a
124 OUT2LIB+=gthread/.libs/libgthread-2.0.a
126 .ENDIF
128 .ELSE
130 CONVERTFILES=gobject/gmarshal.c
132 PATCH_FILES=glib-2.28.1-win32.patch glib-2.28.1-win32-2.patch
134 CONFIGURE_ACTION=
136 ADDITIONAL_FILES= config.h \
137 gio/gvdb/makefile.msc \
138 gio/win32/makefile.msc \
139 glib/glibconfig.h \
140 gmodule/gmoduleconf.h \
141 gobject/glib-mkenums
143 BUILD_ACTION=nmake -f makefile.msc
145 OUT2BIN+=gio$/giolo.dll
146 OUT2BIN+=glib$/gliblo.dll
147 OUT2BIN+=gmodule$/gmodulelo.dll
148 OUT2BIN+=gobject$/gobjectlo.dll
149 OUT2BIN+=gthread$/gthreadlo.dll
150 OUT2BIN+=gobject$/glib-mkenums
151 OUT2BIN+=gobject$/glib-genmarshal.exe
153 OUT2LIB+=build/win32/dirent/dirent.lib
154 OUT2LIB+=gio/gio-2.0.lib
155 OUT2LIB+=gio/gvdb/giogvdb.lib
156 OUT2LIB+=gio/win32/giowin32.lib
157 OUT2LIB+=glib/glib-2.0.lib
158 OUT2LIB+=glib/glib-2.28s.lib
159 OUT2LIB+=glib/gnulib/gnulib.lib
160 OUT2LIB+=glib/pcre/pcre.lib
161 OUT2LIB+=gmodule/gmodule-2.0.lib
162 OUT2LIB+=gobject/glib-genmarshal.lib
163 OUT2LIB+=gobject/gobject-2.0.lib
164 OUT2LIB+=gthread/gthread-2.0.lib
166 .IF "$(OS)"=="WNT"
167 OUT2INC+=build$/win32$/dirent/dirent.h
168 .ENDIF
169 OUT2INC+=build$/win32$/make.msc
170 OUT2INC+=build$/win32$/module.defs
172 .ENDIF
174 OUT2INC+=glib/glib.h
175 OUT2INC+=glib/glib-object.h
176 OUT2INC+=glib/glibconfig.h
177 OUT2INC+=gmodule/gmodule.h
179 OUT2INC+=gio/gdesktopappinfo.h
180 OUT2INC+=gio/gunixcredentialsmessage.h
181 OUT2INC+=gio/gunixinputstream.h
182 OUT2INC+=gio/gunixsocketaddress.h
183 OUT2INC+=gio/gfiledescriptorbased.h
184 OUT2INC+=gio/gunixfdlist.h
185 OUT2INC+=gio/gunixmounts.h
186 OUT2INC+=gio/gunixconnection.h
187 OUT2INC+=gio/gunixfdmessage.h
188 OUT2INC+=gio/gunixoutputstream.h
191 OUT2INC+=gio/gaction.h
192 OUT2INC+=gio/gfileicon.h
193 OUT2INC+=gio/gproxyaddressenumerator.h
194 OUT2INC+=gio/gactiongroup.h
195 OUT2INC+=gio/gfileinfo.h
196 OUT2INC+=gio/gproxyresolver.h
197 OUT2INC+=gio/gappinfo.h
198 OUT2INC+=gio/gfileinputstream.h
199 OUT2INC+=gio/gresolver.h
200 OUT2INC+=gio/gapplication.h
201 OUT2INC+=gio/gfileiostream.h
202 OUT2INC+=gio/gseekable.h
203 OUT2INC+=gio/gapplicationcommandline.h
204 OUT2INC+=gio/gfilemonitor.h
205 OUT2INC+=gio/gsettings.h
206 OUT2INC+=gio/gasyncinitable.h
207 OUT2INC+=gio/gfilenamecompleter.h
208 OUT2INC+=gio/gsettingsbackend.h
209 OUT2INC+=gio/gasyncresult.h
210 OUT2INC+=gio/gfileoutputstream.h
211 OUT2INC+=gio/gsimpleaction.h
212 OUT2INC+=gio/gbufferedinputstream.h
213 OUT2INC+=gio/gfilterinputstream.h
214 OUT2INC+=gio/gsimpleactiongroup.h
215 OUT2INC+=gio/gbufferedoutputstream.h
216 OUT2INC+=gio/gfilteroutputstream.h
217 OUT2INC+=gio/gsimpleasyncresult.h
218 OUT2INC+=gio/gcancellable.h
219 OUT2INC+=gio/gicon.h
220 OUT2INC+=gio/gsimplepermission.h
221 OUT2INC+=gio/gcharsetconverter.h
222 OUT2INC+=gio/ginetaddress.h
223 OUT2INC+=gio/gsocket.h
224 OUT2INC+=gio/gcontenttype.h
225 OUT2INC+=gio/ginetsocketaddress.h
226 OUT2INC+=gio/gsocketaddress.h
227 OUT2INC+=gio/gconverter.h
228 OUT2INC+=gio/ginitable.h
229 OUT2INC+=gio/gsocketaddressenumerator.h
230 OUT2INC+=gio/gconverterinputstream.h
231 OUT2INC+=gio/ginputstream.h
232 OUT2INC+=gio/gsocketclient.h
233 OUT2INC+=gio/gconverteroutputstream.h
234 OUT2INC+=gio/gio.h
235 OUT2INC+=gio/gsocketconnectable.h
236 OUT2INC+=gio/gcredentials.h
237 OUT2INC+=gio/gioenums.h
238 OUT2INC+=gio/gsocketconnection.h
239 OUT2INC+=gio/gdatainputstream.h
240 OUT2INC+=gio/gioenumtypes.h
241 OUT2INC+=gio/gsocketcontrolmessage.h
242 OUT2INC+=gio/gdataoutputstream.h
243 OUT2INC+=gio/gioerror.h
244 OUT2INC+=gio/gsocketlistener.h
245 OUT2INC+=gio/gdbusaddress.h
246 OUT2INC+=gio/giomodule.h
247 OUT2INC+=gio/gsocketservice.h
248 OUT2INC+=gio/gdbusauthobserver.h
249 OUT2INC+=gio/gioscheduler.h
250 OUT2INC+=gio/gsrvtarget.h
251 OUT2INC+=gio/gdbusconnection.h
252 OUT2INC+=gio/giostream.h
253 OUT2INC+=gio/gtcpconnection.h
254 OUT2INC+=gio/gdbuserror.h
255 OUT2INC+=gio/giotypes.h
256 OUT2INC+=gio/gtcpwrapperconnection.h
257 OUT2INC+=gio/gdbusintrospection.h
258 OUT2INC+=gio/gloadableicon.h
259 OUT2INC+=gio/gthemedicon.h
260 OUT2INC+=gio/gdbusmessage.h
261 OUT2INC+=gio/gmemoryinputstream.h
262 OUT2INC+=gio/gthreadedsocketservice.h
263 OUT2INC+=gio/gdbusmethodinvocation.h
264 OUT2INC+=gio/gmemoryoutputstream.h
265 OUT2INC+=gio/gtlsbackend.h
266 OUT2INC+=gio/gdbusnameowning.h
267 OUT2INC+=gio/gmount.h
268 OUT2INC+=gio/gtlscertificate.h
269 OUT2INC+=gio/gdbusnamewatching.h
270 OUT2INC+=gio/gmountoperation.h
271 OUT2INC+=gio/gtlsclientconnection.h
272 OUT2INC+=gio/gdbusproxy.h
273 OUT2INC+=gio/gnativevolumemonitor.h
274 OUT2INC+=gio/gtlsconnection.h
275 OUT2INC+=gio/gdbusserver.h
276 OUT2INC+=gio/gnetworkaddress.h
277 OUT2INC+=gio/gtlsserverconnection.h
278 OUT2INC+=gio/gdbusutils.h
279 OUT2INC+=gio/gnetworkservice.h
280 OUT2INC+=gio/gvfs.h
281 OUT2INC+=gio/gdrive.h
282 OUT2INC+=gio/goutputstream.h
283 OUT2INC+=gio/gvolume.h
284 OUT2INC+=gio/gemblem.h
285 OUT2INC+=gio/gpermission.h
286 OUT2INC+=gio/gvolumemonitor.h
287 OUT2INC+=gio/gemblemedicon.h
288 OUT2INC+=gio/gpollableinputstream.h
289 OUT2INC+=gio/gzlibcompressor.h
290 OUT2INC+=gio/gfile.h
291 OUT2INC+=gio/gpollableoutputstream.h
292 OUT2INC+=gio/gzlibdecompressor.h
293 OUT2INC+=gio/gfileattribute.h
294 OUT2INC+=gio/gproxy.h
295 OUT2INC+=gio/gfileenumerator.h
296 OUT2INC+=gio/gproxyaddress.h
298 OUT2INC+=glib/galloca.h
299 OUT2INC+=glib/gconvert.h
300 OUT2INC+=glib/gi18n.h
301 OUT2INC+=glib/goption.h
302 OUT2INC+=glib/gscanner.h
303 OUT2INC+=glib/gthreadpool.h
304 OUT2INC+=glib/garray.h
305 OUT2INC+=glib/gdataset.h
306 OUT2INC+=glib/giochannel.h
307 OUT2INC+=glib/gpattern.h
308 OUT2INC+=glib/gsequence.h
309 OUT2INC+=glib/gtimer.h
310 OUT2INC+=glib/gasyncqueue.h
311 OUT2INC+=glib/gdate.h
312 OUT2INC+=glib/gkeyfile.h
313 OUT2INC+=glib/gpoll.h
314 OUT2INC+=glib/gshell.h
315 OUT2INC+=glib/gtimezone.h
316 OUT2INC+=glib/gatomic.h
317 OUT2INC+=glib/gdatetime.h
318 OUT2INC+=glib/glist.h
319 OUT2INC+=glib/gprimes.h
320 OUT2INC+=glib/gslice.h
321 OUT2INC+=glib/gtree.h
322 OUT2INC+=glib/gbacktrace.h
323 OUT2INC+=glib/gdir.h
324 OUT2INC+=glib/gmacros.h
325 OUT2INC+=glib/gprintf.h
326 OUT2INC+=glib/gslist.h
327 OUT2INC+=glib/gtypes.h
328 OUT2INC+=glib/gbase64.h
329 OUT2INC+=glib/gerror.h
330 OUT2INC+=glib/gmain.h
331 OUT2INC+=glib/gqsort.h
332 OUT2INC+=glib/gspawn.h
333 OUT2INC+=glib/gunicode.h
334 OUT2INC+=glib/gbitlock.h
335 OUT2INC+=glib/gfileutils.h
336 OUT2INC+=glib/gmappedfile.h
337 OUT2INC+=glib/gquark.h
338 OUT2INC+=glib/gstdio.h
339 OUT2INC+=glib/gurifuncs.h
340 OUT2INC+=glib/gbookmarkfile.h
341 OUT2INC+=glib/ghash.h
342 OUT2INC+=glib/gmarkup.h
343 OUT2INC+=glib/gqueue.h
344 OUT2INC+=glib/gstrfuncs.h
345 OUT2INC+=glib/gutils.h
346 OUT2INC+=glib/gcache.h
347 OUT2INC+=glib/ghook.h
348 OUT2INC+=glib/gmem.h
349 OUT2INC+=glib/grand.h
350 OUT2INC+=glib/gstring.h
351 OUT2INC+=glib/gvariant.h
352 OUT2INC+=glib/gchecksum.h
353 OUT2INC+=glib/ghostutils.h
354 OUT2INC+=glib/gmessages.h
355 OUT2INC+=glib/gregex.h
356 OUT2INC+=glib/gtestutils.h
357 OUT2INC+=glib/gvarianttype.h
358 OUT2INC+=glib/gcompletion.h
359 OUT2INC+=glib/gi18n-lib.h
360 OUT2INC+=glib/gnode.h
361 OUT2INC+=glib/grel.h
362 OUT2INC+=glib/gthread.h
363 OUT2INC+=glib/gwin32.h
366 OUT2INC+=gobject/gbinding.h
367 OUT2INC+=gobject/gmarshal.h
368 OUT2INC+=gobject/gparamspecs.h
369 OUT2INC+=gobject/gtypemodule.h
370 OUT2INC+=gobject/gvaluecollector.h
371 OUT2INC+=gobject/gboxed.h
372 OUT2INC+=gobject/gobject.h
373 OUT2INC+=gobject/gsignal.h
374 OUT2INC+=gobject/gtypeplugin.h
375 OUT2INC+=gobject/gvaluetypes.h
376 OUT2INC+=gobject/gclosure.h
377 OUT2INC+=gobject/gobjectnotifyqueue.c
378 OUT2INC+=gobject/gsourceclosure.h
379 OUT2INC+=gobject/gvalue.h
380 OUT2INC+=gobject/genums.h
381 OUT2INC+=gobject/gparam.h
382 OUT2INC+=gobject/gtype.h
383 OUT2INC+=gobject/gvaluearray.h
385 # --- Targets ------------------------------------------------------
387 .INCLUDE : set_ext.mk
388 .INCLUDE : target.mk
389 .INCLUDE : tg_ext.mk