Version 4.0.0.1, tag libreoffice-4.0.0.1
[LibreOffice.git] / solenv / inc / unx.mk
blob77bfae6e3321a06bd0daeb0ef8b27228d7e8f5f1
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 # --- 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
34 #JAVADEF=-DSOLAR_JAVA
36 # --- Compiler ---
38 .IF "$(OS)$(CPU)$(COMEX)" == "SOLARISS4"
39 .INCLUDE : unxsols4.mk
40 .ENDIF
42 .IF "$(OS)$(CPU)$(COMEX)" == "SOLARISI4"
43 .INCLUDE : unxsoli4.mk
44 .ENDIF
46 .IF "$(OS)$(CPU)$(COMEX)" == "SOLARISU4"
47 .INCLUDE : unxsolu4.mk
48 .ENDIF
50 .IF "$(COM)$(OS)$(CPU)" == "GCCSOLARISS"
51 .INCLUDE : unxsogs.mk
52 .ENDIF
54 .IF "$(COM)$(OS)$(CPU)" == "GCCSOLARISI"
55 .INCLUDE : unxsogi.mk
56 .ENDIF
58 .IF "$(COM)$(OS)$(CPU)" == "GCCLINUXS"
59 .INCLUDE : unxlngs.mk
60 .ENDIF
62 .IF "$(COM)$(OS)$(CPU)" == "GCCLINUXI"
63 .INCLUDE : unxlngi.mk
64 .ENDIF
66 .IF "$(COM)$(OS)$(CPU)" == "GCCLINUXX"
67 .INCLUDE : unxlngx.mk
68 .ENDIF
70 .IF "$(COM)$(OS)$(CPU)$(CPUNAME)" == "GCCLINUXPPOWERPC"
71 .INCLUDE : unxlngppc.mk
72 .ENDIF
74 .IF "$(COM)$(OS)$(CPU)$(CPUNAME)" == "GCCLINUXPPOWERPC64"
75 .INCLUDE : unxlngppc64.mk
76 .ENDIF
78 .IF "$(COM)$(OS)$(CPU)" == "GCCAIXP"
79 .INCLUDE : unxaigppc.mk
80 .ENDIF
82 .IF "$(COM)$(OS)$(CPU)$(CPUNAME)" == "GCCLINUX3S390"
83 .INCLUDE : unxlngs390.mk
84 .ENDIF
86 .IF "$(COM)$(OS)$(CPU)$(CPUNAME)" == "GCCLINUX3S390X"
87 .INCLUDE : unxlngs390x.mk
88 .ENDIF
90 .IF "$(COM)$(OS)$(CPU)" == "GCCLINUXR"
91 .INCLUDE : unxlngr.mk
92 .ENDIF
94 .IF "$(COM)$(OS)" == "GCCANDROID"
95 .INCLUDE : unxand.mk
96 .ENDIF
98 .IF "$(COM)$(OS)$(CPU)" == "GCCLINUXA"
99 .INCLUDE : unxlnga.mk
100 .ENDIF
102 .IF "$(COM)$(OS)" == "GCCNETBSD"
103 .INCLUDE : unxnbsd.mk
104 .ENDIF
106 .IF "$(COM)$(OS)" == "GCCFREEBSD"
107 .INCLUDE : unxfbsd.mk
108 .ENDIF
110 .IF "$(COM)$(OS)" == "GCCOPENBSD"
111 .INCLUDE : unxobsd.mk
112 .ENDIF
114 .IF "$(COM)$(OS)" == "GCCDRAGONFLY"
115 .INCLUDE : unxdfly.mk
116 .ENDIF
118 .IF "$(COM)$(OS)$(CPU)" == "GCCMACOSXP"
119 .INCLUDE : unxmacxp.mk
120 .ENDIF
122 .IF "$(COM)$(OS)$(CPU)" == "GCCMACOSXI"
123 .INCLUDE : unxmacxi.mk
124 .ENDIF
126 .IF "$(COM)$(OS)$(CPU)" == "GCCMACOSXX"
127 .INCLUDE : unxmacxx.mk
128 .ENDIF
130 .IF "$(COM)$(OS)$(CPU)" == "GCCIOSR"
131 .INCLUDE : unxiosr.mk
132 .ENDIF
134 .IF "$(COM)$(OS)$(CPU)" == "GCCLINUXM"
135 .INCLUDE : unxlngmips.mk
136 .ENDIF
138 .IF "$(COM)$(OS)$(CPU)" == "GCCLINUX6"
139 .INCLUDE : unxlngm68k.mk
140 .ENDIF
142 .IF "$(COM)$(OS)$(CPU)" == "GCCLINUXH"
143 .INCLUDE : unxlnghppa.mk
144 .ENDIF
146 .IF "$(COM)$(OS)$(CPU)" == "GCCLINUXL"
147 .INCLUDE : unxlngaxp.mk
148 .ENDIF
150 # --- general *ix settings ---
151 HC=hc
152 HCFLAGS=
153 PATH_SEPERATOR*=:
154 CDEFS+=-D__DMAKE
156 CDEFS+=-DUNIX
158 # fuer linux: bison -y -d
159 YACC*=yacc
160 YACCFLAGS*=-d -t
162 EXECPOST=
163 SCPPOST=.ins
164 DLLDEST=$(LB)
165 SOLARSHAREDBIN=$(SOLARLIBDIR_FOR_BUILD)
166 SONAME_SWITCH*=-h
168 .IF "$(UNIXVERSIONNAMES)"!=""
169 .IF "$(OS)"!="IOS" && "$(OS)"!="ANDROID"
170 DLLPOST!:=$(DLLPOST).$($(UNIXVERSIONNAMES)_MAJOR)
171 .ENDIF
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
200 .ELSE
201 OOO_LIBRARY_PATH_VAR *= LD_LIBRARY_PATH
202 .ENDIF