1 #*************************************************************************
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
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 # --- Unix-Environment ---------------------------------------
29 # Used if "$(GUI)" == "UNX"
32 # Dieses Define gilt fuer alle WNT- Plattformen
33 # fuer Compiler, wo kein Java unterstuetzt wird, muss dies ge'undeft werden
38 .IF
"$(OS)$(CPU)$(COMEX)" == "SOLARISS4"
39 .INCLUDE
: unxsols4.mk
42 .IF
"$(OS)$(CPU)$(COMEX)" == "SOLARISI4"
43 .INCLUDE
: unxsoli4.mk
46 .IF
"$(OS)$(CPU)$(COMEX)" == "SOLARISU4"
47 .INCLUDE
: unxsolu4.mk
50 .IF
"$(COM)$(OS)$(CPU)" == "GCCSOLARISS"
54 .IF
"$(COM)$(OS)$(CPU)" == "GCCSOLARISI"
58 .IF
"$(COM)$(OS)$(CPU)" == "GCCLINUXS"
62 .IF
"$(COM)$(OS)$(CPU)" == "GCCLINUXI"
66 .IF
"$(COM)$(OS)$(CPU)" == "GCCLINUXX"
70 .IF
"$(COM)$(OS)$(CPU)$(CPUNAME)" == "GCCLINUXPPOWERPC"
71 .INCLUDE
: unxlngppc.mk
74 .IF
"$(COM)$(OS)$(CPU)$(CPUNAME)" == "GCCLINUXPPOWERPC64"
75 .INCLUDE
: unxlngppc64.mk
78 .IF
"$(COM)$(OS)$(CPU)" == "GCCAIXP"
79 .INCLUDE
: unxaigppc.mk
82 .IF
"$(COM)$(OS)$(CPU)$(CPUNAME)" == "GCCLINUX3S390"
83 .INCLUDE
: unxlngs390.mk
86 .IF
"$(COM)$(OS)$(CPU)$(CPUNAME)" == "GCCLINUX3S390X"
87 .INCLUDE
: unxlngs390x.mk
90 .IF
"$(COM)$(OS)$(CPU)" == "GCCLINUXR"
94 .IF
"$(COM)$(OS)" == "GCCANDROID"
98 .IF
"$(COM)$(OS)$(CPU)" == "GCCLINUXA"
102 .IF
"$(COM)$(OS)" == "GCCNETBSD"
103 .INCLUDE
: unxnbsd.mk
106 .IF
"$(COM)$(OS)" == "GCCFREEBSD"
107 .INCLUDE
: unxfbsd.mk
110 .IF
"$(COM)$(OS)" == "GCCOPENBSD"
111 .INCLUDE
: unxobsd.mk
114 .IF
"$(COM)$(OS)" == "GCCDRAGONFLY"
115 .INCLUDE
: unxdfly.mk
118 .IF
"$(COM)$(OS)$(CPU)" == "GCCMACOSXP"
119 .INCLUDE
: unxmacxp.mk
122 .IF
"$(COM)$(OS)$(CPU)" == "GCCMACOSXI"
123 .INCLUDE
: unxmacxi.mk
126 .IF
"$(COM)$(OS)$(CPU)" == "GCCMACOSXX"
127 .INCLUDE
: unxmacxx.mk
130 .IF
"$(COM)$(OS)$(CPU)" == "GCCIOSR"
131 .INCLUDE
: unxiosr.mk
134 .IF
"$(COM)$(OS)$(CPU)" == "GCCLINUXM"
135 .INCLUDE
: unxlngmips.mk
138 .IF
"$(COM)$(OS)$(CPU)" == "GCCLINUX6"
139 .INCLUDE
: unxlngm68k.mk
142 .IF
"$(COM)$(OS)$(CPU)" == "GCCLINUXH"
143 .INCLUDE
: unxlnghppa.mk
146 .IF
"$(COM)$(OS)$(CPU)" == "GCCLINUXL"
147 .INCLUDE
: unxlngaxp.mk
150 # --- general *ix settings ---
158 # fuer linux: bison -y -d
165 SOLARSHAREDBIN
=$(SOLARLIBDIR_FOR_BUILD
)
168 .IF
"$(UNIXVERSIONNAMES)"!=""
169 .IF
"$(OS)"!="IOS" && "$(OS)"!="ANDROID"
170 DLLPOST
!:=$(DLLPOST
).
$($(UNIXVERSIONNAMES
)_MAJOR
)
172 .ENDIF
# "$(UNIXVERSIONNAMES)"!=""
174 # enable building/linking TDE-dependent code in both OOo and SO build environment
175 .IF
"$(ENABLE_TDE)" != ""
176 .IF
"$(TDE_ROOT)"!=""
177 TDE_CFLAGS
:=-I
$(TDE_ROOT
)/include -I
/usr
/include/tqt
-DQT_CLEAN_NAMESPACE
178 TDE_LIBS
:=-ltdeui
-ltdecore
-ltqt
-ltqt-mt
179 SOLARLIB
+=-L
$(TDE_ROOT
)/lib
180 .IF
"$(OS)$(CPU)" == "LINUXX"
181 SOLARLIB
+=-L
$(TDE_ROOT
)/lib64
182 .ENDIF
# "$(OS)$(CPU)" == "LINUXX"
183 .ENDIF
# "$(TDE_ROOT)"!=""
184 .ENDIF
# "$(ENABLE_TDE)" != ""
186 # enable building/linking KDE-dependent code in both OOo and SO build environment
187 .IF
"$(ENABLE_KDE)" != ""
188 .IF
"$(KDE_ROOT)"!=""
189 KDE_CFLAGS
:=-I
$(KDE_ROOT
)/include -DQT_CLEAN_NAMESPACE
190 KDE_LIBS
:=-lkdeui
-lkdecore
-lqt-mt
191 SOLARLIB
+=-L
$(KDE_ROOT
)/lib
192 .IF
"$(OS)$(CPU)" == "LINUXX"
193 SOLARLIB
+=-L
$(KDE_ROOT
)/lib64
194 .ENDIF
# "$(OS)$(CPU)" == "LINUXX"
195 .ENDIF
# "$(KDE_ROOT)"!=""
196 .ENDIF
# "$(ENABLE_KDE)" != ""
198 .IF
"$(OS_FOR_BUILD)" == "MACOSX"
199 OOO_LIBRARY_PATH_VAR
*= DYLD_LIBRARY_PATH
201 OOO_LIBRARY_PATH_VAR
*= LD_LIBRARY_PATH