1 #*************************************************************************
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 # Copyright 2008 by Sun Microsystems, Inc.
7 # OpenOffice.org - a multi-platform office productivity suite
13 # This file is part of OpenOffice.org.
15 # OpenOffice.org is free software: you can redistribute it and/or modify
16 # it under the terms of the GNU Lesser General Public License version 3
17 # only, as published by the Free Software Foundation.
19 # OpenOffice.org is distributed in the hope that it will be useful,
20 # but WITHOUT ANY WARRANTY; without even the implied warranty of
21 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 # GNU Lesser General Public License version 3 for more details
23 # (a copy is included in the LICENSE file that accompanied this code).
25 # You should have received a copy of the GNU Lesser General Public License
26 # version 3 along with OpenOffice.org. If not, see
27 # <http://www.openoffice.org/license.html>
28 # for a copy of the LGPLv3 License.
30 #*************************************************************************
32 # --- Unix-Environment ---------------------------------------
33 # Used if "$(GUI)" == "UNX"
36 # Dieses Define gilt fuer alle WNT- Plattformen
37 # fuer Compiler, wo kein Java unterstuetzt wird, muss dies ge'undeft werden
42 .IF
"$(COM)$(OS)$(CPU)" == "C50SOLARISS"
43 .INCLUDE
: unxsols2.mk
46 .IF
"$(COM)$(OS)$(CPU)" == "C50SOLARISI"
47 .INCLUDE
: unxsoli2.mk
50 .IF
"$(OS)$(CPU)$(COMEX)" == "SOLARISS3"
51 .INCLUDE
: unxsols3.mk
54 .IF
"$(OS)$(CPU)$(COMEX)" == "SOLARISI3"
55 .INCLUDE
: unxsoli3.mk
58 .IF
"$(OS)$(CPU)$(COMEX)" == "SOLARISS4"
59 .INCLUDE
: unxsols4.mk
62 .IF
"$(OS)$(CPU)$(COMEX)" == "SOLARISI4"
63 .INCLUDE
: unxsoli4.mk
66 .IF
"$(OS)$(CPU)$(COMEX)" == "SOLARISU4"
67 .INCLUDE
: unxsolu4.mk
70 .IF
"$(OS)$(CPU)$(COMEX)" == "SOLARISX4"
71 .INCLUDE
: unxsolx4.mk
74 .IF
"$(COM)$(OS)$(CPU)" == "GCCSOLARISS"
78 .IF
"$(COM)$(OS)$(CPU)" == "GCCSOLARISI"
82 .IF
"$(COM)$(OS)$(CPU)" == "GCCSCOI"
86 .IF
"$(COM)$(OS)$(CPU)$(GLIBC)" == "GCCLINUXI"
90 .IF
"$(COM)$(OS)$(CPU)$(GLIBC)" == "GCCLINUXP2"
94 .IF
"$(COM)$(OS)$(CPU)" == "GCCLINUXS"
98 .IF
"$(COM)$(CVER)$(OS)$(CPU)$(GLIBC)" == "GCCC295LINUXI2REDHAT60"
99 .INCLUDE
: unxlngi3.mk
102 .IF
"$(COM)$(CVER)$(OS)$(CPU)$(GLIBC)" == "GCCC300LINUXI2REDHAT60"
103 .INCLUDE
: unxlngi4.mk
106 .IF
"$(COM)$(CVER)$(OS)$(CPU)$(GLIBC)" == "GCCC322LINUXI2REDHAT60"
107 .INCLUDE
: unxlngi5.mk
110 .IF
"$(COM)$(CVER)$(OS)$(CPU)$(GLIBC)" == "GCCC341LINUXI2REDHAT60"
111 .INCLUDE
: unxlngi6.mk
114 .IF
"$(COM)$(CVER)$(OS)$(CPU)$(GLIBC)" == "GCCC432LINUXI2SUSE90"
115 .INCLUDE
: unxlngi6.mk
118 .IF
"$(COM)$(CVER)$(OS)$(CPU)$(GLIBC)" == "GCCC341LINUXX2REDHAT60"
119 .INCLUDE
: unxlngx6.mk
122 .IF
"$(COM)$(CVER)$(OS)$(CPU)$(GLIBC)" == "GCCC295LINUXP2REDHAT60"
123 .INCLUDE
: unxlngppc.mk
126 .IF
"$(COM)$(CVER)$(OS)$(CPU)$(GLIBC)$(CPUNAME)" == "GCCC300LINUXP2REDHAT60POWERPC"
127 .INCLUDE
: unxlngppc4.mk
130 .IF
"$(COM)$(CVER)$(OS)$(CPU)$(GLIBC)$(CPUNAME)" == "GCCC300LINUXP2REDHAT60POWERPC64"
131 .INCLUDE
: unxlngppc64.mk
134 .IF
"$(COM)$(CVER)$(OS)$(CPU)$(GLIBC)$(CPUNAME)" == "GCCC300LINUX32REDHAT60S390"
135 .INCLUDE
: unxlngs3904.mk
138 .IF
"$(COM)$(CVER)$(OS)$(CPU)$(GLIBC)$(CPUNAME)" == "GCCC300LINUX32REDHAT60S390X"
139 .INCLUDE
: unxlngs390x.mk
142 .IF
"$(COM)$(OS)$(CPU)$(GLIBC)" == "GCCLINUXR2REDHAT60"
143 .INCLUDE
: unxlngr.mk
146 .IF
"$(COM)$(OS)$(CPU)$(GLIBC)" == "GCCLINUXA2REDHAT60"
147 .INCLUDE
: unxlnga.mk
150 .IF
"$(COM)$(OS)$(CPU)" == "ACCHPUXR"
151 .INCLUDE
: unxhpxr.mk
154 .IF
"$(COM)$(OS)$(CPU)" == "GCCHPUXR"
155 .INCLUDE
: unxhpgr.mk
158 .IF
"$(COM)$(OS)$(CPU)" == "GCCNETBSDA"
159 .INCLUDE
: unxbsda.mk
162 .IF
"$(COM)$(OS)$(CPU)" == "ICCAIXP"
163 .INCLUDE
: unxaixp.mk
166 .IF
"$(COM)$(CVER)$(OS)$(CPU)" == "GCCC295NETBSDI"
167 .INCLUDE
: unxbsdi.mk
170 .IF
"$(COM)$(CVER)$(OS)$(CPU)" == "GCCC300NETBSDI"
171 .INCLUDE
: unxbsdi2.mk
174 .IF
"$(COM)$(OS)$(CPU)" == "GCCNETBSDS"
175 .INCLUDE
: unxbsds.mk
178 .IF
"$(COM)$(OS)" == "GCCFREEBSD"
179 .INCLUDE
: unxfbsd.mk
182 .IF
"$(COM)$(OS)$(CPU)" == "C730IRIXM"
183 .INCLUDE
: unxirxm3.mk
186 .IF
"$(COM)$(OS)$(CPU)" == "GCCIRIXM"
187 .INCLUDE
: unxirgm.mk
190 .IF
"$(COM)$(OS)$(CPU)" == "C710IRIXM"
191 .INCLUDE
: unxirxm.mk
194 .IF
"$(COM)$(OS)$(CPU)" == "GCCMACOSXP"
195 .INCLUDE
: unxmacxp.mk
198 .IF
"$(COM)$(OS)$(CPU)" == "GCCMACOSXI"
199 .INCLUDE
: unxmacxi.mk
202 .IF
"$(COM)$(OS)$(CPU)" == "GCCLINUXM"
203 .INCLUDE
: unxlngmips.mk
206 .IF
"$(COM)$(OS)$(CPU)" == "GCCLINUX6"
207 .INCLUDE
: unxlngm68k.mk
210 # --- general *ix settings ---
218 # fuer linux: bison -y -d
225 SOLARSHAREDBIN
=$(SOLARLIBDIR
)
228 .IF
"$(UNIXVERSIONNAMES)"!=""
229 DLLPOST
!:=$(DLLPOST
).
$($(UNIXVERSIONNAMES
)_MAJOR
)
230 .ENDIF
# "$(UNIXVERSIONNAMES)"!=""
232 # enable building/linking KDE-dependent code in both OOo and SO build environment
233 .IF
"$(ENABLE_KDE)" != ""
234 .IF
"$(KDE_ROOT)"!=""
235 KDE_CFLAGS
:=-I
$(KDE_ROOT
)/include -DQT_CLEAN_NAMESPACE
236 KDE_LIBS
:=-lkdeui
-lkdecore
-lqt-mt
237 SOLARLIB
+=-L
$(KDE_ROOT
)/lib
238 .ENDIF
# "$(KDE_ROOT)"!=""
239 .ENDIF
# "$(ENABLE_KDE)" != ""
241 # Add SOLARLIBDIR to the end of a (potentially previously undefined)
242 # LD_LIBRARY_PATH (there is no real reason to prefer adding at the end over
243 # adding at the start); the ": &&" in the bash case enables this to work at the
244 # start of a recipe line that is not prefixed by "+" as well as in the middle of
245 # an existing && chain; the tcsh case is somewhat imprecise in that it
246 # potentially affects multiple commands following on the recipe line:
247 .IF
"$(USE_SHELL)" == "bash"
248 AUGMENT_LIBRARY_PATH
*= : && \
249 LD_LIBRARY_PATH
=$${{LD_LIBRARY_PATH
+$${{LD_LIBRARY_PATH
}}:}}$(SOLARLIBDIR
)
251 AUGMENT_LIBRARY_PATH
*= if
($$?LD_LIBRARY_PATH
== 1) \
252 eval
'setenv LD_LIBRARY_PATH "$${{LD_LIBRARY_PATH}}:$(SOLARLIBDIR)"' && \
253 if
($$?LD_LIBRARY_PATH
== 0) setenv LD_LIBRARY_PATH
"$(SOLARLIBDIR)" &&