update dev300-m58
[ooovba.git] / solenv / inc / unx.mk
blobff5349f62496612aad2c348928ab47cc7cbd05f9
1 #*************************************************************************
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 #
5 # Copyright 2008 by Sun Microsystems, Inc.
7 # OpenOffice.org - a multi-platform office productivity suite
9 # $RCSfile: unx.mk,v $
11 # $Revision: 1.40 $
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
38 #JAVADEF=-DSOLAR_JAVA
40 # --- Compiler ---
42 .IF "$(COM)$(OS)$(CPU)" == "C50SOLARISS"
43 .INCLUDE : unxsols2.mk
44 .ENDIF
46 .IF "$(COM)$(OS)$(CPU)" == "C50SOLARISI"
47 .INCLUDE : unxsoli2.mk
48 .ENDIF
50 .IF "$(OS)$(CPU)$(COMEX)" == "SOLARISS3"
51 .INCLUDE : unxsols3.mk
52 .ENDIF
54 .IF "$(OS)$(CPU)$(COMEX)" == "SOLARISI3"
55 .INCLUDE : unxsoli3.mk
56 .ENDIF
58 .IF "$(OS)$(CPU)$(COMEX)" == "SOLARISS4"
59 .INCLUDE : unxsols4.mk
60 .ENDIF
62 .IF "$(OS)$(CPU)$(COMEX)" == "SOLARISI4"
63 .INCLUDE : unxsoli4.mk
64 .ENDIF
66 .IF "$(OS)$(CPU)$(COMEX)" == "SOLARISU4"
67 .INCLUDE : unxsolu4.mk
68 .ENDIF
70 .IF "$(OS)$(CPU)$(COMEX)" == "SOLARISX4"
71 .INCLUDE : unxsolx4.mk
72 .ENDIF
74 .IF "$(COM)$(OS)$(CPU)" == "GCCSOLARISS"
75 .INCLUDE : unxsogs.mk
76 .ENDIF
78 .IF "$(COM)$(OS)$(CPU)" == "GCCSOLARISI"
79 .INCLUDE : unxsogi.mk
80 .ENDIF
82 .IF "$(COM)$(OS)$(CPU)" == "GCCSCOI"
83 .INCLUDE : unxscoi.mk
84 .ENDIF
86 .IF "$(COM)$(OS)$(CPU)$(GLIBC)" == "GCCLINUXI"
87 .INCLUDE : unxlnxi.mk
88 .ENDIF
90 .IF "$(COM)$(OS)$(CPU)$(GLIBC)" == "GCCLINUXP2"
91 .INCLUDE : unxlngp.mk
92 .ENDIF
94 .IF "$(COM)$(OS)$(CPU)" == "GCCLINUXS"
95 .INCLUDE : unxlngs.mk
96 .ENDIF
98 .IF "$(COM)$(CVER)$(OS)$(CPU)$(GLIBC)" == "GCCC295LINUXI2REDHAT60"
99 .INCLUDE : unxlngi3.mk
100 .ENDIF
102 .IF "$(COM)$(CVER)$(OS)$(CPU)$(GLIBC)" == "GCCC300LINUXI2REDHAT60"
103 .INCLUDE : unxlngi4.mk
104 .ENDIF
106 .IF "$(COM)$(CVER)$(OS)$(CPU)$(GLIBC)" == "GCCC322LINUXI2REDHAT60"
107 .INCLUDE : unxlngi5.mk
108 .ENDIF
110 .IF "$(COM)$(CVER)$(OS)$(CPU)$(GLIBC)" == "GCCC341LINUXI2REDHAT60"
111 .INCLUDE : unxlngi6.mk
112 .ENDIF
114 .IF "$(COM)$(CVER)$(OS)$(CPU)$(GLIBC)" == "GCCC432LINUXI2SUSE90"
115 .INCLUDE : unxlngi6.mk
116 .ENDIF
118 .IF "$(COM)$(CVER)$(OS)$(CPU)$(GLIBC)" == "GCCC341LINUXX2REDHAT60"
119 .INCLUDE : unxlngx6.mk
120 .ENDIF
122 .IF "$(COM)$(CVER)$(OS)$(CPU)$(GLIBC)" == "GCCC295LINUXP2REDHAT60"
123 .INCLUDE : unxlngppc.mk
124 .ENDIF
126 .IF "$(COM)$(CVER)$(OS)$(CPU)$(GLIBC)$(CPUNAME)" == "GCCC300LINUXP2REDHAT60POWERPC"
127 .INCLUDE : unxlngppc4.mk
128 .ENDIF
130 .IF "$(COM)$(CVER)$(OS)$(CPU)$(GLIBC)$(CPUNAME)" == "GCCC300LINUXP2REDHAT60POWERPC64"
131 .INCLUDE : unxlngppc64.mk
132 .ENDIF
134 .IF "$(COM)$(CVER)$(OS)$(CPU)$(GLIBC)$(CPUNAME)" == "GCCC300LINUX32REDHAT60S390"
135 .INCLUDE : unxlngs3904.mk
136 .ENDIF
138 .IF "$(COM)$(CVER)$(OS)$(CPU)$(GLIBC)$(CPUNAME)" == "GCCC300LINUX32REDHAT60S390X"
139 .INCLUDE : unxlngs390x.mk
140 .ENDIF
142 .IF "$(COM)$(OS)$(CPU)$(GLIBC)" == "GCCLINUXR2REDHAT60"
143 .INCLUDE : unxlngr.mk
144 .ENDIF
146 .IF "$(COM)$(OS)$(CPU)$(GLIBC)" == "GCCLINUXA2REDHAT60"
147 .INCLUDE : unxlnga.mk
148 .ENDIF
150 .IF "$(COM)$(OS)$(CPU)" == "ACCHPUXR"
151 .INCLUDE : unxhpxr.mk
152 .ENDIF
154 .IF "$(COM)$(OS)$(CPU)" == "GCCHPUXR"
155 .INCLUDE : unxhpgr.mk
156 .ENDIF
158 .IF "$(COM)$(OS)$(CPU)" == "GCCNETBSDA"
159 .INCLUDE : unxbsda.mk
160 .ENDIF
162 .IF "$(COM)$(OS)$(CPU)" == "ICCAIXP"
163 .INCLUDE : unxaixp.mk
164 .ENDIF
166 .IF "$(COM)$(CVER)$(OS)$(CPU)" == "GCCC295NETBSDI"
167 .INCLUDE : unxbsdi.mk
168 .ENDIF
170 .IF "$(COM)$(CVER)$(OS)$(CPU)" == "GCCC300NETBSDI"
171 .INCLUDE : unxbsdi2.mk
172 .ENDIF
174 .IF "$(COM)$(OS)$(CPU)" == "GCCNETBSDS"
175 .INCLUDE : unxbsds.mk
176 .ENDIF
178 .IF "$(COM)$(OS)" == "GCCFREEBSD"
179 .INCLUDE : unxfbsd.mk
180 .ENDIF
182 .IF "$(COM)$(OS)$(CPU)" == "C730IRIXM"
183 .INCLUDE : unxirxm3.mk
184 .ENDIF
186 .IF "$(COM)$(OS)$(CPU)" == "GCCIRIXM"
187 .INCLUDE : unxirgm.mk
188 .ENDIF
190 .IF "$(COM)$(OS)$(CPU)" == "C710IRIXM"
191 .INCLUDE : unxirxm.mk
192 .ENDIF
194 .IF "$(COM)$(OS)$(CPU)" == "GCCMACOSXP"
195 .INCLUDE : unxmacxp.mk
196 .ENDIF
198 .IF "$(COM)$(OS)$(CPU)" == "GCCMACOSXI"
199 .INCLUDE : unxmacxi.mk
200 .ENDIF
202 .IF "$(COM)$(OS)$(CPU)" == "GCCLINUXM"
203 .INCLUDE : unxlngmips.mk
204 .ENDIF
206 .IF "$(COM)$(OS)$(CPU)" == "GCCLINUX6"
207 .INCLUDE : unxlngm68k.mk
208 .ENDIF
210 # --- general *ix settings ---
211 HC=hc
212 HCFLAGS=
213 PATH_SEPERATOR*=:
214 CDEFS+=-D__DMAKE
216 CDEFS+=-DUNIX
218 # fuer linux: bison -y -d
219 YACC*=yacc
220 YACCFLAGS*=-d -t
222 EXECPOST=
223 SCPPOST=.ins
224 DLLDEST=$(LB)
225 SOLARSHAREDBIN=$(SOLARLIBDIR)
226 SONAME_SWITCH*=-h
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)
250 .ELSE
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)" &&
254 .ENDIF