xref: /aoo42x/main/solenv/inc/settings.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*cdf0e10cSrcweirMKFILENAME:=SETTINGS.MK
28*cdf0e10cSrcweir
29*cdf0e10cSrcweir# smaller/greater arithmetic's like ".IF 400<=200" are an OOo extention to
30*cdf0e10cSrcweir# the initial dmake 4.1PL0 (unfortunately called 4.10) version and are
31*cdf0e10cSrcweir# tested implicitly by the construction below.
32*cdf0e10cSrcweir.IF $(MAKEVERSION:s/-cvs//:s/.//)<=410
33*cdf0e10cSrcweir.ERROR : ; @echo Forced error: dmake version 4.11 or newer is needed!
34*cdf0e10cSrcweirforce_dmake_to_error
35*cdf0e10cSrcweir.ENDIF
36*cdf0e10cSrcweir
37*cdf0e10cSrcweir.INCLUDE .IGNORE : ooo_vendor.mk
38*cdf0e10cSrcweir
39*cdf0e10cSrcweir# --- common tool makros --------------------------------------
40*cdf0e10cSrcweir
41*cdf0e10cSrcweir.IF "$(USE_PCH)"!=""
42*cdf0e10cSrcweirENABLE_PCH=TRUE
43*cdf0e10cSrcweir.ENDIF			# "$(USE_PCH)"!=""
44*cdf0e10cSrcweir
45*cdf0e10cSrcweir.IF "$(ENABLE_PCH)"!="" && "$(BUILD_SPECIAL)"!=""
46*cdf0e10cSrcweir.IF "$(SOLARSRC)"=="$(SRC_ROOT)"
47*cdf0e10cSrcweirNETWORK_BUILD:=TRUE
48*cdf0e10cSrcweir.ENDIF			# "$(SOLARSRC)"=="$(SRC_ROOT)"
49*cdf0e10cSrcweir.ENDIF			# "$(ENABLE_PCH)"!="" && "$(BUILD_SPECIAL)"!=""
50*cdf0e10cSrcweir
51*cdf0e10cSrcweir.INCLUDE : unitools.mk
52*cdf0e10cSrcweir
53*cdf0e10cSrcweir.INCLUDE : minor.mk
54*cdf0e10cSrcweir
55*cdf0e10cSrcweir.INCLUDE .IGNORE : rtlbootstrap.mk
56*cdf0e10cSrcweir
57*cdf0e10cSrcweirPLATFORMID = $(RTL_OS:l)_$(RTL_ARCH:l)
58*cdf0e10cSrcweirEXTNAME*=$(EXTENSIONNAME)_in
59*cdf0e10cSrcweir
60*cdf0e10cSrcweir.IF "$(UPDATER)"!="" || "$(CWS_WORK_STAMP)"!=""
61*cdf0e10cSrcweir
62*cdf0e10cSrcweir.IF "$(SOURCEVERSION)"!="$(WORK_STAMP)"
63*cdf0e10cSrcweir.ERROR : ; @echo Forced error: minor.mk in solenv/inc does not match your version!
64*cdf0e10cSrcweirWRONG_SOURCEVERSION
65*cdf0e10cSrcweir.ENDIF
66*cdf0e10cSrcweir
67*cdf0e10cSrcweir# Create $(SOLARVERSION)/$(INPATH)/inc$(UPDMINOREXT)/$(UPD)minor.mk if needed
68*cdf0e10cSrcweir%minor.mk : $(SOLARENV)/inc/minor.mk
69*cdf0e10cSrcweir	@@-$(MKDIRHIER) $(SOLARVERSION)/$(INPATH)/inc$(UPDMINOREXT)
70*cdf0e10cSrcweir	@@$(COPY) $(SOLARENV)/inc/minor.mk $(SOLARVERSION)/$(INPATH)/inc$(UPDMINOREXT)/$(UPD)minor.mk
71*cdf0e10cSrcweir	@@$(TOUCH) $(SOLARVERSION)/$(INPATH)/inc$(UPDMINOREXT)/minormkchanged.flg
72*cdf0e10cSrcweir.ENDIF          # "$(UPDATER)"!="" || "$(CWS_WORK_STAMP)"!=""
73*cdf0e10cSrcweir
74*cdf0e10cSrcweir# Force creation of $(SOLARVERSION)/$(INPATH)/inc$(UPDMINOREXT)/
75*cdf0e10cSrcweir# $(UPD)minor.mk could be empty as it's contents were already included from minor.mk
76*cdf0e10cSrcweir.INCLUDE : $(SOLARVERSION)/$(INPATH)/inc$(UPDMINOREXT)/$(UPD)minor.mk
77*cdf0e10cSrcweir
78*cdf0e10cSrcweir.IF "$(BSCLIENT)"=="TRUE"
79*cdf0e10cSrcweir.IF "$(UPDATER)"!="YES"
80*cdf0e10cSrcweirincorrect_settings:
81*cdf0e10cSrcweir	@echo "#"
82*cdf0e10cSrcweir	@echo "#" ERROR: setsolar option -bsclient used but UPDATER=YES not set!
83*cdf0e10cSrcweir	@echo "#"
84*cdf0e10cSrcweir	force_dmake_to_error
85*cdf0e10cSrcweir.ENDIF
86*cdf0e10cSrcweir.ENDIF
87*cdf0e10cSrcweir
88*cdf0e10cSrcweir.INCLUDE : udkversion.mk
89*cdf0e10cSrcweir
90*cdf0e10cSrcweir# --- reset defined Environments --------------------
91*cdf0e10cSrcweirASM=
92*cdf0e10cSrcweirAFLAGS=
93*cdf0e10cSrcweir
94*cdf0e10cSrcweir
95*cdf0e10cSrcweir#START JAVA
96*cdf0e10cSrcweir
97*cdf0e10cSrcweir#interpreter location
98*cdf0e10cSrcweir.IF "$(JAVAINTERPRETER)" == ""
99*cdf0e10cSrcweir.IF "$(JDK)" == "J++"
100*cdf0e10cSrcweirJAVAINTERPRETER=jview.exe
101*cdf0e10cSrcweir.ELSE
102*cdf0e10cSrcweir.IF "$(JDK)" == "SCAFE"
103*cdf0e10cSrcweir.IF "$(JDK_VERSION)" != ""
104*cdf0e10cSrcweirJAVAINTERPRETER=$(DEVROOT)/vcafe11/java/bin/java.exe
105*cdf0e10cSrcweir.ELSE
106*cdf0e10cSrcweirJAVAINTERPRETER=$(DEVROOT)/cafepro/java/bin/java.exe
107*cdf0e10cSrcweir.ENDIF
108*cdf0e10cSrcweir.ELSE
109*cdf0e10cSrcweir.IF "$(JAVACISGCJ)" == "yes"
110*cdf0e10cSrcweirJAVAINTERPRETER=gij
111*cdf0e10cSrcweir.ELSE
112*cdf0e10cSrcweirJAVAINTERPRETER=java
113*cdf0e10cSrcweir.ENDIF
114*cdf0e10cSrcweir.ENDIF
115*cdf0e10cSrcweir.ENDIF
116*cdf0e10cSrcweir.ENDIF
117*cdf0e10cSrcweir
118*cdf0e10cSrcweir#compiler location
119*cdf0e10cSrcweir.IF "$(JAVACOMPILER)" == ""
120*cdf0e10cSrcweir.IF "$(JDK)" == "J++"
121*cdf0e10cSrcweirJAVACOMPILER=jvc.exe
122*cdf0e10cSrcweir.ELSE
123*cdf0e10cSrcweir.IF "$(JDK)" == "SCAFE"
124*cdf0e10cSrcweir.IF "$(JDK_VERSION)" != ""
125*cdf0e10cSrcweirJAVACOMPILER=$(DEVROOT)/vcafe11/bin/sj.exe
126*cdf0e10cSrcweir.ELSE
127*cdf0e10cSrcweirJAVACOMPILER=$(DEVROOT)/cafepro/bin/sj.exe
128*cdf0e10cSrcweir.ENDIF
129*cdf0e10cSrcweir.ELSE
130*cdf0e10cSrcweir.IF "$(JAVACISGCJ)" == "yes"
131*cdf0e10cSrcweirJAVACOMPILER=gcj
132*cdf0e10cSrcweir.ELSE
133*cdf0e10cSrcweirJAVACOMPILER=javac
134*cdf0e10cSrcweir.ENDIF
135*cdf0e10cSrcweir.ENDIF
136*cdf0e10cSrcweir.ENDIF
137*cdf0e10cSrcweir.ENDIF
138*cdf0e10cSrcweir
139*cdf0e10cSrcweir#if javadoc is not already set
140*cdf0e10cSrcweir.IF "$(JAVADOC)"==""
141*cdf0e10cSrcweirJAVADOC=javadoc -J-Xmx120m
142*cdf0e10cSrcweir.ENDIF
143*cdf0e10cSrcweir
144*cdf0e10cSrcweir#required arguments
145*cdf0e10cSrcweirJAVAC=$(JAVACOMPILER)
146*cdf0e10cSrcweirJAVAI:=$(JAVAINTERPRETER)
147*cdf0e10cSrcweir.IF "$(JAVACISGCJ)" == "yes"
148*cdf0e10cSrcweirJAVAC+=--encoding=UTF-8 -O2 -fno-assert -Wno-deprecated -C
149*cdf0e10cSrcweir.ENDIF
150*cdf0e10cSrcweir
151*cdf0e10cSrcweir#classpath and response
152*cdf0e10cSrcweir.IF "$(JDK)" == "J++"
153*cdf0e10cSrcweirJAVACPS=/cp
154*cdf0e10cSrcweir.ELSE
155*cdf0e10cSrcweir.IF "$(JDK)" == "SCAFE"
156*cdf0e10cSrcweirJAVACPS=-classpath
157*cdf0e10cSrcweirJAVARESPONSE=TRUE
158*cdf0e10cSrcweir.ELSE
159*cdf0e10cSrcweirJAVACPS=-classpath
160*cdf0e10cSrcweirJAVARESPONSE=
161*cdf0e10cSrcweir.ENDIF
162*cdf0e10cSrcweir.ENDIF
163*cdf0e10cSrcweir
164*cdf0e10cSrcweirJAVAFLAGS+=$(JAVA_TARGET_FLAG)
165*cdf0e10cSrcweir
166*cdf0e10cSrcweir#END JAVA
167*cdf0e10cSrcweir
168*cdf0e10cSrcweirCDEFS=
169*cdf0e10cSrcweirCXXDEFS=
170*cdf0e10cSrcweirCDEFSCXX=
171*cdf0e10cSrcweirCDEFSOBJ=
172*cdf0e10cSrcweirCDEFSSLO=
173*cdf0e10cSrcweirCDEFSGUI=
174*cdf0e10cSrcweirCDEFSCUI=
175*cdf0e10cSrcweirCDEFSMT=
176*cdf0e10cSrcweirCDEFSPROF=
177*cdf0e10cSrcweirCDEFSDEBUG=
178*cdf0e10cSrcweirCDEFSDBGUTIL=
179*cdf0e10cSrcweirCDEFSOPT=
180*cdf0e10cSrcweir
181*cdf0e10cSrcweirCFLAGS=
182*cdf0e10cSrcweirCFLAGSCALL=
183*cdf0e10cSrcweirCFLAGSCXX=
184*cdf0e10cSrcweirCFLAGSCC=
185*cdf0e10cSrcweirCFLAGSOBJ=
186*cdf0e10cSrcweirCFLAGSSLO=
187*cdf0e10cSrcweirCFLAGSOBJGUIMT=
188*cdf0e10cSrcweirCFLAGSOBJCUIMT=
189*cdf0e10cSrcweirCFLAGSSLOGUIMT=
190*cdf0e10cSrcweirCFLAGSSLOCUIMT=
191*cdf0e10cSrcweirCFLAGSPROF=
192*cdf0e10cSrcweirCFLAGSDEBUG=
193*cdf0e10cSrcweirCFLAGSDBGUTIL=
194*cdf0e10cSrcweirCFLAGSOPT=
195*cdf0e10cSrcweirCFLAGSNOOPT=
196*cdf0e10cSrcweirCFLAGSOUTOBJ=
197*cdf0e10cSrcweir
198*cdf0e10cSrcweirCFLAGSINCXX=
199*cdf0e10cSrcweir
200*cdf0e10cSrcweirLINKFLAGS=
201*cdf0e10cSrcweirLINKFLAGSAPPGUI=
202*cdf0e10cSrcweirLINKFLAGSSHLGUI=
203*cdf0e10cSrcweirLINKFLAGSAPPCUI=
204*cdf0e10cSrcweirLINKFLAGSSHLCUI=
205*cdf0e10cSrcweirLINKFLAGSTACK=
206*cdf0e10cSrcweirLINKFLAGSPROF=
207*cdf0e10cSrcweirLINKFLAGSDEBUG=
208*cdf0e10cSrcweirLINKFLAGSOPT=
209*cdf0e10cSrcweirLINKFLAGSAPP=
210*cdf0e10cSrcweirLINKFLAGSSHL=
211*cdf0e10cSrcweirLINKEXTENDLINE=
212*cdf0e10cSrcweir
213*cdf0e10cSrcweirSTDOBJGUI=
214*cdf0e10cSrcweirSTDSLOGUI=
215*cdf0e10cSrcweirSTDOBJCUI=
216*cdf0e10cSrcweirSTDSLOCUI=
217*cdf0e10cSrcweirSTDLIBGUIMT=
218*cdf0e10cSrcweirSTDLIBCUIMT=
219*cdf0e10cSrcweirSTDSHLGUIMT=
220*cdf0e10cSrcweirSTDSHLCUIMT=
221*cdf0e10cSrcweirSTDOBJ=
222*cdf0e10cSrcweirSTDSLO=
223*cdf0e10cSrcweirSTDLIB=
224*cdf0e10cSrcweirSTDSHL=
225*cdf0e10cSrcweir
226*cdf0e10cSrcweirLIBFLAGS=
227*cdf0e10cSrcweir
228*cdf0e10cSrcweirIMPLIBMGR=
229*cdf0e10cSrcweirIMPLIBFLAGS=
230*cdf0e10cSrcweir
231*cdf0e10cSrcweirMAPSYM=
232*cdf0e10cSrcweirMAPSYMFLAGS=
233*cdf0e10cSrcweir
234*cdf0e10cSrcweirRSC=
235*cdf0e10cSrcweirRSCFLAGS=
236*cdf0e10cSrcweirRSCDEFS=
237*cdf0e10cSrcweirRSCLANG=
238*cdf0e10cSrcweir
239*cdf0e10cSrcweirRC=
240*cdf0e10cSrcweirRCFLAGS=
241*cdf0e10cSrcweirRCLINK=
242*cdf0e10cSrcweirRCLINKFLAGS=
243*cdf0e10cSrcweirRCSETVERSION=
244*cdf0e10cSrcweir
245*cdf0e10cSrcweirDLLPOSTFIX=
246*cdf0e10cSrcweir
247*cdf0e10cSrcweirHC=
248*cdf0e10cSrcweirHCFLAGS=
249*cdf0e10cSrcweir
250*cdf0e10cSrcweirMKDEP=
251*cdf0e10cSrcweir
252*cdf0e10cSrcweirAS=
253*cdf0e10cSrcweirBC=
254*cdf0e10cSrcweirCOBOL=
255*cdf0e10cSrcweirCPP=
256*cdf0e10cSrcweirFOR=
257*cdf0e10cSrcweirPASCAL=
258*cdf0e10cSrcweir
259*cdf0e10cSrcweirBFLAGS=
260*cdf0e10cSrcweirCOBFLAGS=
261*cdf0e10cSrcweirCPPFLAGS=
262*cdf0e10cSrcweirCXXFLAGS=
263*cdf0e10cSrcweirFFLAGS=
264*cdf0e10cSrcweirPFLAGS=
265*cdf0e10cSrcweirRFLAGS=
266*cdf0e10cSrcweir
267*cdf0e10cSrcweirLNT=
268*cdf0e10cSrcweirLNTFLAGS=
269*cdf0e10cSrcweirLNTFLAGSGUI=
270*cdf0e10cSrcweirLNTFLAGSCOM=
271*cdf0e10cSrcweir
272*cdf0e10cSrcweir# doesn't make sense
273*cdf0e10cSrcweir#IDLSTATICOBJS=
274*cdf0e10cSrcweir
275*cdf0e10cSrcweirE2P=
276*cdf0e10cSrcweirCAP=
277*cdf0e10cSrcweircap=
278*cdf0e10cSrcweir
279*cdf0e10cSrcweir# not to reset because possibly taken from environment
280*cdf0e10cSrcweir#CC=
281*cdf0e10cSrcweir#CXX=
282*cdf0e10cSrcweir#LINK=
283*cdf0e10cSrcweir#LIBMGR=
284*cdf0e10cSrcweir
285*cdf0e10cSrcweir
286*cdf0e10cSrcweir# avoid confusion with CUE PROFILE variable...
287*cdf0e10cSrcweirPROFILE=
288*cdf0e10cSrcweir
289*cdf0e10cSrcweir# can be set on the command line. we shouldn't delete them!
290*cdf0e10cSrcweir#profile=
291*cdf0e10cSrcweir
292*cdf0e10cSrcweir# reset as setting those manually is no lonjger supported
293*cdf0e10cSrcweirDBGUTIL=
294*cdf0e10cSrcweirdbgutil=
295*cdf0e10cSrcweir
296*cdf0e10cSrcweir# ===========================================================================
297*cdf0e10cSrcweir# unter NT werden Variablennamen an untergeordnete makefiles UPPERCASE
298*cdf0e10cSrcweir# weitergereicht, aber case significant ausgewertet!
299*cdf0e10cSrcweir# ---------------------------------------------------------------------------
300*cdf0e10cSrcweir
301*cdf0e10cSrcweirDMAKE_WORK_DIR*:=$(subst,/,/ $(PWD))
302*cdf0e10cSrcweir.IF "$(GUI)"=="WNT"
303*cdf0e10cSrcweirposix_PWD:=/cygdrive/$(PWD:s/://)
304*cdf0e10cSrcweir.ELSE			#GUI)"=="WNT"
305*cdf0e10cSrcweirposix_PWD:=$(PWD)
306*cdf0e10cSrcweir.ENDIF			#GUI)"=="WNT"
307*cdf0e10cSrcweir
308*cdf0e10cSrcweir
309*cdf0e10cSrcweir.IF "$(TMP)"!=""
310*cdf0e10cSrcweirtmp*=$(TMP)
311*cdf0e10cSrcweir.ENDIF
312*cdf0e10cSrcweir
313*cdf0e10cSrcweir.IF "$(tmp)"!=""
314*cdf0e10cSrcweirTMP*=$(tmp)
315*cdf0e10cSrcweir.ENDIF
316*cdf0e10cSrcweir
317*cdf0e10cSrcweir.IF "$(TEMP)"!=""
318*cdf0e10cSrcweirtemp*=$(TEMP)
319*cdf0e10cSrcweir.ENDIF
320*cdf0e10cSrcweir
321*cdf0e10cSrcweir.IF "$(temp)"!=""
322*cdf0e10cSrcweirTEMP*=$(temp)
323*cdf0e10cSrcweir.ENDIF
324*cdf0e10cSrcweir
325*cdf0e10cSrcweir.IF "$(DEPEND)"!=""
326*cdf0e10cSrcweirdepend=$(DEPEND)
327*cdf0e10cSrcweir.ENDIF
328*cdf0e10cSrcweir
329*cdf0e10cSrcweir.IF "$(OPTIMIZE)"!=""
330*cdf0e10cSrcweiroptimize=$(OPTIMIZE)
331*cdf0e10cSrcweir.ENDIF
332*cdf0e10cSrcweir
333*cdf0e10cSrcweir.IF "$(NOPT)"!=""
334*cdf0e10cSrcweirnopt*=$(NOPT)
335*cdf0e10cSrcweir.ENDIF
336*cdf0e10cSrcweir
337*cdf0e10cSrcweir.IF "$(GROUP)"!=""
338*cdf0e10cSrcweirgroup*=$(GROUP)
339*cdf0e10cSrcweir.ENDIF
340*cdf0e10cSrcweir
341*cdf0e10cSrcweir.IF "$(group)"!=""
342*cdf0e10cSrcweirGROUP*=$(group)
343*cdf0e10cSrcweir.ENDIF
344*cdf0e10cSrcweir
345*cdf0e10cSrcweir# override dbglevel if set manually
346*cdf0e10cSrcweir.IF "$(dbglevel)"!=""
347*cdf0e10cSrcweirDBG_LEVEL=$(dbglevel)
348*cdf0e10cSrcweir.ENDIF
349*cdf0e10cSrcweir
350*cdf0e10cSrcweir.IF "$(NODEBUG)"!=""
351*cdf0e10cSrcweirnodebug=$(NODEBUG)
352*cdf0e10cSrcweir.ENDIF
353*cdf0e10cSrcweir
354*cdf0e10cSrcweir.IF "$(hbtoolkit)"!=""
355*cdf0e10cSrcweirHBTOOLKIT=$(hbtoolkit)
356*cdf0e10cSrcweir.ENDIF
357*cdf0e10cSrcweir
358*cdf0e10cSrcweir.IF "$(PRODUCT)"!=""
359*cdf0e10cSrcweirproduct*=$(PRODUCT)
360*cdf0e10cSrcweir.ENDIF
361*cdf0e10cSrcweir
362*cdf0e10cSrcweir.IF "$(product)"!=""
363*cdf0e10cSrcweirPRODUCT*=$(product)
364*cdf0e10cSrcweir.ENDIF
365*cdf0e10cSrcweir
366*cdf0e10cSrcweir.IF "$(VERBOSE)"!=""
367*cdf0e10cSrcweirverbose*=$(VERBOSE)
368*cdf0e10cSrcweir.ENDIF
369*cdf0e10cSrcweir
370*cdf0e10cSrcweir.IF "$(verbose)"!=""
371*cdf0e10cSrcweir# normalize: "false" (any upper/lower case) and "0" mean FALSE, everything else means TRUE
372*cdf0e10cSrcweirVERBOSE_IS_FALSE:=$(or $(eq,"$(verbose:u)","FALSE" "false"  ) $(eq,"$(verbose)","0" "false"  ))
373*cdf0e10cSrcweirVERBOSE!:=$(eq,"$(VERBOSE_IS_FALSE)","t" FALSE TRUE)
374*cdf0e10cSrcweir.ENDIF
375*cdf0e10cSrcweir
376*cdf0e10cSrcweir.IF "$(SOLARLANG)" != ""
377*cdf0e10cSrcweirsolarlang*=$(SOLARLANG)
378*cdf0e10cSrcweir.ENDIF
379*cdf0e10cSrcweir
380*cdf0e10cSrcweir.IF "$(solarlang)" != ""
381*cdf0e10cSrcweirSOLARLANG:=$(solarlang)
382*cdf0e10cSrcweir.ENDIF
383*cdf0e10cSrcweir
384*cdf0e10cSrcweir.IF "$(wall)"!=""
385*cdf0e10cSrcweirCOMPILER_WARN_ALL=TRUE
386*cdf0e10cSrcweir.ENDIF          # "$(wall)"!=""
387*cdf0e10cSrcweir
388*cdf0e10cSrcweir.IF "$(werror)"!=""
389*cdf0e10cSrcweirCOMPILER_WARN_ERRORS=TRUE
390*cdf0e10cSrcweir.ENDIF
391*cdf0e10cSrcweir
392*cdf0e10cSrcweir.IF "$(RSC_ONCE)"!=""
393*cdf0e10cSrcweirrsc_once*=$(RSC_ONCE)
394*cdf0e10cSrcweir.ENDIF
395*cdf0e10cSrcweir
396*cdf0e10cSrcweir#.IF "$(COMMON_BUILD)"!=""
397*cdf0e10cSrcweir#common_build*=$(COMMON_BUILD)
398*cdf0e10cSrcweir#.ENDIF
399*cdf0e10cSrcweircommon_build:=
400*cdf0e10cSrcweirCOMMON_BUILD:=
401*cdf0e10cSrcweir
402*cdf0e10cSrcweir.IF "$(USE_SHL_VERSIONS)"!=""
403*cdf0e10cSrcweiruse_shl_versions*=$(USE_SHL_VERSIONS)
404*cdf0e10cSrcweir.ENDIF
405*cdf0e10cSrcweir
406*cdf0e10cSrcweir.IF "$(noremove)"!=""
407*cdf0e10cSrcweirNOREMOVE*=$(noremove)
408*cdf0e10cSrcweir.ENDIF
409*cdf0e10cSrcweir
410*cdf0e10cSrcweir# --- env flags not case sensitive --------------------------------
411*cdf0e10cSrcweir
412*cdf0e10cSrcweir#.IF "$(envcflags)"!=""
413*cdf0e10cSrcweirENVCFLAGS*=$(envcflags)
414*cdf0e10cSrcweir#.ENDIF
415*cdf0e10cSrcweir
416*cdf0e10cSrcweir#.IF "$(envcflagscxx)"!=""
417*cdf0e10cSrcweirENVCFLAGSCXX*=$(envcflagscxx)
418*cdf0e10cSrcweir#.ENDIF
419*cdf0e10cSrcweir
420*cdf0e10cSrcweir
421*cdf0e10cSrcweir.IF "$(envcdefs)"!=""
422*cdf0e10cSrcweirENVCDEFS*=$(envcdefs)
423*cdf0e10cSrcweir.ENDIF
424*cdf0e10cSrcweir
425*cdf0e10cSrcweir.IF "$(envlibflags)"!=""
426*cdf0e10cSrcweirENVLIBFLAGS*=$(envlibflags)
427*cdf0e10cSrcweir.ENDIF
428*cdf0e10cSrcweir
429*cdf0e10cSrcweir.IF "$(envcflagsincxx)"!=""
430*cdf0e10cSrcweirENVCFLAGSINCXX*=$(envcflagsincxx)
431*cdf0e10cSrcweir.ENDIF
432*cdf0e10cSrcweir
433*cdf0e10cSrcweir.IF "$(envlinkflags)"!=""
434*cdf0e10cSrcweirENVLINKFLAGS*=$(envlinkflags)
435*cdf0e10cSrcweir.ENDIF
436*cdf0e10cSrcweir
437*cdf0e10cSrcweir.IF "$(envrscflags)"!=""
438*cdf0e10cSrcweirENVRSCFLAGS*=$(envrscflags)
439*cdf0e10cSrcweir.ENDIF
440*cdf0e10cSrcweir
441*cdf0e10cSrcweir.IF "$(envrscdefs)"!=""
442*cdf0e10cSrcweirENVRSCDEFS*=$(envrscdefs)
443*cdf0e10cSrcweir.ENDIF
444*cdf0e10cSrcweir
445*cdf0e10cSrcweir.IF "$(envrsclinkflags)"!=""
446*cdf0e10cSrcweir# ENVRSCLINKFLAGS*=$(envrsclinkflags)
447*cdf0e10cSrcweir.ENDIF
448*cdf0e10cSrcweir
449*cdf0e10cSrcweir.IF "$(envrcflags)"!=""
450*cdf0e10cSrcweirENVRCFLAGS*=$(envrcflags)
451*cdf0e10cSrcweir.ENDIF
452*cdf0e10cSrcweir
453*cdf0e10cSrcweir.IF "$(envrclinkflags)"!=""
454*cdf0e10cSrcweirENVRCLINKFLAGS*=$(envrclinkflags)
455*cdf0e10cSrcweir.ENDIF
456*cdf0e10cSrcweir
457*cdf0e10cSrcweir# --- set both L10N variables to keep things working ---------------
458*cdf0e10cSrcweir
459*cdf0e10cSrcweirL10N-framework=$(L10N_framework)
460*cdf0e10cSrcweir
461*cdf0e10cSrcweir# --- Parameter Einstellungen ueberpruefen und umsetzen ------------
462*cdf0e10cSrcweir
463*cdf0e10cSrcweir# profile immer mit product
464*cdf0e10cSrcweir.IF "$(profile)"!=""
465*cdf0e10cSrcweir.IF "$(product)"==""
466*cdf0e10cSrcweirproduct=full
467*cdf0e10cSrcweir.ENDIF
468*cdf0e10cSrcweir.ENDIF
469*cdf0e10cSrcweir
470*cdf0e10cSrcweir.IF "$(debug)"!=""
471*cdf0e10cSrcweirDBG_LEVEL*=2
472*cdf0e10cSrcweir.ENDIF
473*cdf0e10cSrcweir
474*cdf0e10cSrcweir# Produkt auf einen Wert setzen (alles klein)
475*cdf0e10cSrcweir.IF "$(product)" != ""
476*cdf0e10cSrcweiroptimize=true
477*cdf0e10cSrcweir.IF "$(product)" == "full" || "$(product)" == "Full" || "$(product)" == "FULL"
478*cdf0e10cSrcweirproduct!=full
479*cdf0e10cSrcweir.ENDIF
480*cdf0e10cSrcweir.IF "$(product)" == "demo" || "$(product)" == "Demo" || "$(product)" == "DEMO"
481*cdf0e10cSrcweirproduct!=demo
482*cdf0e10cSrcweir.ENDIF
483*cdf0e10cSrcweir.IF "$(product)" == "compact" || "$(product)" == "Compact" || "$(product)" == "COMPACT"
484*cdf0e10cSrcweirproduct!=compact
485*cdf0e10cSrcweir.ENDIF
486*cdf0e10cSrcweirDBG_LEVEL*=0
487*cdf0e10cSrcweir.ELSE
488*cdf0e10cSrcweiroptimize!=true
489*cdf0e10cSrcweirdbgutil!=true
490*cdf0e10cSrcweirDBG_LEVEL*=1
491*cdf0e10cSrcweirUSE_STLP_DEBUG*=TRUE
492*cdf0e10cSrcweir.ENDIF
493*cdf0e10cSrcweir
494*cdf0e10cSrcweir.IF "$(debug)"!=""
495*cdf0e10cSrcweir.IF "$(debug)"!="D_FORCE_OPT"
496*cdf0e10cSrcweiroptimize=
497*cdf0e10cSrcweirOPTIMIZE=
498*cdf0e10cSrcweir.ENDIF
499*cdf0e10cSrcweir.ENDIF
500*cdf0e10cSrcweir
501*cdf0e10cSrcweir.IF "$(nopt)"!=""
502*cdf0e10cSrcweiroptimize=
503*cdf0e10cSrcweirOPTIMIZE=
504*cdf0e10cSrcweir.ENDIF
505*cdf0e10cSrcweir
506*cdf0e10cSrcweir# Optimierung bei FinalCheck funktioniert nicht!
507*cdf0e10cSrcweir.IF "$(bndchk)" != ""
508*cdf0e10cSrcweiroptimize=
509*cdf0e10cSrcweirOPTIMIZE=
510*cdf0e10cSrcweir.ENDIF
511*cdf0e10cSrcweir
512*cdf0e10cSrcweir######################################################
513*cdf0e10cSrcweir#
514*cdf0e10cSrcweir# sprachabh. einstellungen
515*cdf0e10cSrcweir#
516*cdf0e10cSrcweir######################################################
517*cdf0e10cSrcweir
518*cdf0e10cSrcweir.INCLUDE : lang.mk
519*cdf0e10cSrcweir
520*cdf0e10cSrcweir.INCLUDE : postset.mk
521*cdf0e10cSrcweir
522*cdf0e10cSrcweirRSC_LANG_ISO+:=$(completelangiso)
523*cdf0e10cSrcweir.EXPORT : RSC_LANG_ISO
524*cdf0e10cSrcweir
525*cdf0e10cSrcweir######################################################
526*cdf0e10cSrcweir
527*cdf0e10cSrcweir.IF "$(TARGETTYPE)"==""
528*cdf0e10cSrcweirTARGETTYPE=CUI
529*cdf0e10cSrcweir.ENDIF
530*cdf0e10cSrcweir
531*cdf0e10cSrcweir# --- Pfade setzen -------------------------------------------------
532*cdf0e10cSrcweir
533*cdf0e10cSrcweir# Output-Pfad
534*cdf0e10cSrcweir# profile has to be first for not getting the .pro extension
535*cdf0e10cSrcweir.IF "$(profile)"!=""
536*cdf0e10cSrcweirOUT=$(PRJ)/$(OUTPATH).cap
537*cdf0e10cSrcweirROUT=$(OUTPATH).cap
538*cdf0e10cSrcweir.ELSE
539*cdf0e10cSrcweir
540*cdf0e10cSrcweir.IF "$(product)"!=""
541*cdf0e10cSrcweirOUT=$(PRJ)/$(OUTPATH).pro
542*cdf0e10cSrcweirROUT=$(OUTPATH).pro
543*cdf0e10cSrcweir
544*cdf0e10cSrcweir.ELSE
545*cdf0e10cSrcweir.IF "$(profile)"!=""
546*cdf0e10cSrcweirOUT=$(PRJ)/$(OUTPATH).cap
547*cdf0e10cSrcweirROUT=$(OUTPATH).cap
548*cdf0e10cSrcweir.ENDIF
549*cdf0e10cSrcweir.IF "$(dbcs)"!=""
550*cdf0e10cSrcweirOUT=$(PRJ)/$(OUTPATH).w
551*cdf0e10cSrcweirROUT=$(OUTPATH).w
552*cdf0e10cSrcweir.ENDIF
553*cdf0e10cSrcweir# could already be set by makefile.mk
554*cdf0e10cSrcweir.IF "$(OUT)" == ""
555*cdf0e10cSrcweirOUT*=$(PRJ)/$(OUTPATH)
556*cdf0e10cSrcweirROUT*=$(OUTPATH)
557*cdf0e10cSrcweir.ENDIF
558*cdf0e10cSrcweir.ENDIF
559*cdf0e10cSrcweir.ENDIF
560*cdf0e10cSrcweir
561*cdf0e10cSrcweir.IF "$(bndchk)" != ""
562*cdf0e10cSrcweirOUT:=$(PRJ)/$(OUTPATH).bnd
563*cdf0e10cSrcweirROUT=$(OUTPATH).bnd
564*cdf0e10cSrcweir.ENDIF
565*cdf0e10cSrcweir.IF "$(truetime)" != ""
566*cdf0e10cSrcweirOUT=$(PRJ)/$(OUTPATH).tt
567*cdf0e10cSrcweirROUT=$(OUTPATH).tt
568*cdf0e10cSrcweir.ENDIF
569*cdf0e10cSrcweir.IF "$(hbtoolkit)"!=""
570*cdf0e10cSrcweirOUT=$(PRJ)/$(OUTPATH).tlk
571*cdf0e10cSrcweirROUT=$(OUTPATH).tlk
572*cdf0e10cSrcweir.ENDIF
573*cdf0e10cSrcweir
574*cdf0e10cSrcweir.IF "$(PRJ)"!="."
575*cdf0e10cSrcweir.IF "$(GUI)"=="WNT" || "$(GUI)"=="OS2"
576*cdf0e10cSrcweirPATH_IN_MODULE:=\
577*cdf0e10cSrcweir    $(subst,$(normpath $(shell @+cd $(PRJ) && pwd $(PWDFLAGS)))/, $(PWD))
578*cdf0e10cSrcweir.ELSE			# "$(GUI)"=="WNT"
579*cdf0e10cSrcweirPATH_IN_MODULE:=$(subst,$(shell @+cd $(PRJ) && pwd $(PWDFLAGS))/, $(PWD))
580*cdf0e10cSrcweir.ENDIF			# "$(GUI)"=="WNT"
581*cdf0e10cSrcweir.ELSE			# "$(PRJ)"!="."
582*cdf0e10cSrcweirPATH_IN_MODULE:=
583*cdf0e10cSrcweir.ENDIF			# "$(PRJ)"!="."
584*cdf0e10cSrcweir
585*cdf0e10cSrcweir## common output tree
586*cdf0e10cSrcweir#.IF "$(common_build)"!=""
587*cdf0e10cSrcweir#COMMON_OUTDIR*=common
588*cdf0e10cSrcweir#.IF "$(no_common_build_reslib)"==""
589*cdf0e10cSrcweir#common_build_reslib=true
590*cdf0e10cSrcweir#.ENDIF			# "$(no_common_build_reslib)"==""
591*cdf0e10cSrcweir#.IF "$(no_common_build_zip)"==""
592*cdf0e10cSrcweir#common_build_zip=true
593*cdf0e10cSrcweir#.ENDIF			# "$(no_common_build_zip)"==""
594*cdf0e10cSrcweir#.IF "$(no_common_build_sign_jar)"==""
595*cdf0e10cSrcweir#common_build_sign_jar=true
596*cdf0e10cSrcweir#.ENDIF			# "$(no_common_build_sign_jar)"==""
597*cdf0e10cSrcweir#.IF "$(no_common_build_srs)"==""
598*cdf0e10cSrcweir#common_build_srs=true
599*cdf0e10cSrcweir#.ENDIF			# "$(no_common_build_srs)"==""
600*cdf0e10cSrcweir#.ELSE			# "$(common_build)"!=""
601*cdf0e10cSrcweirCOMMON_OUTDIR:=$(OUTPATH)
602*cdf0e10cSrcweir#.ENDIF			# "$(common_build)"!=""
603*cdf0e10cSrcweir
604*cdf0e10cSrcweirLOCAL_OUT:=$(OUT)
605*cdf0e10cSrcweirLOCAL_COMMON_OUT:=$(subst,$(OUTPATH),$(COMMON_OUTDIR) $(OUT))
606*cdf0e10cSrcweir.EXPORT : LOCAL_OUT LOCAL_COMMON_OUT
607*cdf0e10cSrcweir
608*cdf0e10cSrcweir# --- generate output tree -----------------------------------------
609*cdf0e10cSrcweir
610*cdf0e10cSrcweir# disable for makefiles wrapping a gnumake module
611*cdf0e10cSrcweir.IF "$(TARGET)"!="prj"
612*cdf0e10cSrcweir# As this is not part of the initial startup makefile we define an infered
613*cdf0e10cSrcweir# target instead of using $(OUT)/inc/myworld.mk as target name.
614*cdf0e10cSrcweir# (See iz62795)
615*cdf0e10cSrcweir$(posix_PWD)/$(OUT)/inc/%world.mk :
616*cdf0e10cSrcweir	@$(MKOUT) $(ROUT)
617*cdf0e10cSrcweir	@echo $(EMQ)# > $@
618*cdf0e10cSrcweir
619*cdf0e10cSrcweir.INCLUDE :  $(posix_PWD)/$(OUT)/inc/myworld.mk
620*cdf0e10cSrcweir
621*cdf0e10cSrcweir.IF "$(common_build)"!=""
622*cdf0e10cSrcweir$(posix_PWD)/$(LOCAL_COMMON_OUT)/inc/%world.mk :
623*cdf0e10cSrcweir	@$(MKOUT) $(subst,$(OUTPATH),$(COMMON_OUTDIR) $(ROUT))
624*cdf0e10cSrcweir	@echo $(EMQ)# > $@
625*cdf0e10cSrcweir
626*cdf0e10cSrcweir.INCLUDE : $(posix_PWD)/$(LOCAL_COMMON_OUT)/inc/myworld.mk
627*cdf0e10cSrcweir.ENDIF			# "$(common_build)"!=""
628*cdf0e10cSrcweir.ENDIF          # "$(TARGET)"!="prj"
629*cdf0e10cSrcweir
630*cdf0e10cSrcweir.INCLUDE .IGNORE : office.mk
631*cdf0e10cSrcweir
632*cdf0e10cSrcweir# Misc-Pfad
633*cdf0e10cSrcweir.IF "$(UNR)"!=""
634*cdf0e10cSrcweirMISCX=$(OUT)/umisc
635*cdf0e10cSrcweirMISC=$(OUT)/umisc
636*cdf0e10cSrcweir.ELSE
637*cdf0e10cSrcweirMISC=$(OUT)/misc
638*cdf0e10cSrcweir# pointing to misc in common output tree if exists
639*cdf0e10cSrcweirCOMMONMISC={$(subst,$(OUTPATH),$(COMMON_OUTDIR) $(MISC))}
640*cdf0e10cSrcweir.ENDIF
641*cdf0e10cSrcweir
642*cdf0e10cSrcweirOUTCXX=$(OUT)/cxx
643*cdf0e10cSrcweir
644*cdf0e10cSrcweir.IF "$(PACKAGE)"!=""
645*cdf0e10cSrcweirIDLPACKAGE:=$(PACKAGE)
646*cdf0e10cSrcweirIDLPACKAGENAME:=$(IDLPACKAGE:sX\X/X)
647*cdf0e10cSrcweir.ELSE
648*cdf0e10cSrcweirIDLPACKAGE=$(PRJNAME)
649*cdf0e10cSrcweirIDLPACKAGENAME=$(PRJNAME)
650*cdf0e10cSrcweir.ENDIF
651*cdf0e10cSrcweir
652*cdf0e10cSrcweir# Objekt-Pfad
653*cdf0e10cSrcweirOBJ=$(OUT)/obj
654*cdf0e10cSrcweirSLO=$(OUT)/slo
655*cdf0e10cSrcweirROBJ=$(ROUT)/obj
656*cdf0e10cSrcweirRSLO=$(ROUT)/slo
657*cdf0e10cSrcweir
658*cdf0e10cSrcweir# Particle Path
659*cdf0e10cSrcweirPAR=$(OUT)/par
660*cdf0e10cSrcweir
661*cdf0e10cSrcweir# Library-Pfad
662*cdf0e10cSrcweirLB=$(OUT)/lib
663*cdf0e10cSrcweirSLB=$(OUT)/slb
664*cdf0e10cSrcweir
665*cdf0e10cSrcweir# wir haben ein ucr verzeichnis
666*cdf0e10cSrcweirUCR=$(OUT)/ucr
667*cdf0e10cSrcweir
668*cdf0e10cSrcweir# $(L) nur noch pfad ins solver\upd\...\lib
669*cdf0e10cSrcweir#L:={$(LB);$(SLB);$(ILIB)}
670*cdf0e10cSrcweirL=$(SOLARLIBDIR)
671*cdf0e10cSrcweir
672*cdf0e10cSrcweir#.EXPORT : SLB LB L LIB
673*cdf0e10cSrcweirENVPRJ:=$(PRJ)
674*cdf0e10cSrcweir#todo: check PRJ is still expected to exist in environment
675*cdf0e10cSrcweir.EXPORT : PRJ ENVPRJ
676*cdf0e10cSrcweir
677*cdf0e10cSrcweir# Class-Path for java-classes
678*cdf0e10cSrcweir# obwohl der generierte Bytecode plattformunabhg. sein sollte
679*cdf0e10cSrcweir# generieren wir ihn ersteinmal ins abhaengige Verzeichnis
680*cdf0e10cSrcweirCLASSDIR=$(OUT)/class
681*cdf0e10cSrcweirCLASSPATH!:=.$(PATH_SEPERATOR)$(CLASSDIR)$(PATH_SEPERATOR)$(CLASSPATH)
682*cdf0e10cSrcweirSTARJAR=java -classpath $(CLASSPATH)$(PATH_SEPERATOR)$(SOLARENV)/bin/jtools.jar com.sun.star.tool.starjar.StarJar
683*cdf0e10cSrcweir
684*cdf0e10cSrcweirSTARDEP=$(AUGMENT_LIBRARY_PATH) $(SOLARBINDIR)/javadep
685*cdf0e10cSrcweir.IF "$(PRJNAME)"=="sj2"
686*cdf0e10cSrcweirCLASSPATH!:=$(CLASSPATH:s/sj2/no/)
687*cdf0e10cSrcweir.ENDIF
688*cdf0e10cSrcweir.IF "$(PRJNAME)"=="uno"
689*cdf0e10cSrcweirCLASSPATH!:=$(CLASSPATH:s/uno/no/)
690*cdf0e10cSrcweir.ENDIF
691*cdf0e10cSrcweir.IF "$(PRJNAME)"=="tkt"
692*cdf0e10cSrcweirCLASSPATH!:=$(CLASSPATH:s/tkt/no/)
693*cdf0e10cSrcweir.ENDIF
694*cdf0e10cSrcweir
695*cdf0e10cSrcweir# default output directory when processing
696*cdf0e10cSrcweir# configuration files
697*cdf0e10cSrcweirPROCESSOUT*:=$(MISC)
698*cdf0e10cSrcweir
699*cdf0e10cSrcweir# Makros fuer die Librarynamen des Solar
700*cdf0e10cSrcweir.INCLUDE : libs.mk
701*cdf0e10cSrcweir
702*cdf0e10cSrcweir.IF "$(GUI)"=="WNT" || "$(GUI)"=="OS2"
703*cdf0e10cSrcweirVERSIONOBJ=$(SLO)/_version.obj
704*cdf0e10cSrcweir.ENDIF
705*cdf0e10cSrcweir
706*cdf0e10cSrcweir.IF "$(GUI)"=="UNX"
707*cdf0e10cSrcweirVERSIONOBJ=$(SLO)/_version.o
708*cdf0e10cSrcweir.ENDIF
709*cdf0e10cSrcweir
710*cdf0e10cSrcweir.IF "$(GUI)"=="WNT" || "$(GUI)"=="OS2"
711*cdf0e10cSrcweirWINVERSIONNAMES=$(UNIXVERSIONNAMES)
712*cdf0e10cSrcweir.ENDIF			# "$(GUI)"=="WNT"
713*cdf0e10cSrcweir
714*cdf0e10cSrcweir.IF "$(GUI)"=="WNT" || "$(GUI)"=="OS2"
715*cdf0e10cSrcweir.IF "$(COM)"=="GCC"
716*cdf0e10cSrcweirSHELLLIB=-lgdi32 -lshell32 -ladvapi32 -lcomdlg32
717*cdf0e10cSrcweir.ELSE
718*cdf0e10cSrcweirSHELLLIB=gdi32.lib shell32.lib advapi32.lib comdlg32.lib
719*cdf0e10cSrcweir.ENDIF
720*cdf0e10cSrcweir.ENDIF
721*cdf0e10cSrcweir
722*cdf0e10cSrcweir# BIN-Pfad
723*cdf0e10cSrcweir.IF "$(UNR)"!=""
724*cdf0e10cSrcweirBIN=$(OUT)/ubin
725*cdf0e10cSrcweir.ELSE
726*cdf0e10cSrcweirBIN=$(OUT)/bin
727*cdf0e10cSrcweir.ENDIF
728*cdf0e10cSrcweir# pointing to misc in common output tree if exists
729*cdf0e10cSrcweirCOMMONBIN=$(LOCAL_COMMON_OUT)/bin
730*cdf0e10cSrcweir
731*cdf0e10cSrcweir# Include-Pfad
732*cdf0e10cSrcweir# still without -I here s.a. target.mk INCLUDE
733*cdf0e10cSrcweirINC=$(PRJ)/inc
734*cdf0e10cSrcweirINCPCH=$(PRJ)/inc/pch
735*cdf0e10cSrcweirINCLOCAL=../inc
736*cdf0e10cSrcweirINCGUI=$(PRJ)/$(GUIBASE)/inc
737*cdf0e10cSrcweirINCCOM=$(OUT)/inc
738*cdf0e10cSrcweirINCCOMX=$(OUT)/inc
739*cdf0e10cSrcweirINCUNOIDL=$(INCCOM)/$(PRJNAME)
740*cdf0e10cSrcweirINCDEPN=. $(INCGUI) $(INCLOCAL) $(INC) $(INC)/$(PRJNAME)
741*cdf0e10cSrcweir.IF "$(PRJINC)"!=""
742*cdf0e10cSrcweirINCLOCPRJ=$(foreach,i,$(PRJINC) $i/inc)
743*cdf0e10cSrcweirINCDEPN+=$(INCLOCPRJ)
744*cdf0e10cSrcweir.ENDIF
745*cdf0e10cSrcweir.IF "$(INCPRE)"!=""
746*cdf0e10cSrcweirINCDEPN+=$(INCPRE)
747*cdf0e10cSrcweir.ENDIF
748*cdf0e10cSrcweir
749*cdf0e10cSrcweir# Resource-Pfad fuer .SRS
750*cdf0e10cSrcweir
751*cdf0e10cSrcweir.IF "$(common_build_srs)"!=""
752*cdf0e10cSrcweirSRS=$(subst,$(OUTPATH),$(COMMON_OUTDIR) $(OUT))/srs
753*cdf0e10cSrcweirSRSX=$(subst,$(OUTPATH),$(COMMON_OUTDIR) $(OUT))/srs
754*cdf0e10cSrcweir.ELSE          # "$(common_build_srs)"!=""
755*cdf0e10cSrcweirSRS=$(OUT)/srs
756*cdf0e10cSrcweirSRSX=$(OUT)/srs
757*cdf0e10cSrcweir.ENDIF          # "$(common_build_srs)"!=""
758*cdf0e10cSrcweir
759*cdf0e10cSrcweir# Resource-Pfad fuer .RC und .RES
760*cdf0e10cSrcweirRES=$(OUT)/res
761*cdf0e10cSrcweir
762*cdf0e10cSrcweir# das normale MISC wird nicht an LDMISC angepasst, stattdessen MISCX
763*cdf0e10cSrcweir
764*cdf0e10cSrcweir.IF "$(make_xl)"!=""
765*cdf0e10cSrcweirBIN=$(PRJ)/$(OUTPATH).xl/bin
766*cdf0e10cSrcweir.ENDIF
767*cdf0e10cSrcweir
768*cdf0e10cSrcweir# damit gezielt Abhaengigkeiten auf s: angegeben werden koennen
769*cdf0e10cSrcweir
770*cdf0e10cSrcweir.IF "$(common_build)"!=""
771*cdf0e10cSrcweirSOLARIDLDIR=$(SOLARVERSION)/common$(PROEXT)/idl$(UPDMINOREXT)
772*cdf0e10cSrcweir.ELSE
773*cdf0e10cSrcweirSOLARIDLDIR=$(SOLARVERSION)/$(INPATH)/idl$(UPDMINOREXT)
774*cdf0e10cSrcweir.ENDIF
775*cdf0e10cSrcweir
776*cdf0e10cSrcweir#.IF "$(UPDMINOR)" != ""
777*cdf0e10cSrcweir#UPDMINOREXT=.$(UPDMINOR)
778*cdf0e10cSrcweir#.ELSE
779*cdf0e10cSrcweir#UPDMINOREXT=
780*cdf0e10cSrcweir#.ENDIF
781*cdf0e10cSrcweirSOLARRESDIR=$(SOLARVERSION)/$(INPATH)/res$(UPDMINOREXT)
782*cdf0e10cSrcweirSOLARRESXDIR=$(SOLARVERSION)/$(INPATH)/res$(UPDMINOREXT)
783*cdf0e10cSrcweirSOLARLIBDIR=$(SOLARVERSION)/$(INPATH)/lib$(UPDMINOREXT)
784*cdf0e10cSrcweirSOLARJAVADIR=$(SOLARVERSION)/$(INPATH)/java$(UPDMINOREXT)
785*cdf0e10cSrcweirSOLARINCDIR=$(SOLARVERSION)/$(INPATH)/inc$(UPDMINOREXT)
786*cdf0e10cSrcweirSOLARINCXDIR=$(SOLARVERSION)/$(INPATH)/inc$(UPDMINOREXT)
787*cdf0e10cSrcweir.IF "$(SOLARLANG)"!="deut"
788*cdf0e10cSrcweir.IF "$(SOLARLANG)" != ""
789*cdf0e10cSrcweirSOLARINCXDIR=$(SOLARVERSION)/$(INPATH)/inc$(UPDMINOREXT)/$(SOLARLANG)
790*cdf0e10cSrcweirSOLARRESXDIR=$(SOLARVERSION)/$(INPATH)/res$(UPDMINOREXT)/$(SOLARLANG)
791*cdf0e10cSrcweir.ENDIF
792*cdf0e10cSrcweir.ENDIF
793*cdf0e10cSrcweirSOLARBINDIR:=$(SOLARVERSION)/$(INPATH)/bin$(UPDMINOREXT)
794*cdf0e10cSrcweirSOLARUCRDIR=$(SOLARVERSION)/$(INPATH)/ucr$(UPDMINOREXT)
795*cdf0e10cSrcweirSOLARPARDIR=$(SOLARVERSION)/$(INPATH)/par$(UPDMINOREXT)
796*cdf0e10cSrcweirSOLARXMLDIR=$(SOLARVERSION)/$(INPATH)/xml$(UPDMINOREXT)
797*cdf0e10cSrcweirSOLARDOCDIR=$(SOLARVERSION)/$(INPATH)/doc$(UPDMINOREXT)
798*cdf0e10cSrcweirSOLARPCKDIR=$(SOLARVERSION)/$(INPATH)/pck$(UPDMINOREXT)
799*cdf0e10cSrcweirSOLARSDFDIR=$(SOLARVERSION)/$(INPATH)/sdf$(UPDMINOREXT)
800*cdf0e10cSrcweirSOLARCOMMONBINDIR=$(SOLARVERSION)/common$(PROEXT)/bin$(UPDMINOREXT)
801*cdf0e10cSrcweirSOLARCOMMONRESDIR=$(SOLARVERSION)/common$(PROEXT)/res$(UPDMINOREXT)
802*cdf0e10cSrcweirSOLARCOMMONPCKDIR=$(SOLARVERSION)/common$(PROEXT)/pck$(UPDMINOREXT)
803*cdf0e10cSrcweirSOLARCOMMONSDFDIR=$(SOLARVERSION)/common$(PROEXT)/sdf$(UPDMINOREXT)
804*cdf0e10cSrcweir.IF "$(common_build)"==""
805*cdf0e10cSrcweirSOLARCOMMONBINDIR=$(SOLARBINDIR)
806*cdf0e10cSrcweirSOLARCOMMONRESDIR=$(SOLARRESDIR)
807*cdf0e10cSrcweirSOLARCOMMONPCKDIR=$(SOLARPCKDIR)
808*cdf0e10cSrcweirSOLARCOMMONSDFDIR=$(SOLARSDFDIR)
809*cdf0e10cSrcweir.ENDIF
810*cdf0e10cSrcweir
811*cdf0e10cSrcweir.EXPORT : SOLARBINDIR
812*cdf0e10cSrcweir
813*cdf0e10cSrcweirL10N_MODULE*=$(SOURCE_ROOT_DIR)/l10n/l10n
814*cdf0e10cSrcweirALT_L10N_MODULE*=$(SOLARSRC)$/l10n_so
815*cdf0e10cSrcweir
816*cdf0e10cSrcweir.IF "$(WITH_LANG)"!=""
817*cdf0e10cSrcweir.INCLUDE .IGNORE: $(L10N_MODULE)/$(COMMON_OUTDIR)$(PROEXT)/inc/localization_present.mk
818*cdf0e10cSrcweir.INCLUDE .IGNORE: $(ALT_L10N_MODULE)/$(COMMON_OUTDIR)$(PROEXT)/inc/localization_present.mk
819*cdf0e10cSrcweir
820*cdf0e10cSrcweir# check for localizations not hosted in l10n module. if a file exists there
821*cdf0e10cSrcweir# it won't in l10n
822*cdf0e10cSrcweir.IF "$(ALT_LOCALIZATION_FOUND)"!=""
823*cdf0e10cSrcweirTRYALTSDF:=$(ALT_L10N_MODULE)$/$(COMMON_OUTDIR)$(PROEXT)$/misc/sdf$/$(PRJNAME)$/$(PATH_IN_MODULE)$/localize.sdf
824*cdf0e10cSrcweirLOCALIZESDF:=$(strip $(shell @+$(IFEXIST) $(TRYALTSDF) $(THEN) echo $(TRYALTSDF) $(FI)))
825*cdf0e10cSrcweir.ENDIF			# "$(ALT_LOCALIZATION_FOUND)"!=""
826*cdf0e10cSrcweir# if the l10n module exists, use split localize.sdf directly from there
827*cdf0e10cSrcweir.IF "$(LOCALIZATION_FOUND)"!="" && "$(LOCALIZESDF)"==""
828*cdf0e10cSrcweir# still check for existence as there may be no localization yet
829*cdf0e10cSrcweirTRYSDF:=$(L10N_MODULE)$/$(COMMON_OUTDIR)$(PROEXT)$/misc/sdf$/$(PRJNAME)$/$(PATH_IN_MODULE)$/localize.sdf
830*cdf0e10cSrcweirLOCALIZESDF:=$(strip $(shell @+$(IFEXIST) $(TRYSDF) $(THEN) echo $(TRYSDF) $(FI)))
831*cdf0e10cSrcweir.ENDIF			# "$(LOCALIZATION_FOUND)"!="" && "$(LOCALIZESDF)"==""
832*cdf0e10cSrcweir# else use localize.sdf from local output tree if localization .zip exists
833*cdf0e10cSrcweir.IF  "$(LOCALIZESDF)"==""
834*cdf0e10cSrcweirLOCALSDFFILE:=$(COMMONMISC)$/$(PRJNAME)$/$(PATH_IN_MODULE)$/localize.sdf
835*cdf0e10cSrcweirLOCALIZESDF:=$(strip $(shell @+$(IFEXIST) $(SOLARCOMMONSDFDIR)$/$(PRJNAME).zip $(THEN) echo $(LOCALSDFFILE) $(FI)))
836*cdf0e10cSrcweir.IF  "$(LOCALIZESDF)"==""
837*cdf0e10cSrcweirLOCALSDFFILE!:=
838*cdf0e10cSrcweir.ENDIF			# "$(LOCALIZESDF)"==""
839*cdf0e10cSrcweir.ENDIF			# "$(LOCALIZESDF)"==""
840*cdf0e10cSrcweir# dummy target to keep the build happy.
841*cdf0e10cSrcweir.IF  "$(LOCALIZESDF)"==""
842*cdf0e10cSrcweirLOCALIZESDF:=$(COMMONMISC)$/$(PRJNAME)$/dummy$/localize.sdf
843*cdf0e10cSrcweir.ENDIF			# "$(LOCALIZESDF)"==""
844*cdf0e10cSrcweir.ENDIF			# "$(WITH_LANG)"!=""
845*cdf0e10cSrcweir
846*cdf0e10cSrcweirJARDIR=$(OUT)/class
847*cdf0e10cSrcweir
848*cdf0e10cSrcweir# needs to be expanded!!!
849*cdf0e10cSrcweir
850*cdf0e10cSrcweir# extend library path for MS Compiler
851*cdf0e10cSrcweir.IF "$(COM)"=="MSC"
852*cdf0e10cSrcweirLIB:=$(LB);$(SLB);$(ILIB)
853*cdf0e10cSrcweir.ENDIF
854*cdf0e10cSrcweir
855*cdf0e10cSrcweir# extend library path for MinGW Compiler
856*cdf0e10cSrcweir.IF "$(GUI)$(COM)"=="WNTGCC"
857*cdf0e10cSrcweirLIB:=$(LB);$(BIN);$(ILIB)
858*cdf0e10cSrcweir.ENDIF
859*cdf0e10cSrcweir
860*cdf0e10cSrcweir# --- Environment-Allgemein ----------------------------------------
861*cdf0e10cSrcweir
862*cdf0e10cSrcweir.IF "$(CPUNAME)" == ""
863*cdf0e10cSrcweirCPUNAME=CPUNAME_HAS_TO_BE_SET_IN_ENVIRONMENT
864*cdf0e10cSrcweir.ENDIF
865*cdf0e10cSrcweir
866*cdf0e10cSrcweir.IF "$(USE_STLP_DEBUG)" != ""
867*cdf0e10cSrcweirSCPCDEFS+=-D_STLP_DEBUG
868*cdf0e10cSrcweir.ENDIF
869*cdf0e10cSrcweir
870*cdf0e10cSrcweir.IF "$(UDK_MAJOR)"!=""
871*cdf0e10cSrcweirSCPDEFS+=-DUDK_MAJOR=$(UDK_MAJOR)
872*cdf0e10cSrcweir.ENDIF			# "$(UDK_MAJOR)"!=""
873*cdf0e10cSrcweir
874*cdf0e10cSrcweirSCPDEFS+=-U$(COMID) -DCOMID=$(COMID) -DCOMNAME=$(COMNAME) -D_$(COMID)
875*cdf0e10cSrcweirSCPDEFS+=-DCCNUMVER=$(CCNUMVER)
876*cdf0e10cSrcweir.IF "$(COM)"=="GCC"
877*cdf0e10cSrcweirSCPDEFS+=-DSHORTSTDCPP3=$(SHORTSTDCPP3) -DSHORTSTDC3=$(SHORTSTDC3)
878*cdf0e10cSrcweir.ENDIF			# "$(SHORTSTDCPP3)"!=""
879*cdf0e10cSrcweir# extend library path for OS/2 gcc/wlink
880*cdf0e10cSrcweir.IF "$(GUI)"=="OS2"
881*cdf0e10cSrcweirLIB:=$(LB);$(SLB);$(ILIB)
882*cdf0e10cSrcweir.ENDIF
883*cdf0e10cSrcweir
884*cdf0e10cSrcweir
885*cdf0e10cSrcweirUNOIDLDEFS+=-DSUPD=$(UPD) -DUPD=$(UPD)
886*cdf0e10cSrcweir
887*cdf0e10cSrcweirUNOIDLDEPFLAGS=-Mdepend=$(SOLARVER)
888*cdf0e10cSrcweir
889*cdf0e10cSrcweirUNOIDLINC+=-I. -I.. -I$(PRJ) -I$(PRJ)/inc -I$(PRJ)/$(INPATH)/idl -I$(OUT)/inc -I$(SOLARIDLDIR) -I$(SOLARINCDIR)
890*cdf0e10cSrcweir
891*cdf0e10cSrcweirCDEFS= -D$(OS) -D$(GUI) -D$(GVER) -D$(COM) -D$(CVER) -D$(CPUNAME)
892*cdf0e10cSrcweir
893*cdf0e10cSrcweir.IF "$(USE_STLP_DEBUG)" != "" && "$(GUI)"!="OS2"
894*cdf0e10cSrcweirCDEFS+=-D_STLP_DEBUG
895*cdf0e10cSrcweir.ENDIF
896*cdf0e10cSrcweir
897*cdf0e10cSrcweir.IF "$(CDEFS_PRESET)" != ""
898*cdf0e10cSrcweirCDEFS+=$(CDEFS_PRESET)
899*cdf0e10cSrcweir.ENDIF
900*cdf0e10cSrcweir
901*cdf0e10cSrcweir.IF "$(TIMELOG)" != ""
902*cdf0e10cSrcweirCDEFS+=-DTIMELOG
903*cdf0e10cSrcweir.ENDIF
904*cdf0e10cSrcweir
905*cdf0e10cSrcweirCDEFSCXX=
906*cdf0e10cSrcweirCDEFSOBJ=
907*cdf0e10cSrcweirCDEFSSLO=-DSHAREDLIB -D_DLL_
908*cdf0e10cSrcweirCDEFSGUI=-DGUI
909*cdf0e10cSrcweirCDEFSCUI=-DCUI
910*cdf0e10cSrcweir#CDEFSMT=-DMULTITHREAD
911*cdf0e10cSrcweirCDEFSPROF=-DPROFILE
912*cdf0e10cSrcweir.IF "$(dbg_build_only)" == ""
913*cdf0e10cSrcweirCDEFSDEBUG=-DDEBUG
914*cdf0e10cSrcweir.ENDIF
915*cdf0e10cSrcweirCDEFSDBGUTIL=-DDBG_UTIL
916*cdf0e10cSrcweirCDEFSOPT=-DOPTIMIZE
917*cdf0e10cSrcweir
918*cdf0e10cSrcweirMKDEPFLAGS+=-I$(INCDEPN:s/ / -I/:s/-I-I/-I/)
919*cdf0e10cSrcweirMKDEPALLINC=$(SOLARINC:s/-I/ -I/)
920*cdf0e10cSrcweirMKDEPPREINC=-I$(PREPATH)/$(INPATH)/inc$(UPDMINOREXT)
921*cdf0e10cSrcweirMKDEPSOLENV=-I$(SOLARENV)/inc -I$(SOLARENV)/$(GUI)$(CVER)$(COMEX)/inc
922*cdf0e10cSrcweirMKDEPSOLVER=-I$(SOLARVERSION)/$(INPATH)/inc$(UPDMINOREXT) -I$(SOLARVERSION)/$(INPATH)/inc
923*cdf0e10cSrcweirMKDEPLOCAL=-I$(INCCOM)
924*cdf0e10cSrcweir
925*cdf0e10cSrcweir.IF "$(MKDEPENDALL)"!=""
926*cdf0e10cSrcweirMKDEPFLAGS+=$(MKDEPALLINC)
927*cdf0e10cSrcweir.ENDIF
928*cdf0e10cSrcweir
929*cdf0e10cSrcweir.IF "$(MKDEPENDSOLENV)"!=""
930*cdf0e10cSrcweirMKDEPFLAGS+=$(MKDEPSOLENV)
931*cdf0e10cSrcweir.ENDIF
932*cdf0e10cSrcweir
933*cdf0e10cSrcweir.IF "$(MKDEPENDPREPATH)"!=""
934*cdf0e10cSrcweirMKDEPFLAGS+=$(MKDEPPREINC)
935*cdf0e10cSrcweir.ENDIF
936*cdf0e10cSrcweir
937*cdf0e10cSrcweir.IF "$(MKDEPENDSOLVER)"!=""
938*cdf0e10cSrcweirMKDEPFLAGS+=$(MKDEPSOLVER)
939*cdf0e10cSrcweir.ENDIF
940*cdf0e10cSrcweir# unused - nodep should do the same now
941*cdf0e10cSrcweir#.IF "$(MKDEPENDLOCAL)"!="NO"
942*cdf0e10cSrcweirMKDEPFLAGS+=$(MKDEPLOCAL)
943*cdf0e10cSrcweir#.ENDIF
944*cdf0e10cSrcweir
945*cdf0e10cSrcweirBISON*=bison
946*cdf0e10cSrcweirYACCFLAGS*=-d
947*cdf0e10cSrcweir
948*cdf0e10cSrcweirSVIDL=$(AUGMENT_LIBRARY_PATH) $(SOLARBINDIR)/svidl
949*cdf0e10cSrcweir
950*cdf0e10cSrcweirLDUMP2*=$(SOLARBINDIR)/ldump4
951*cdf0e10cSrcweir
952*cdf0e10cSrcweirZIPUPDATE=-u -j
953*cdf0e10cSrcweirZIPFLAGS=$(ZIPUPDATE)
954*cdf0e10cSrcweir#hack for dynamic language subdirs
955*cdf0e10cSrcweirLANGDIR=LANGDIR
956*cdf0e10cSrcweir
957*cdf0e10cSrcweir#scplinker flags
958*cdf0e10cSrcweirSCPLINKFLAGS=-i $(PAR),$(SOLARPARDIR)
959*cdf0e10cSrcweir.IF "$(SCPLINKVERSION)"!=""
960*cdf0e10cSrcweirSCPLINKFLAGS+=-v $(SCPLINKVERSION)
961*cdf0e10cSrcweir.ENDIF			# "$(SCPLINKVERSION)"!=""
962*cdf0e10cSrcweir
963*cdf0e10cSrcweir.IF "$(make_srs_deps)"!=""
964*cdf0e10cSrcweirRSC=$(AUGMENT_LIBRARY_PATH) $(SOLARBINDIR)/rscdep
965*cdf0e10cSrcweir.ELSE # "$(make_srs_deps)"!=""
966*cdf0e10cSrcweirRSC=$(AUGMENT_LIBRARY_PATH) $(FLIPCMD) $(SOLARBINDIR)/rsc
967*cdf0e10cSrcweir.ENDIF # "$(make_srs_deps)"!=""
968*cdf0e10cSrcweir
969*cdf0e10cSrcweir.IF "$(VERBOSE)" == "TRUE"
970*cdf0e10cSrcweir    VERBOSITY=-verbose
971*cdf0e10cSrcweir.ELSE
972*cdf0e10cSrcweir    COMMAND_ECHO=@
973*cdf0e10cSrcweir    .IF "$(VERBOSE)" == "FALSE"
974*cdf0e10cSrcweir        VERBOSITY=-quiet
975*cdf0e10cSrcweir        ZIP_VERBOSITY=-q
976*cdf0e10cSrcweir    .ENDIF
977*cdf0e10cSrcweir.ENDIF # "$(VERBOSE)" == "TRUE"
978*cdf0e10cSrcweirCOMPILE_ECHO_SWITCH=
979*cdf0e10cSrcweirCOMPILE_ECHO_FILE=$(<:f)
980*cdf0e10cSrcweir
981*cdf0e10cSrcweir#new
982*cdf0e10cSrcweirRSCUPDVER=$(RSCREVISION)
983*cdf0e10cSrcweirRSCUPDVERDEF=-DUPDVER="$(RSCUPDVER)"
984*cdf0e10cSrcweir
985*cdf0e10cSrcweirRSCFLAGS=-s
986*cdf0e10cSrcweirRSCDEFS=-D$(GUI) -D$(GVER) -D$(COM) -D$(CVER) $(JAVADEF)
987*cdf0e10cSrcweir
988*cdf0e10cSrcweir.IF "$(BUILD_SPECIAL)"!=""
989*cdf0e10cSrcweirRSCDEFS+=-DBUILD_SPECIAL=$(BUILD_SPECIAL)
990*cdf0e10cSrcweir.ENDIF
991*cdf0e10cSrcweir
992*cdf0e10cSrcweirRSCDEFIMG*=default_images
993*cdf0e10cSrcweir
994*cdf0e10cSrcweirRSCEXTINC=.
995*cdf0e10cSrcweir
996*cdf0e10cSrcweir.IF "$(DEBUG)" != ""
997*cdf0e10cSrcweirRSCDEFS+= -DDEBUG
998*cdf0e10cSrcweir.ENDIF
999*cdf0e10cSrcweir
1000*cdf0e10cSrcweir# settings for mozilla idl compiler
1001*cdf0e10cSrcweirXPIDL=xpidl
1002*cdf0e10cSrcweirXPIDL_LINK=xpt_link
1003*cdf0e10cSrcweir
1004*cdf0e10cSrcweir# alle bisher verwendeten Linker benutzen + um LIBs auf der naechsten Zeile
1005*cdf0e10cSrcweir# weiter zu schreiben, wenn es da eine Ausnahme geben sollte, muss
1006*cdf0e10cSrcweir# LINKEXTENDLINE compilerabhaengig definiert werden
1007*cdf0e10cSrcweirLINKEXTENDLINE=+
1008*cdf0e10cSrcweir
1009*cdf0e10cSrcweirLNT=$(DEVROOT)/lint/lint
1010*cdf0e10cSrcweir#LNTFLAGS=+v -i$(DEVROOT)/lint\ -mL options.lnt -u
1011*cdf0e10cSrcweirLNTFLAGS=+v -i$(DEVROOT)/lint/ -mL options.lnt -u
1012*cdf0e10cSrcweirLNTFLAGSOUTOBJ=-os
1013*cdf0e10cSrcweir
1014*cdf0e10cSrcweir.IF "$(GUI)"=="WNT"
1015*cdf0e10cSrcweir.INCLUDE : wnt.mk
1016*cdf0e10cSrcweir.ENDIF
1017*cdf0e10cSrcweir
1018*cdf0e10cSrcweir.IF "$(GUI)" == "UNX"
1019*cdf0e10cSrcweir.INCLUDE : unx.mk
1020*cdf0e10cSrcweir.ENDIF
1021*cdf0e10cSrcweir
1022*cdf0e10cSrcweir.IF "$(GUI)" == "OS2"
1023*cdf0e10cSrcweir.INCLUDE : os2.mk
1024*cdf0e10cSrcweir.ENDIF
1025*cdf0e10cSrcweir
1026*cdf0e10cSrcweir.IF "$(OOO_LIBRARY_PATH_VAR)" != ""
1027*cdf0e10cSrcweir# Add SOLARLIBDIR at the begin of a (potentially previously undefined) library
1028*cdf0e10cSrcweir# path (LD_LIBRARY_PATH, PATH, etc.; prepending avoids fetching libraries from
1029*cdf0e10cSrcweir# an existing office/URE installation; the ": &&" enables this to work at the
1030*cdf0e10cSrcweir# start of a recipe line that is not prefixed by "+" as well as in the middle of
1031*cdf0e10cSrcweir# an existing && chain:
1032*cdf0e10cSrcweirAUGMENT_LIBRARY_PATH = : && \
1033*cdf0e10cSrcweir    $(OOO_LIBRARY_PATH_VAR)=$(normpath, $(SOLARSHAREDBIN))$${{$(OOO_LIBRARY_PATH_VAR):+:$${{$(OOO_LIBRARY_PATH_VAR)}}}}
1034*cdf0e10cSrcweirAUGMENT_LIBRARY_PATH_LOCAL = : && \
1035*cdf0e10cSrcweir    $(OOO_LIBRARY_PATH_VAR)=$(normpath, $(PWD)/$(DLLDEST)):$(normpath, $(SOLARSHAREDBIN))$${{$(OOO_LIBRARY_PATH_VAR):+:$${{$(OOO_LIBRARY_PATH_VAR)}}}}
1036*cdf0e10cSrcweir.END
1037*cdf0e10cSrcweir
1038*cdf0e10cSrcweir# remove if .Net 2003 support has expired
1039*cdf0e10cSrcweir.IF "$(debug)"!=""
1040*cdf0e10cSrcweir.IF "$(OS)$(COM)$(CPU)" == "WNTMSCI"
1041*cdf0e10cSrcweir.IF "$(COMEX)" == "10"
1042*cdf0e10cSrcweir.IF "$(SLOFILES)$(OBJFILES)$(DEPOBJFILES)"!=""
1043*cdf0e10cSrcweirMAXPROCESS!:=1
1044*cdf0e10cSrcweir.EXPORT : MAXPROCESS
1045*cdf0e10cSrcweir.ENDIF			# "$(SLOFILES)$(OBJFILES)$(DEPOBJFILES)"!=""
1046*cdf0e10cSrcweir.ENDIF			# "$(COMEX)" == "10"
1047*cdf0e10cSrcweir.ENDIF			# "$(OS)$(COM)$(CPU)" == "WNTMSCI"
1048*cdf0e10cSrcweir.ENDIF			# "$(debug)"!=""
1049*cdf0e10cSrcweir
1050*cdf0e10cSrcweir# for multiprocess building in external modules
1051*cdf0e10cSrcweir# allow seperate handling
1052*cdf0e10cSrcweirEXTMAXPROCESS*=$(MAXPROCESS)
1053*cdf0e10cSrcweir
1054*cdf0e10cSrcweirIDLC*=$(AUGMENT_LIBRARY_PATH) $(SOLARBINDIR)/idlc
1055*cdf0e10cSrcweirREGMERGE*=$(AUGMENT_LIBRARY_PATH) $(SOLARBINDIR)/regmerge
1056*cdf0e10cSrcweirREGCOMPARE*=$(AUGMENT_LIBRARY_PATH) $(SOLARBINDIR)/regcompare
1057*cdf0e10cSrcweirREGCOMP*=$(AUGMENT_LIBRARY_PATH) $(SOLARBINDIR)/regcomp
1058*cdf0e10cSrcweirCPPUMAKER*=$(AUGMENT_LIBRARY_PATH) $(SOLARBINDIR)/cppumaker
1059*cdf0e10cSrcweirJAVAMAKER*=$(AUGMENT_LIBRARY_PATH) $(SOLARBINDIR)/javamaker
1060*cdf0e10cSrcweirRDBMAKER*=$(AUGMENT_LIBRARY_PATH) $(SOLARBINDIR)/rdbmaker
1061*cdf0e10cSrcweirCLIMAKER*=$(AUGMENT_LIBRARY_PATH) $(SOLARBINDIR)/climaker
1062*cdf0e10cSrcweir
1063*cdf0e10cSrcweirCPPUNITTESTER=$(AUGMENT_LIBRARY_PATH_LOCAL) $(SOLARBINDIR)/cppunittester
1064*cdf0e10cSrcweirHELPEX=$(AUGMENT_LIBRARY_PATH) $(SOLARBINDIR)/helpex
1065*cdf0e10cSrcweirLNGCONVEX=$(AUGMENT_LIBRARY_PATH) $(SOLARBINDIR)/lngconvex
1066*cdf0e10cSrcweirHELPLINKER=$(AUGMENT_LIBRARY_PATH) $(SOLARBINDIR)/HelpLinker
1067*cdf0e10cSrcweir
1068*cdf0e10cSrcweir.IF "$(JAVAINTERPRETER)" == ""
1069*cdf0e10cSrcweirJAVA*:=java
1070*cdf0e10cSrcweir.ELSE
1071*cdf0e10cSrcweirJAVA*:=$(JAVAINTERPRETER)
1072*cdf0e10cSrcweir.ENDIF
1073*cdf0e10cSrcweir.EXPORT : JAVA JAVAI
1074*cdf0e10cSrcweir
1075*cdf0e10cSrcweir# Define SCPCOMP without wrapper because pre2par.pl chokes on DOS style
1076*cdf0e10cSrcweir# pathes. (See iz57443)
1077*cdf0e10cSrcweirSCPCOMP=$(PERL) $(SOLARENV)/bin/pre2par.pl
1078*cdf0e10cSrcweirSCPLINK=$(PERL) $(SOLARENV)/bin/par2script.pl
1079*cdf0e10cSrcweirLZIP*=lzip
1080*cdf0e10cSrcweirCPPLCC*=$(AUGMENT_LIBRARY_PATH) $(SOLARBINDIR)/cpplcc
1081*cdf0e10cSrcweir
1082*cdf0e10cSrcweir.IF "$(DISABLE_ENHANCED_COMID)"==""
1083*cdf0e10cSrcweir.INCLUDE : tg_compv.mk
1084*cdf0e10cSrcweir.ELSE          # "$(DISABLE_ENHANCED_COMID)"==""
1085*cdf0e10cSrcweirCOMID=$(COM)
1086*cdf0e10cSrcweir.ENDIF          # "$(DISABLE_ENHANCED_COMID)"==""
1087*cdf0e10cSrcweir.IF "$(SOLAR_JAVA)"=="TRUE"
1088*cdf0e10cSrcweir.IF "$(USE_JAVAVER)"!=""
1089*cdf0e10cSrcweir.INCLUDE : tg_javav.mk
1090*cdf0e10cSrcweir.ENDIF "$(USE_JAVAVER)"!=""
1091*cdf0e10cSrcweir.ENDIF			# "$(SOLAR_JAVA)"=="TRUE"
1092*cdf0e10cSrcweir
1093*cdf0e10cSrcweir.IF "$(COM)"=="GCC"
1094*cdf0e10cSrcweirGXX_INCLUDE_PATH*:=$(COMPATH)/include/c++/$(CCVER)
1095*cdf0e10cSrcweir.EXPORT : GXX_INCLUDE_PATH
1096*cdf0e10cSrcweirCDEFS+= -DGXX_INCLUDE_PATH=$(GXX_INCLUDE_PATH)
1097*cdf0e10cSrcweir.ENDIF
1098*cdf0e10cSrcweir
1099*cdf0e10cSrcweir# --- extend new environment ----------------------------------
1100*cdf0e10cSrcweirCDEFS+= -DSUPD=$(UPD)
1101*cdf0e10cSrcweir
1102*cdf0e10cSrcweir# flags to enable build with symbols; required for crashdump feature
1103*cdf0e10cSrcweir.IF ("$(ENABLE_CRASHDUMP)"!="" && "$(ENABLE_CRASHDUMP)"!="DUMMY") || "$(ENABLE_SYMBOLS)"!=""
1104*cdf0e10cSrcweirCFLAGSENABLESYMBOLS_CC_ONLY*=$(CFLAGSENABLESYMBOLS)
1105*cdf0e10cSrcweirCFLAGSCXX+=$(CFLAGSENABLESYMBOLS)
1106*cdf0e10cSrcweirCFLAGSCC+=$(CFLAGSENABLESYMBOLS_CC_ONLY)
1107*cdf0e10cSrcweir.ENDIF          # ("$(ENABLE_CRASHDUMP)"!="" && "$(ENABLE_CRASHDUMP)"!="DUMMY") || "$(ENABLE_SYMBOLS)"!=""
1108*cdf0e10cSrcweir
1109*cdf0e10cSrcweir.IF "$(profile)"!=""
1110*cdf0e10cSrcweirCDEFS+= $(CDEFSPROF)
1111*cdf0e10cSrcweirCFLAGS+= $(CFLAGSPROF)
1112*cdf0e10cSrcweir.IF "$(WST)"!=""
1113*cdf0e10cSrcweirLINKFLAGS=$(LINKFLAGSWST)
1114*cdf0e10cSrcweirLINKCFLAGS=$(LINKFLAGSWST)
1115*cdf0e10cSrcweir.ELSE
1116*cdf0e10cSrcweirLINKFLAGSADD+=$(LINKFLAGSPROF)
1117*cdf0e10cSrcweir.ENDIF
1118*cdf0e10cSrcweir.ENDIF
1119*cdf0e10cSrcweir
1120*cdf0e10cSrcweir.IF "$(debug)"!=""
1121*cdf0e10cSrcweirJAVAFLAGS+=$(JAVAFLAGSDEBUG)
1122*cdf0e10cSrcweirCDEFS+= $(CDEFSDEBUG)
1123*cdf0e10cSrcweirCFLAGS+= $(CFLAGSDEBUG)
1124*cdf0e10cSrcweirLINKFLAGSADD+= $(LINKFLAGSDEBUG)
1125*cdf0e10cSrcweir.ENDIF
1126*cdf0e10cSrcweir
1127*cdf0e10cSrcweir.IF "$(dbgutil)"!=""
1128*cdf0e10cSrcweirCDEFS+=$(CDEFSDBGUTIL)
1129*cdf0e10cSrcweirCFLAGS+=$(CFLAGSDBGUTIL)
1130*cdf0e10cSrcweirRSCDEFS+=-DDBG_UTIL
1131*cdf0e10cSrcweir.ENDIF
1132*cdf0e10cSrcweir
1133*cdf0e10cSrcweir.IF "$(product)"!=""
1134*cdf0e10cSrcweirCDEFS+= -DPRODUCT -DNDEBUG
1135*cdf0e10cSrcweirRSCDEFS+= -DPRODUCT
1136*cdf0e10cSrcweirRSCDEFS+= -DNDEBUG
1137*cdf0e10cSrcweir.ENDIF
1138*cdf0e10cSrcweir
1139*cdf0e10cSrcweir.IF "$(DBG_LEVEL)"!=""
1140*cdf0e10cSrcweirCDEFS+=-DOSL_DEBUG_LEVEL=$(DBG_LEVEL)
1141*cdf0e10cSrcweirRSCDEFS+=-DOSL_DEBUG_LEVEL=$(DBG_LEVEL)
1142*cdf0e10cSrcweir.ENDIF
1143*cdf0e10cSrcweir
1144*cdf0e10cSrcweir.IF "$(optimize)"!=""
1145*cdf0e10cSrcweirCDEFS+=$(CDEFSOPT)
1146*cdf0e10cSrcweirCFLAGS+=$(CFLAGSOPT)
1147*cdf0e10cSrcweirLINKFLAGSADD+=$(LINKFLAGSOPT)
1148*cdf0e10cSrcweir.ELSE
1149*cdf0e10cSrcweirCFLAGS+=$(CFLAGSNOOPT)
1150*cdf0e10cSrcweir.ENDIF
1151*cdf0e10cSrcweir
1152*cdf0e10cSrcweir.IF "$(ENABLE_EXCEPTIONS)"!=""
1153*cdf0e10cSrcweirGLOBAL_EXCEPTIONS_FLAGS+=$(CFLAGSEXCEPTIONS)
1154*cdf0e10cSrcweirGLOBAL_EXCEPTIONS_FLAGS+=-DEXCEPTIONS_ON
1155*cdf0e10cSrcweir.ELSE
1156*cdf0e10cSrcweirGLOBAL_EXCEPTIONS_FLAGS+=$(CFLAGS_NO_EXCEPTIONS)
1157*cdf0e10cSrcweirGLOBAL_EXCEPTIONS_FLAGS+=-DEXCEPTIONS_OFF
1158*cdf0e10cSrcweir.ENDIF
1159*cdf0e10cSrcweir# used if an object appears in the EXCEPTIONSFILES list
1160*cdf0e10cSrcweir# see also rules.mk
1161*cdf0e10cSrcweirLOCAL_EXCEPTIONS_FLAGS+=$(CFLAGSEXCEPTIONS)
1162*cdf0e10cSrcweirLOCAL_EXCEPTIONS_FLAGS+=-DEXCEPTIONS_ON
1163*cdf0e10cSrcweir
1164*cdf0e10cSrcweir.IF "$(ENABLE_LAYOUT)" == "TRUE"
1165*cdf0e10cSrcweirCDEFS+=-DENABLE_LAYOUT=1
1166*cdf0e10cSrcweir.ELSE # ENABLE_LAYOUT != TRUE
1167*cdf0e10cSrcweirCFLAGS+=-DENABLE_LAYOUT=0
1168*cdf0e10cSrcweir.ENDIF # ENABLE_LAYOUT != TRUE
1169*cdf0e10cSrcweir
1170*cdf0e10cSrcweir.IF "$(ENABLE_LAYOUT_EXPERIMENTAL)" == "TRUE"
1171*cdf0e10cSrcweirCDEFS+=-DENABLE_LAYOUT_EXPERIMENTAL=1
1172*cdf0e10cSrcweir.ELSE # ENABLE_LAYOUT_EXPERIMENTAL != TRUE
1173*cdf0e10cSrcweirCFLAGS+=-DENABLE_LAYOUT_EXPERIMENTAL=0
1174*cdf0e10cSrcweir.ENDIF # ENABLE_LAYOUT_EXPERIMENTAL != TRUE
1175*cdf0e10cSrcweir
1176*cdf0e10cSrcweir# compose flags and defines for GUI
1177*cdf0e10cSrcweir.IF "$(TARGETTYPE)"=="GUI"
1178*cdf0e10cSrcweirCDEFS+= $(CDEFSGUI)
1179*cdf0e10cSrcweirCFLAGSSLO+=$(CFLAGSSLOGUIMT)
1180*cdf0e10cSrcweirCDEFSSLO+=$(CDEFSSLOMT)
1181*cdf0e10cSrcweirLINKFLAGSAPP=$(LINKFLAGSAPPGUI)
1182*cdf0e10cSrcweirLINKFLAGSSHL=$(LINKFLAGSSHLGUI)
1183*cdf0e10cSrcweirSTDOBJ=$(STDOBJGUI)
1184*cdf0e10cSrcweirSTDSLO=$(STDSLOGUI)
1185*cdf0e10cSrcweir
1186*cdf0e10cSrcweirCDEFSOBJ+= $(CDEFSMT) $(CDEFSOBJMT)
1187*cdf0e10cSrcweirCFLAGSOBJ+=$(CFLAGSOBJGUIMT)
1188*cdf0e10cSrcweirSTDLIB=$(STDLIBGUIMT)
1189*cdf0e10cSrcweirSTDSHL=$(STDSHLGUIMT)
1190*cdf0e10cSrcweir
1191*cdf0e10cSrcweir.ENDIF
1192*cdf0e10cSrcweir
1193*cdf0e10cSrcweir# compose flags and defines for CUI
1194*cdf0e10cSrcweir.IF "$(TARGETTYPE)" == "CUI" || "$(TARGETTYPE)"=="cui"
1195*cdf0e10cSrcweirCDEFS+= $(CDEFSCUI)
1196*cdf0e10cSrcweirCFLAGSSLO+=$(CFLAGSSLOCUIMT)
1197*cdf0e10cSrcweirCDEFSSLO+=$(CDEFSSLOMT)
1198*cdf0e10cSrcweirLINKFLAGSAPP=$(LINKFLAGSAPPCUI)
1199*cdf0e10cSrcweirLINKFLAGSSHL=$(LINKFLAGSSHLCUI)
1200*cdf0e10cSrcweirSTDOBJ=$(STDOBJCUI)
1201*cdf0e10cSrcweirSTDSLO=$(STDSLOCUI)
1202*cdf0e10cSrcweir
1203*cdf0e10cSrcweirCDEFSOBJ+=$(CDEFSMT) $(CDEFSOBJMT)
1204*cdf0e10cSrcweirCFLAGSOBJ+=$(CFLAGSOBJCUIMT)
1205*cdf0e10cSrcweirSTDLIB=$(STDLIBCUIMT)
1206*cdf0e10cSrcweirSTDSHL=$(STDSHLCUIMT)
1207*cdf0e10cSrcweir
1208*cdf0e10cSrcweir.ENDIF
1209*cdf0e10cSrcweir
1210*cdf0e10cSrcweir.EXPORT : PICSWITCH
1211*cdf0e10cSrcweir
1212*cdf0e10cSrcweir.IF "$(USE_SYSTEM_STL)"=="YES"
1213*cdf0e10cSrcweirLIBSTLPORT=""
1214*cdf0e10cSrcweir.ENDIF
1215*cdf0e10cSrcweir
1216*cdf0e10cSrcweir.IF "$(NO_DEFAULT_STL)"==""
1217*cdf0e10cSrcweirSTDLIB+=$(LIBSTLPORT)
1218*cdf0e10cSrcweirSTDSHL+=$(LIBSTLPORT)
1219*cdf0e10cSrcweir.ENDIF			# "$(NO_DEFAULT_STL)"==""
1220*cdf0e10cSrcweir
1221*cdf0e10cSrcweir# fill up unresolved symbols not found else where
1222*cdf0e10cSrcweir.IF "$(FILLUPARC)"!=""
1223*cdf0e10cSrcweirSTDLIB+=$(FILLUPARC)
1224*cdf0e10cSrcweirSTDSHL+=$(FILLUPARC)
1225*cdf0e10cSrcweir.ENDIF			# "$(FILUPARC)"!=""
1226*cdf0e10cSrcweir
1227*cdf0e10cSrcweir.IF "$(SOLAR_JAVA)"!=""
1228*cdf0e10cSrcweirCDEFS+=$(JAVADEF)
1229*cdf0e10cSrcweir.ENDIF          # "$(SOLAR_JAVA)"!=""
1230*cdf0e10cSrcweir
1231*cdf0e10cSrcweir.INCLUDE .IGNORE: $(UPD)$(LAST_MINOR).mk
1232*cdf0e10cSrcweir
1233*cdf0e10cSrcweir# Once all modules on a given platform compile without warnings, the specific
1234*cdf0e10cSrcweir# .mk file for that platform should set COMPILER_WARN_ERRORS=TRUE and no longer
1235*cdf0e10cSrcweir# set MODULES_WITH_WARNINGS, and once no platform sets MODULES_WITH_WARNINGS any
1236*cdf0e10cSrcweir# longer, this code can go away:
1237*cdf0e10cSrcweir.IF "$(MODULES_WITH_WARNINGS)" != ""
1238*cdf0e10cSrcweirMODULES_WITH_WARNINGS_1 := $(foreach,i,$(MODULES_WITH_WARNINGS) .$(i).)
1239*cdf0e10cSrcweirMODULES_WITH_WARNINGS_2 := $(subst,.$(PRJNAME)., $(MODULES_WITH_WARNINGS_1))
1240*cdf0e10cSrcweir.IF "$(MODULES_WITH_WARNINGS_1)" == "$(MODULES_WITH_WARNINGS_2)"
1241*cdf0e10cSrcweirCOMPILER_WARN_ERRORS = TRUE
1242*cdf0e10cSrcweir.ENDIF
1243*cdf0e10cSrcweir.ENDIF
1244*cdf0e10cSrcweir
1245*cdf0e10cSrcweirCFLAGSWARNCXX *= $(CFLAGSWARNCC)
1246*cdf0e10cSrcweirCFLAGSWALLCXX *= $(CFLAGSWALLCC)
1247*cdf0e10cSrcweirCFLAGSWERRCXX *= $(CFLAGSWERRCC)
1248*cdf0e10cSrcweir
1249*cdf0e10cSrcweir.IF "$(ENVWARNFLAGS)"==""
1250*cdf0e10cSrcweir.IF "$(COMPILER_WARN_ALL)"==""
1251*cdf0e10cSrcweirCFLAGSCC+=$(CFLAGSWARNCC)
1252*cdf0e10cSrcweirCFLAGSCXX+=$(CFLAGSWARNCXX)
1253*cdf0e10cSrcweir.ELSE
1254*cdf0e10cSrcweirCFLAGSCC+=$(CFLAGSWALLCC)
1255*cdf0e10cSrcweirCFLAGSCXX+=$(CFLAGSWALLCXX)
1256*cdf0e10cSrcweir.ENDIF
1257*cdf0e10cSrcweir.IF "$(COMPILER_WARN_ERRORS)"!="" && "$(EXTERNAL_WARNINGS_NOT_ERRORS)"==""
1258*cdf0e10cSrcweirCFLAGSCC+=$(CFLAGSWERRCC)
1259*cdf0e10cSrcweirCFLAGSCXX+=$(CFLAGSWERRCXX)
1260*cdf0e10cSrcweir.ENDIF
1261*cdf0e10cSrcweir.ELSE			# "$(ENVWARNFLAGS)"==""
1262*cdf0e10cSrcweirCFLAGSAPPEND+=$(ENVWARNFLAGS)
1263*cdf0e10cSrcweir.ENDIF			# "$(ENVWARNFLAGS)"==""
1264*cdf0e10cSrcweir
1265*cdf0e10cSrcweirCDEFS+= $(ADDCDEFS)
1266*cdf0e10cSrcweirCDEFS+= $(ENVCDEFS)
1267*cdf0e10cSrcweirCFLAGS+= $(CFLAGSCALL) $(ENVCFLAGS)
1268*cdf0e10cSrcweirCFLAGSCXX+= $(ENVCFLAGSCXX)
1269*cdf0e10cSrcweir# andersrum wg. -TPxxxx
1270*cdf0e10cSrcweirCFLAGSINCXX+:=$(ENVCFLAGSINCXX)
1271*cdf0e10cSrcweirLIBFLAGS+= $(ENVLIBFLAGS)
1272*cdf0e10cSrcweirLINKFLAGSADD+= $(ENVLINKFLAGS)
1273*cdf0e10cSrcweirRSCFLAGS+= $(ENVRSCFLAGS)
1274*cdf0e10cSrcweirRSCDEFS+= $(ENVRSCDEFS)
1275*cdf0e10cSrcweir# RSCLINKFLAGS+= $(ENVRSCLINKFLAGS)
1276*cdf0e10cSrcweirRCFLAGS+= $(ENVRCFLAGS)
1277*cdf0e10cSrcweirRCLINKFLAGS+= $(ENVRCLINKFLAGS)
1278*cdf0e10cSrcweir
1279*cdf0e10cSrcweirLINKFLAGSRUNPATH_URELIB*=
1280*cdf0e10cSrcweirLINKFLAGSRUNPATH_UREBIN*=
1281*cdf0e10cSrcweirLINKFLAGSRUNPATH_OOO*=
1282*cdf0e10cSrcweirLINKFLAGSRUNPATH_SDK*=
1283*cdf0e10cSrcweirLINKFLAGSRUNPATH_BRAND*=
1284*cdf0e10cSrcweirLINKFLAGSRUNPATH_OXT*=
1285*cdf0e10cSrcweirLINKFLAGSRUNPATH_BOXT*=
1286*cdf0e10cSrcweirLINKFLAGSRUNPATH_NONE*=
1287*cdf0e10cSrcweir
1288*cdf0e10cSrcweir# make sure both linker variables are set
1289*cdf0e10cSrcweirLINKC*=$(LINK)
1290*cdf0e10cSrcweirLINKCFLAGS*=$(LINKFLAGS)
1291*cdf0e10cSrcweirLINKFLAGS+=$(LINKFLAGSADD)
1292*cdf0e10cSrcweirLINKCFLAGS+=$(LINKFLAGSADD)
1293*cdf0e10cSrcweir
1294*cdf0e10cSrcweir#defaults for UCR HEADER
1295*cdf0e10cSrcweirUNOUCRBASE*=UCR
1296*cdf0e10cSrcweirUNOUCROUT*=$(OUT)/inc/$(TARGET)
1297*cdf0e10cSrcweirINCPRE+=-I$(UNOUCROUT)
1298*cdf0e10cSrcweirUNOUCRRDB*=$(SOLARBINDIR)/types.rdb
1299*cdf0e10cSrcweir
1300*cdf0e10cSrcweir# location of trustedinfo.manifest for Windows Vista
1301*cdf0e10cSrcweir.IF "$(COM)"=="MSC"
1302*cdf0e10cSrcweirTRUSTED_MANIFEST_LOCATION*=$(SOLARENV)/inc
1303*cdf0e10cSrcweir.ENDIF # "$(COM)"=="MSC"
1304*cdf0e10cSrcweir
1305*cdf0e10cSrcweir# --- Compiler -----------------------------------------------------
1306*cdf0e10cSrcweir.INCLUDE : rules.mk
1307*cdf0e10cSrcweir
1308*cdf0e10cSrcweir# --- include typelists --------------------------------------------
1309*cdf0e10cSrcweir
1310*cdf0e10cSrcweir.IF "$(COMP1TYPELIST)"!=""
1311*cdf0e10cSrcweir.INCLUDE .IGNORE : $(MISC)/$(COMP1TYPELIST).mk
1312*cdf0e10cSrcweir$(COMP1TYPELIST)_XML2CMPTYPES:=$(shell @$(AUGMENT_LIBRARY_PATH) $(SOLARBINDIR)/xml2cmp -types stdout $(MISC)/$(COMP1TYPELIST)$($(WINVERSIONNAMES)_MAJOR).xml)
1313*cdf0e10cSrcweir.ENDIF
1314*cdf0e10cSrcweir
1315*cdf0e10cSrcweir.IF "$(COMP2TYPELIST)"!=""
1316*cdf0e10cSrcweir.INCLUDE .IGNORE : $(MISC)/$(COMP2TYPELIST).mk
1317*cdf0e10cSrcweir$(COMP2TYPELIST)_XML2CMPTYPES:=$(shell @$(AUGMENT_LIBRARY_PATH) $(SOLARBINDIR)/xml2cmp -types stdout $(MISC)/$(COMP2TYPELIST)$($(WINVERSIONNAMES)_MAJOR).xml)
1318*cdf0e10cSrcweir.ENDIF
1319*cdf0e10cSrcweir
1320*cdf0e10cSrcweir.IF "$(COMP3TYPELIST)"!=""
1321*cdf0e10cSrcweir.INCLUDE .IGNORE : $(MISC)/$(COMP3TYPELIST).mk
1322*cdf0e10cSrcweir$(COMP3TYPELIST)_XML2CMPTYPES:=$(shell @$(AUGMENT_LIBRARY_PATH) $(SOLARBINDIR)/xml2cmp -types stdout $(MISC)/$(COMP3TYPELIST)$($(WINVERSIONNAMES)_MAJOR).xml)
1323*cdf0e10cSrcweir.ENDIF
1324*cdf0e10cSrcweir
1325*cdf0e10cSrcweir.IF "$(COMP4TYPELIST)"!=""
1326*cdf0e10cSrcweir.INCLUDE .IGNORE : $(MISC)/$(COMP4TYPELIST).mk
1327*cdf0e10cSrcweir$(COMP4TYPELIST)_XML2CMPTYPES:=$(shell @$(AUGMENT_LIBRARY_PATH) $(SOLARBINDIR)/xml2cmp -types stdout $(MISC)/$(COMP4TYPELIST)$($(WINVERSIONNAMES)_MAJOR).xml)
1328*cdf0e10cSrcweir.ENDIF
1329*cdf0e10cSrcweir
1330*cdf0e10cSrcweir.IF "$(COMP5TYPELIST)"!=""
1331*cdf0e10cSrcweir.INCLUDE .IGNORE : $(MISC)/$(COMP5TYPELIST).mk
1332*cdf0e10cSrcweir$(COMP5TYPELIST)_XML2CMPTYPES:=$(shell @$(AUGMENT_LIBRARY_PATH) $(SOLARBINDIR)/xml2cmp -types stdout $(MISC)/$(COMP5TYPELIST)$($(WINVERSIONNAMES)_MAJOR).xml)
1333*cdf0e10cSrcweir.ENDIF
1334*cdf0e10cSrcweir
1335*cdf0e10cSrcweir.IF "$(COMP6TYPELIST)"!=""
1336*cdf0e10cSrcweir.INCLUDE .IGNORE : $(MISC)/$(COMP6TYPELIST).mk
1337*cdf0e10cSrcweir$(COMP6TYPELIST)_XML2CMPTYPES:=$(shell @$(AUGMENT_LIBRARY_PATH) $(SOLARBINDIR)/xml2cmp -types stdout $(MISC)/$(COMP6TYPELIST)$($(WINVERSIONNAMES)_MAJOR).xml)
1338*cdf0e10cSrcweir.ENDIF
1339*cdf0e10cSrcweir
1340*cdf0e10cSrcweir.IF "$(COMP7TYPELIST)"!=""
1341*cdf0e10cSrcweir.INCLUDE .IGNORE : $(MISC)/$(COMP7TYPELIST).mk
1342*cdf0e10cSrcweir$(COMP7TYPELIST)_XML2CMPTYPES:=$(shell @$(AUGMENT_LIBRARY_PATH) $(SOLARBINDIR)/xml2cmp -types stdout $(MISC)/$(COMP7TYPELIST)$($(WINVERSIONNAMES)_MAJOR).xml)
1343*cdf0e10cSrcweir.ENDIF
1344*cdf0e10cSrcweir
1345*cdf0e10cSrcweir.IF "$(COMP8TYPELIST)"!=""
1346*cdf0e10cSrcweir.INCLUDE .IGNORE : $(MISC)/$(COMP8TYPELIST).mk
1347*cdf0e10cSrcweir$(COMP8TYPELIST)_XML2CMPTYPES:=$(shell @$(AUGMENT_LIBRARY_PATH) $(SOLARBINDIR)/xml2cmp -types stdout $(MISC)/$(COMP8TYPELIST)$($(WINVERSIONNAMES)_MAJOR).xml)
1348*cdf0e10cSrcweir.ENDIF
1349*cdf0e10cSrcweir
1350*cdf0e10cSrcweir.IF "$(COMP9TYPELIST)"!=""
1351*cdf0e10cSrcweir.INCLUDE .IGNORE : $(MISC)/$(COMP9TYPELIST).mk
1352*cdf0e10cSrcweir$(COMP9TYPELIST)_XML2CMPTYPES:=$(shell @$(AUGMENT_LIBRARY_PATH) $(SOLARBINDIR)/xml2cmp -types stdout $(MISC)/$(COMP9TYPELIST)$($(WINVERSIONNAMES)_MAJOR).xml)
1353*cdf0e10cSrcweir.ENDIF
1354*cdf0e10cSrcweir
1355*cdf0e10cSrcweir# some place to define these jars for SO environment
1356*cdf0e10cSrcweirXML_APIS_JAR*=$(SOLARBINDIR)/xml-apis.jar
1357*cdf0e10cSrcweirXERCES_JAR*=$(SOLARBINDIR)/xercesImpl.jar
1358*cdf0e10cSrcweir
1359*cdf0e10cSrcweir.IF "$(SYSTEM_CPPUNIT)" != "YES"
1360*cdf0e10cSrcweirCPPUNIT_CFLAGS =
1361*cdf0e10cSrcweir.END
1362*cdf0e10cSrcweir
1363*cdf0e10cSrcweirCOMPONENTPREFIX_URE_NATIVE = vnd.sun.star.expand:$$URE_INTERNAL_LIB_DIR/
1364*cdf0e10cSrcweirCOMPONENTPREFIX_URE_JAVA = vnd.sun.star.expand:$$URE_INTERNAL_JAVA_DIR/
1365*cdf0e10cSrcweir.IF "$(OS)" == "WNT"
1366*cdf0e10cSrcweirCOMPONENTPREFIX_BASIS_NATIVE = vnd.sun.star.expand:$$BRAND_BASE_DIR/program/
1367*cdf0e10cSrcweir.ELSE
1368*cdf0e10cSrcweirCOMPONENTPREFIX_BASIS_NATIVE = vnd.sun.star.expand:$$OOO_BASE_DIR/program/
1369*cdf0e10cSrcweir.END
1370*cdf0e10cSrcweirCOMPONENTPREFIX_BASIS_JAVA = vnd.sun.star.expand:$$OOO_BASE_DIR/program/classes/
1371*cdf0e10cSrcweirCOMPONENTPREFIX_BASIS_PYTHON = vnd.openoffice.pymodule:
1372*cdf0e10cSrcweirCOMPONENTPREFIX_INBUILD_NATIVE = \
1373*cdf0e10cSrcweir    vnd.sun.star.expand:$$OOO_INBUILD_SHAREDLIB_DIR/
1374*cdf0e10cSrcweirCOMPONENTPREFIX_INBUILD_JAVA = vnd.sun.star.expand:$$OOO_INBUILD_JAR_DIR/
1375*cdf0e10cSrcweirCOMPONENTPREFIX_EXTENSION = ./
1376*cdf0e10cSrcweir
1377*cdf0e10cSrcweir# workaround for strange dmake bug:
1378*cdf0e10cSrcweir# if the previous block was a rule or a target, "\#" isn't recognized
1379*cdf0e10cSrcweir# as an escaped "#". if it was an assignment, escaping works...
1380*cdf0e10cSrcweirsome_unique_variable_name:=1
1381