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