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