2000-10-29 23:00:05 -06:00
|
|
|
#*************************************************************************
|
|
|
|
#
|
2008-04-10 11:44:42 -05:00
|
|
|
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
|
|
#
|
2010-02-12 08:01:35 -06:00
|
|
|
# Copyright 2000, 2010 Oracle and/or its affiliates.
|
2000-10-29 23:00:05 -06:00
|
|
|
#
|
2008-04-10 11:44:42 -05:00
|
|
|
# OpenOffice.org - a multi-platform office productivity suite
|
2000-10-29 23:00:05 -06:00
|
|
|
#
|
2008-04-10 11:44:42 -05:00
|
|
|
# This file is part of OpenOffice.org.
|
2000-10-29 23:00:05 -06:00
|
|
|
#
|
2008-04-10 11:44:42 -05:00
|
|
|
# OpenOffice.org is free software: you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU Lesser General Public License version 3
|
|
|
|
# only, as published by the Free Software Foundation.
|
2000-10-29 23:00:05 -06:00
|
|
|
#
|
2008-04-10 11:44:42 -05:00
|
|
|
# OpenOffice.org is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU Lesser General Public License version 3 for more details
|
|
|
|
# (a copy is included in the LICENSE file that accompanied this code).
|
2000-10-29 23:00:05 -06:00
|
|
|
#
|
2008-04-10 11:44:42 -05:00
|
|
|
# You should have received a copy of the GNU Lesser General Public License
|
|
|
|
# version 3 along with OpenOffice.org. If not, see
|
|
|
|
# <http://www.openoffice.org/license.html>
|
|
|
|
# for a copy of the LGPLv3 License.
|
2000-10-29 23:00:05 -06:00
|
|
|
#
|
|
|
|
#*************************************************************************
|
2005-03-18 03:15:12 -06:00
|
|
|
|
2008-03-05 09:34:39 -06:00
|
|
|
# Common tools - move this to the end / consolidate
|
2009-09-07 08:35:07 -05:00
|
|
|
TRANSEX*=$(AUGMENT_LIBRARY_PATH) $(SOLARBINDIR)/transex3
|
|
|
|
ULFEX*=$(AUGMENT_LIBRARY_PATH) $(SOLARBINDIR)/ulfex
|
|
|
|
XMLEX*=$(AUGMENT_LIBRARY_PATH) $(SOLARBINDIR)/xmlex
|
|
|
|
XRMEX*=$(AUGMENT_LIBRARY_PATH) $(SOLARBINDIR)/xrmex
|
|
|
|
CFGEX*=$(AUGMENT_LIBRARY_PATH) $(SOLARBINDIR)/cfgex
|
|
|
|
AUTODOC*=$(AUGMENT_LIBRARY_PATH) $(SOLARBINDIR)/autodoc
|
|
|
|
LOCALIZE_SL*=$(AUGMENT_LIBRARY_PATH) $(SOLARBINDIR)/localize_sl
|
|
|
|
GSICHECK*=$(AUGMENT_LIBRARY_PATH) $(SOLARBINDIR)/gsicheck
|
2009-06-16 13:11:49 -05:00
|
|
|
|
|
|
|
.IF "$(SYSTEM_LIBXSLT)"!="YES"
|
2009-09-07 08:35:07 -05:00
|
|
|
XSLTPROC*=$(AUGMENT_LIBRARY_PATH) $(SOLARBINDIR)/xsltproc
|
2009-06-16 13:11:49 -05:00
|
|
|
.ELSE # "$(SYSTEM_LIBXSLT)"!="YES"
|
2009-02-23 07:23:11 -06:00
|
|
|
XSLTPROC*=$(AUGMENT_LIBRARY_PATH) xsltproc
|
2009-06-16 13:11:49 -05:00
|
|
|
.ENDIF # "$(SYSTEM_LIBXSLT)"!="YES"
|
2004-09-08 08:59:14 -05:00
|
|
|
|
2009-09-07 08:35:07 -05:00
|
|
|
ULFCONV*=$(AUGMENT_LIBRARY_PATH) $(SOLARBINDIR)/ulfconv
|
2004-10-18 07:56:17 -05:00
|
|
|
|
2009-09-07 08:35:07 -05:00
|
|
|
MAKEDEPEND*=$(AUGMENT_LIBRARY_PATH) $(SOLARBINDIR)/makedepend
|
2005-03-18 03:15:12 -06:00
|
|
|
|
|
|
|
SCP_CHECK_TOOL:=checkscp$E
|
|
|
|
|
2004-09-09 05:19:31 -05:00
|
|
|
# iz32110: Calling a cygwin application from a non-cygwin shell requires
|
|
|
|
# backslashes to be escaped by another backslash: EES .. extra escape slash
|
2005-03-18 03:15:12 -06:00
|
|
|
EES:=
|
|
|
|
|
|
|
|
# iz29675: 4nt must not quote special characters, but tcsh has to.
|
|
|
|
# *NIX shells needs to use " quotes, but 4nt must not.
|
|
|
|
# EMQ .. extra meta quote (\\ at line end is \)
|
|
|
|
# USQ .. unix shell quote
|
|
|
|
EMQ:=\\
|
|
|
|
USQ:="
|
|
|
|
|
|
|
|
NULLDEV:=/dev/null
|
|
|
|
|
2009-06-17 08:15:46 -05:00
|
|
|
|
2006-07-05 15:59:58 -05:00
|
|
|
# iz29609 helpmacro to check if file exists
|
2009-06-17 08:15:46 -05:00
|
|
|
IFEXIST:=if [ -f
|
|
|
|
IFNOTEXIST:= if ! test -f
|
|
|
|
THEN:= ] ; then
|
2006-07-05 15:59:58 -05:00
|
|
|
FI:= ; fi
|
|
|
|
PIPEERROR=2>&1 |
|
2005-03-18 03:15:12 -06:00
|
|
|
|
|
|
|
# iz31658
|
2009-05-28 11:03:55 -05:00
|
|
|
CHECKZIPRESULT:=|| ret=$$?; if [[ "$$ret" != "12" && "$$ret" != "1" ]] ; then exit $$ret ; fi && echo "Nothing to update for zip"
|
2005-03-18 03:15:12 -06:00
|
|
|
|
|
|
|
# Platform specific
|
2003-04-01 06:34:43 -06:00
|
|
|
.IF "$(GUI)"=="WNT"
|
2000-10-11 09:01:18 -05:00
|
|
|
AWK*=awk
|
2001-11-15 09:11:34 -06:00
|
|
|
SORT*=sort
|
2000-09-20 08:43:26 -05:00
|
|
|
SED*=sed
|
2009-03-16 04:15:41 -05:00
|
|
|
GNUPATCH*=patch
|
2004-07-13 10:30:07 -05:00
|
|
|
# change drive and directory
|
2004-07-16 07:14:42 -05:00
|
|
|
CDD=cd
|
2002-03-14 05:46:17 -06:00
|
|
|
# expect cygwin tools to exist
|
|
|
|
COPY*=cp
|
|
|
|
COPYRECURSE=-r
|
2009-08-26 03:22:01 -05:00
|
|
|
DEREFERENCE=-L
|
2002-03-14 05:46:17 -06:00
|
|
|
COPYUPDATE=-u
|
|
|
|
ECHON=echo -n
|
|
|
|
ECHONL=echo
|
|
|
|
FIND*=find
|
2009-10-16 06:24:44 -05:00
|
|
|
FLIPCMD*=$(PERL) $(SOLARENV)/bin/slfl.pl
|
2002-03-14 05:46:17 -06:00
|
|
|
GNUCOPY*=cp
|
|
|
|
GNUMAKE*=make
|
|
|
|
GREP*=grep
|
|
|
|
LS*=ls
|
|
|
|
PERL*:=perl
|
2007-06-07 04:27:53 -05:00
|
|
|
.EXPORT : PERL
|
2002-03-14 05:46:17 -06:00
|
|
|
RENAME*=mv
|
|
|
|
TOUCH*=touch
|
|
|
|
TYPE*=cat
|
2008-03-05 09:34:39 -06:00
|
|
|
DUMPBIN*=dumpbin
|
2001-04-06 08:27:08 -05:00
|
|
|
|
2003-04-01 06:34:43 -06:00
|
|
|
.ELIF "$(GUI)"=="UNX" # "$(GUI)"=="WNT"
|
2000-09-20 08:43:26 -05:00
|
|
|
SED*=sed
|
2001-11-15 09:11:34 -06:00
|
|
|
SORT*=sort
|
2005-03-18 09:40:05 -06:00
|
|
|
PERL*=perl
|
2007-06-07 04:27:53 -05:00
|
|
|
.EXPORT : PERL
|
2000-09-20 08:43:26 -05:00
|
|
|
TYPE=cat
|
2004-07-13 10:30:07 -05:00
|
|
|
CDD=cd
|
2000-09-20 08:43:26 -05:00
|
|
|
COPY=cp -f
|
2011-05-23 18:30:43 -05:00
|
|
|
.IF "$(OS_FOR_BUILD)"=="MACOSX" || "$(OS_FOR_BUILD)"=="NETBSD" || "$(OS_FOR_BUILD)"=="OPENBSD" || \
|
|
|
|
"$(OS_FOR_BUILD)"=="DRAGONFLY"
|
2009-08-26 03:22:01 -05:00
|
|
|
COPYRECURSE=-R
|
2011-05-23 18:30:43 -05:00
|
|
|
.ELSE # Not BSD based ones:
|
2001-06-22 10:06:10 -05:00
|
|
|
COPYRECURSE=-r
|
2009-08-26 03:22:01 -05:00
|
|
|
.ENDIF
|
2000-09-20 08:43:26 -05:00
|
|
|
.IF "$(OS)"=="SOLARIS"
|
2003-06-04 04:40:46 -05:00
|
|
|
AWK*=nawk
|
2003-07-16 12:21:03 -05:00
|
|
|
GNUCOPY*=gnucp
|
|
|
|
GNUPATCH*=gnupatch
|
CWS-TOOLING: integrate CWS boost134
2009-09-09 10:30:24 +0200 fs r275970 : #i100127# provided by rene: check whether system-boost's function.hpp compiles without exception support
2009-09-04 21:58:00 +0200 fs r275832 : indention
2009-09-04 21:57:10 +0200 fs r275831 : #i10000# type in boost/spirit check. Thanks to thb
2009-09-04 10:58:54 +0200 fs r275787 : #i100127# provided by tono@openoffice.org: mingw needs using directives for std::min/max
2009-09-04 10:31:54 +0200 fs r275782 : #i100127# (approved by hjs) on Solaris, set GNUTAR to /usr/sfw/bin/gtar, this is available on baseline machines (Solaris 10.x), but not necessarily available in LD_LIBRARY_PATH
2009-08-19 21:47:55 +0200 rene r275161 : #i10000# check for the header actually used now
2009-08-17 21:55:31 +0200 fs r275073 : CWS-TOOLING: rebase CWS boost134 to trunk@275001 (milestone: DEV300:m55)
2009-07-16 09:39:25 +0200 fs r274031 : #i100127# extract download/% with GNUTAR instead of TAR
2009-07-14 09:18:15 +0200 fs r273960 : CWS-TOOLING: rebase CWS boost134 to trunk@273858 (milestone: DEV300:m52)
2009-07-13 09:55:14 +0200 fs r273919 : #i100127# use boost 1.39, not 1.34
2009-07-13 09:45:57 +0200 fs r273918 : use GNUTAR when extracting download/%.tar.gz, not TAR (necessary with boost 1.39 tarball)
2009-07-10 21:10:52 +0200 fs r273905 : #i100127# spirit now part of boost
2009-07-06 12:12:13 +0200 fs r273732 : #i10000# lngconvex, used in src/wizards, is built in shell => added missing module dependency
2009-07-02 15:34:51 +0200 fs r273660 : #i100127#
2009-07-02 13:35:24 +0200 fs r273645 : #i100127# MSVC needs some hinting when using boost::bind on (some) member functions
2009-07-02 10:33:59 +0200 fs r273625 : removed unused include (lead to an internal compiler error with MSVC and boost 1.34+)
2009-07-02 09:44:35 +0200 fs r273619 : change some include orders, prevents 'internal compiler errors' with MSVC
2009-07-01 09:19:25 +0200 fs r273547 : #i100127# who the heck is defining max as something unusable?
2009-07-01 09:17:28 +0200 fs r273546 : #i100127# defining min/max is causing trouble now
2009-07-01 09:15:40 +0200 fs r273545 : #i100127# reverted previous patch, and properly fixed the problem by defining BOOST_MEM_FN_ENABLE_CDECL, and disabling warning 4180
2009-07-01 09:14:23 +0200 fs r273544 : #i100127# re-disable warning 4180, still needed for some files
2009-07-01 09:07:33 +0200 fs r273543 : #i100127# reverted previous patch, and properly fixed the problem by defining BOOST_MEM_FN_ENABLE_CDECL
2009-06-24 11:00:32 +0200 fs r273319 : oops, re-introduced some inc locations
2009-06-23 22:10:02 +0200 fs r273304 : #i100127# disable warning C4180
2009-06-23 22:08:36 +0200 fs r273303 : #i100127# disable warning C4180
2009-06-16 12:26:49 +0200 fs r273015 : #i10000# (provided by mst@openoffice.org)
2009-06-15 09:10:27 +0200 fs r272962 : #i10000# use -r instead of -a when copying the include files, this prevents the spurious 'failed to preserve ownership' errors
2009-06-11 23:55:06 +0200 fs r272902 : #i100127#
2009-06-11 23:54:47 +0200 fs r272901 : #i100127#
2009-06-11 23:54:05 +0200 fs r272900 : make compile on unxsol[i|s]4
2009-06-10 10:12:22 +0200 fs r272798 : #i100127# don't deliver from within unxlngi6/misc/build/boost, but from a 'normalized' location unxlngi6/inc
2009-06-10 09:48:00 +0200 fs r272795 : #i100127# use 1.34.1 unconditionally on all platforms
2009-09-17 05:11:42 -05:00
|
|
|
GNUTAR*=/usr/sfw/bin/gtar
|
2009-08-26 03:22:01 -05:00
|
|
|
DEREFERENCE=
|
2010-10-13 09:19:49 -05:00
|
|
|
.ELIF "$(OS)"=="AIX"
|
|
|
|
AWK*=/opt/freeware/bin/awk
|
|
|
|
GNUCOPY*=cp
|
|
|
|
GNUPATCH*=/opt/freeware/bin/patch
|
|
|
|
GNUTAR*=gtar
|
|
|
|
DEREFERENCE=-L
|
2000-09-20 08:43:26 -05:00
|
|
|
.ELSE # "$(OS)"=="SOLARIS"
|
2003-06-04 04:40:46 -05:00
|
|
|
AWK*=awk
|
2010-12-02 10:06:54 -06:00
|
|
|
# this is not true, as BSD does not default to a GNU cp, but BSD cp
|
|
|
|
# so in dmake makefiles one should be restricted to use the subset
|
|
|
|
# of features that both BSD and GNU make support.
|
|
|
|
# as the GNU make build system requires GNUCOPY to really be a GNU copy
|
|
|
|
# we work around that for now by not setting GNUCOPY in sdev300.ini
|
|
|
|
# for fbsd for now, but for all other platforms it is set.
|
2003-12-17 11:07:06 -06:00
|
|
|
GNUCOPY*=cp
|
|
|
|
GNUPATCH*=patch
|
2009-08-26 03:22:01 -05:00
|
|
|
DEREFERENCE=-L
|
2000-09-20 08:43:26 -05:00
|
|
|
.ENDIF # "$(OS)"=="SOLARIS"
|
2002-06-07 08:01:43 -05:00
|
|
|
.IF "$(OS)"=="LINUX" || "$(OS)"=="MACOSX"
|
2002-11-04 11:10:43 -06:00
|
|
|
GNUMAKE*=make
|
2002-06-07 08:01:43 -05:00
|
|
|
.ELSE # "$(OS)"=="LINUX" || "$(OS)"=="MACOSX"
|
2002-11-04 11:10:43 -06:00
|
|
|
GNUMAKE*=gmake
|
2002-06-07 08:01:43 -05:00
|
|
|
.ENDIF # "$(OS)"=="LINUX" || "$(OS)"=="MACOSX"
|
2000-09-20 08:43:26 -05:00
|
|
|
TOUCH=touch
|
|
|
|
RENAME=mv
|
|
|
|
GREP=grep
|
|
|
|
FIND=find
|
|
|
|
LS=ls
|
|
|
|
ECHON=echo -n
|
2002-03-14 05:46:17 -06:00
|
|
|
ECHONL=echo
|
2003-04-01 06:34:43 -06:00
|
|
|
.ENDIF # "$(GUI)"=="UNX"
|
2000-09-20 08:43:26 -05:00
|
|
|
|
2008-03-05 09:34:39 -06:00
|
|
|
# (Global) Set if not set before
|
|
|
|
DELAY*=sleep
|
|
|
|
MKDIR*=mkdir$E
|
|
|
|
MKDIRHIER*=mkdir$E -p
|
2008-07-11 08:11:38 -05:00
|
|
|
RMDIR*=rmdir
|
2008-03-05 09:34:39 -06:00
|
|
|
XARGS*=xargs
|
2009-04-23 10:52:08 -05:00
|
|
|
GNUTAR*:=tar
|
2008-03-05 09:34:39 -06:00
|
|
|
|
2000-09-20 08:43:26 -05:00
|
|
|
RM+=$(RMFLAGS)
|
2009-09-07 08:35:07 -05:00
|
|
|
ADJUSTVISIBILITY*=$(AUGMENT_LIBRARY_PATH) $(SOLARBINDIR)/adjustvisibility
|
|
|
|
CONVERT*:=$(PERL) $(SOLARENV)/bin/leconvert.pl
|
|
|
|
EXECTEST := $(PERL) -w $(SOLARENV)/bin/exectest.pl
|
|
|
|
GCCINSTLIB:=$(PERL) -w $(SOLARENV)/bin/gccinstlib.pl
|
2008-10-06 08:36:44 -05:00
|
|
|
|
2010-01-12 11:49:59 -06:00
|
|
|
# The dmake $(PWD) apparantly produces paths with symlinks resolved, while the
|
|
|
|
# bash pwd command by default produces paths with unresolved symlinks, so that
|
|
|
|
# computing PATH_IN_MODULE in settings.mk would fail without the -P flag to the
|
|
|
|
# bash pwd command:
|
2008-10-06 08:36:44 -05:00
|
|
|
PWDFLAGS = -P
|