xref: /aoo42x/main/solenv/inc/unx.mk (revision cdf0e10c)
1*cdf0e10cSrcweir#*************************************************************************
2*cdf0e10cSrcweir#
3*cdf0e10cSrcweir# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4*cdf0e10cSrcweir#
5*cdf0e10cSrcweir# Copyright 2000, 2010 Oracle and/or its affiliates.
6*cdf0e10cSrcweir#
7*cdf0e10cSrcweir# OpenOffice.org - a multi-platform office productivity suite
8*cdf0e10cSrcweir#
9*cdf0e10cSrcweir# This file is part of OpenOffice.org.
10*cdf0e10cSrcweir#
11*cdf0e10cSrcweir# OpenOffice.org is free software: you can redistribute it and/or modify
12*cdf0e10cSrcweir# it under the terms of the GNU Lesser General Public License version 3
13*cdf0e10cSrcweir# only, as published by the Free Software Foundation.
14*cdf0e10cSrcweir#
15*cdf0e10cSrcweir# OpenOffice.org is distributed in the hope that it will be useful,
16*cdf0e10cSrcweir# but WITHOUT ANY WARRANTY; without even the implied warranty of
17*cdf0e10cSrcweir# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18*cdf0e10cSrcweir# GNU Lesser General Public License version 3 for more details
19*cdf0e10cSrcweir# (a copy is included in the LICENSE file that accompanied this code).
20*cdf0e10cSrcweir#
21*cdf0e10cSrcweir# You should have received a copy of the GNU Lesser General Public License
22*cdf0e10cSrcweir# version 3 along with OpenOffice.org.  If not, see
23*cdf0e10cSrcweir# <http://www.openoffice.org/license.html>
24*cdf0e10cSrcweir# for a copy of the LGPLv3 License.
25*cdf0e10cSrcweir#
26*cdf0e10cSrcweir#*************************************************************************
27*cdf0e10cSrcweir
28*cdf0e10cSrcweir# --- Unix-Environment ---------------------------------------
29*cdf0e10cSrcweir# Used if "$(GUI)" == "UNX"
30*cdf0e10cSrcweir
31*cdf0e10cSrcweir
32*cdf0e10cSrcweir# Dieses Define gilt fuer alle  WNT- Plattformen
33*cdf0e10cSrcweir# fuer Compiler, wo kein Java unterstuetzt wird, muss dies ge'undeft werden
34*cdf0e10cSrcweir#JAVADEF=-DSOLAR_JAVA
35*cdf0e10cSrcweir
36*cdf0e10cSrcweir# --- Compiler ---
37*cdf0e10cSrcweir
38*cdf0e10cSrcweir.IF "$(COM)$(OS)$(CPU)" == "C50SOLARISS"
39*cdf0e10cSrcweir.INCLUDE : unxsols2.mk
40*cdf0e10cSrcweir.ENDIF
41*cdf0e10cSrcweir
42*cdf0e10cSrcweir.IF "$(COM)$(OS)$(CPU)" == "C50SOLARISI"
43*cdf0e10cSrcweir.INCLUDE : unxsoli2.mk
44*cdf0e10cSrcweir.ENDIF
45*cdf0e10cSrcweir
46*cdf0e10cSrcweir.IF "$(OS)$(CPU)$(COMEX)" == "SOLARISS3"
47*cdf0e10cSrcweir.INCLUDE : unxsols3.mk
48*cdf0e10cSrcweir.ENDIF
49*cdf0e10cSrcweir
50*cdf0e10cSrcweir.IF "$(OS)$(CPU)$(COMEX)" == "SOLARISI3"
51*cdf0e10cSrcweir.INCLUDE : unxsoli3.mk
52*cdf0e10cSrcweir.ENDIF
53*cdf0e10cSrcweir
54*cdf0e10cSrcweir.IF "$(OS)$(CPU)$(COMEX)" == "SOLARISS4"
55*cdf0e10cSrcweir.INCLUDE : unxsols4.mk
56*cdf0e10cSrcweir.ENDIF
57*cdf0e10cSrcweir
58*cdf0e10cSrcweir.IF "$(OS)$(CPU)$(COMEX)" == "SOLARISI4"
59*cdf0e10cSrcweir.INCLUDE : unxsoli4.mk
60*cdf0e10cSrcweir.ENDIF
61*cdf0e10cSrcweir
62*cdf0e10cSrcweir.IF "$(OS)$(CPU)$(COMEX)" == "SOLARISU4"
63*cdf0e10cSrcweir.INCLUDE : unxsolu4.mk
64*cdf0e10cSrcweir.ENDIF
65*cdf0e10cSrcweir
66*cdf0e10cSrcweir.IF "$(OS)$(CPU)$(COMEX)" == "SOLARISX4"
67*cdf0e10cSrcweir.INCLUDE : unxsolx4.mk
68*cdf0e10cSrcweir.ENDIF
69*cdf0e10cSrcweir
70*cdf0e10cSrcweir.IF "$(COM)$(OS)$(CPU)" == "GCCSOLARISS"
71*cdf0e10cSrcweir.INCLUDE : unxsogs.mk
72*cdf0e10cSrcweir.ENDIF
73*cdf0e10cSrcweir
74*cdf0e10cSrcweir.IF "$(COM)$(OS)$(CPU)" == "GCCSOLARISI"
75*cdf0e10cSrcweir.INCLUDE : unxsogi.mk
76*cdf0e10cSrcweir.ENDIF
77*cdf0e10cSrcweir
78*cdf0e10cSrcweir.IF "$(COM)$(OS)$(CPU)" == "GCCSCOI"
79*cdf0e10cSrcweir.INCLUDE : unxscoi.mk
80*cdf0e10cSrcweir.ENDIF
81*cdf0e10cSrcweir
82*cdf0e10cSrcweir.IF "$(COM)$(OS)$(CPU)" == "GCCLINUXS"
83*cdf0e10cSrcweir.INCLUDE : unxlngs.mk
84*cdf0e10cSrcweir.ENDIF
85*cdf0e10cSrcweir
86*cdf0e10cSrcweir.IF "$(COM)$(OS)$(CPU)" == "GCCLINUXI"
87*cdf0e10cSrcweir.INCLUDE : unxlngi.mk
88*cdf0e10cSrcweir.ENDIF
89*cdf0e10cSrcweir
90*cdf0e10cSrcweir.IF "$(COM)$(OS)$(CPU)" == "GCCLINUXX"
91*cdf0e10cSrcweir.INCLUDE : unxlngx.mk
92*cdf0e10cSrcweir.ENDIF
93*cdf0e10cSrcweir
94*cdf0e10cSrcweir.IF "$(COM)$(OS)$(CPU)$(CPUNAME)" == "GCCLINUXPPOWERPC"
95*cdf0e10cSrcweir.INCLUDE : unxlngppc.mk
96*cdf0e10cSrcweir.ENDIF
97*cdf0e10cSrcweir
98*cdf0e10cSrcweir.IF "$(COM)$(OS)$(CPU)$(CPUNAME)" == "GCCLINUXPPOWERPC64"
99*cdf0e10cSrcweir.INCLUDE : unxlngppc64.mk
100*cdf0e10cSrcweir.ENDIF
101*cdf0e10cSrcweir
102*cdf0e10cSrcweir.IF "$(COM)$(OS)$(CPU)$(CPUNAME)" == "GCCLINUX3S390"
103*cdf0e10cSrcweir.INCLUDE : unxlngs390.mk
104*cdf0e10cSrcweir.ENDIF
105*cdf0e10cSrcweir
106*cdf0e10cSrcweir.IF "$(COM)$(OS)$(CPU)$(CPUNAME)" == "GCCLINUX3S390X"
107*cdf0e10cSrcweir.INCLUDE : unxlngs390x.mk
108*cdf0e10cSrcweir.ENDIF
109*cdf0e10cSrcweir
110*cdf0e10cSrcweir.IF "$(COM)$(OS)$(CPU)" == "GCCLINUXR"
111*cdf0e10cSrcweir.INCLUDE : unxlngr.mk
112*cdf0e10cSrcweir.ENDIF
113*cdf0e10cSrcweir
114*cdf0e10cSrcweir.IF "$(COM)$(OS)$(CPU)" == "GCCLINUXA"
115*cdf0e10cSrcweir.INCLUDE : unxlnga.mk
116*cdf0e10cSrcweir.ENDIF
117*cdf0e10cSrcweir
118*cdf0e10cSrcweir.IF "$(COM)$(OS)$(CPU)" == "ACCHPUXR"
119*cdf0e10cSrcweir.INCLUDE : unxhpxr.mk
120*cdf0e10cSrcweir.ENDIF
121*cdf0e10cSrcweir
122*cdf0e10cSrcweir.IF "$(COM)$(OS)$(CPU)" == "GCCHPUXR"
123*cdf0e10cSrcweir.INCLUDE : unxhpgr.mk
124*cdf0e10cSrcweir.ENDIF
125*cdf0e10cSrcweir
126*cdf0e10cSrcweir.IF "$(COM)$(OS)$(CPU)" == "GCCNETBSDA"
127*cdf0e10cSrcweir.INCLUDE : unxbsda.mk
128*cdf0e10cSrcweir.ENDIF
129*cdf0e10cSrcweir
130*cdf0e10cSrcweir.IF "$(COM)$(OS)$(CPU)" == "ICCAIXP"
131*cdf0e10cSrcweir.INCLUDE : unxaixp.mk
132*cdf0e10cSrcweir.ENDIF
133*cdf0e10cSrcweir
134*cdf0e10cSrcweir.IF "$(COM)$(CVER)$(OS)$(CPU)" == "GCCC295NETBSDI"
135*cdf0e10cSrcweir.INCLUDE : unxbsdi.mk
136*cdf0e10cSrcweir.ENDIF
137*cdf0e10cSrcweir
138*cdf0e10cSrcweir.IF "$(COM)$(CVER)$(OS)$(CPU)" == "GCCC300NETBSDI"
139*cdf0e10cSrcweir.INCLUDE : unxbsdi2.mk
140*cdf0e10cSrcweir.ENDIF
141*cdf0e10cSrcweir
142*cdf0e10cSrcweir.IF "$(COM)$(OS)$(CPU)" == "GCCNETBSDS"
143*cdf0e10cSrcweir.INCLUDE : unxbsds.mk
144*cdf0e10cSrcweir.ENDIF
145*cdf0e10cSrcweir
146*cdf0e10cSrcweir.IF "$(COM)$(OS)" == "GCCFREEBSD"
147*cdf0e10cSrcweir.INCLUDE : unxfbsd.mk
148*cdf0e10cSrcweir.ENDIF
149*cdf0e10cSrcweir
150*cdf0e10cSrcweir.IF "$(COM)$(OS)$(CPU)" == "GCCMACOSXP"
151*cdf0e10cSrcweir.INCLUDE : unxmacxp.mk
152*cdf0e10cSrcweir.ENDIF
153*cdf0e10cSrcweir
154*cdf0e10cSrcweir.IF "$(COM)$(OS)$(CPU)" == "GCCMACOSXI"
155*cdf0e10cSrcweir.INCLUDE : unxmacxi.mk
156*cdf0e10cSrcweir.ENDIF
157*cdf0e10cSrcweir
158*cdf0e10cSrcweir.IF "$(COM)$(OS)$(CPU)" == "GCCLINUXM"
159*cdf0e10cSrcweir.INCLUDE : unxlngmips.mk
160*cdf0e10cSrcweir.ENDIF
161*cdf0e10cSrcweir
162*cdf0e10cSrcweir.IF "$(COM)$(OS)$(CPU)" == "GCCLINUX6"
163*cdf0e10cSrcweir.INCLUDE : unxlngm68k.mk
164*cdf0e10cSrcweir.ENDIF
165*cdf0e10cSrcweir
166*cdf0e10cSrcweir.IF "$(COM)$(OS)$(CPU)" == "GCCLINUXH"
167*cdf0e10cSrcweir.INCLUDE : unxlnghppa.mk
168*cdf0e10cSrcweir.ENDIF
169*cdf0e10cSrcweir
170*cdf0e10cSrcweir.IF "$(COM)$(OS)$(CPU)" == "GCCLINUXL"
171*cdf0e10cSrcweir.INCLUDE : unxlngaxp.mk
172*cdf0e10cSrcweir.ENDIF
173*cdf0e10cSrcweir
174*cdf0e10cSrcweir# --- general *ix settings ---
175*cdf0e10cSrcweirHC=hc
176*cdf0e10cSrcweirHCFLAGS=
177*cdf0e10cSrcweirPATH_SEPERATOR*=:
178*cdf0e10cSrcweirCDEFS+=-D__DMAKE
179*cdf0e10cSrcweir
180*cdf0e10cSrcweirCDEFS+=-DUNIX
181*cdf0e10cSrcweir
182*cdf0e10cSrcweir# fuer linux: bison -y -d
183*cdf0e10cSrcweirYACC*=yacc
184*cdf0e10cSrcweirYACCFLAGS*=-d -t
185*cdf0e10cSrcweir
186*cdf0e10cSrcweirEXECPOST=
187*cdf0e10cSrcweirSCPPOST=.ins
188*cdf0e10cSrcweirDLLDEST=$(LB)
189*cdf0e10cSrcweirSOLARSHAREDBIN=$(SOLARLIBDIR)
190*cdf0e10cSrcweirSONAME_SWITCH*=-h
191*cdf0e10cSrcweir
192*cdf0e10cSrcweir.IF "$(UNIXVERSIONNAMES)"!=""
193*cdf0e10cSrcweirDLLPOST!:=$(DLLPOST).$($(UNIXVERSIONNAMES)_MAJOR)
194*cdf0e10cSrcweir.ENDIF			# "$(UNIXVERSIONNAMES)"!=""
195*cdf0e10cSrcweir
196*cdf0e10cSrcweir# enable building/linking KDE-dependent code in both OOo and SO build environment
197*cdf0e10cSrcweir.IF "$(ENABLE_KDE)" != ""
198*cdf0e10cSrcweir.IF "$(KDE_ROOT)"!=""
199*cdf0e10cSrcweirKDE_CFLAGS:=-I$(KDE_ROOT)/include -DQT_CLEAN_NAMESPACE
200*cdf0e10cSrcweirKDE_LIBS:=-lkdeui -lkdecore -lqt-mt
201*cdf0e10cSrcweirSOLARLIB+=-L$(KDE_ROOT)/lib
202*cdf0e10cSrcweir.IF "$(OS)$(CPU)" == "LINUXX"
203*cdf0e10cSrcweirSOLARLIB+=-L$(KDE_ROOT)/lib64
204*cdf0e10cSrcweir.ENDIF          # "$(OS)$(CPU)" == "LINUXX"
205*cdf0e10cSrcweir.ENDIF          # "$(KDE_ROOT)"!=""
206*cdf0e10cSrcweir.ENDIF          # "$(ENABLE_KDE)" != ""
207*cdf0e10cSrcweir
208*cdf0e10cSrcweirOOO_LIBRARY_PATH_VAR *= LD_LIBRARY_PATH
209