xref: /aoo42x/main/solenv/inc/rules.mk (revision cdf0e10c)
1*cdf0e10cSrcweir#*************************************************************************
2*cdf0e10cSrcweir#
3*cdf0e10cSrcweir# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4*cdf0e10cSrcweir#
5*cdf0e10cSrcweir# Copyright 2000, 2010 Oracle and/or its affiliates.
6*cdf0e10cSrcweir#
7*cdf0e10cSrcweir# OpenOffice.org - a multi-platform office productivity suite
8*cdf0e10cSrcweir#
9*cdf0e10cSrcweir# This file is part of OpenOffice.org.
10*cdf0e10cSrcweir#
11*cdf0e10cSrcweir# OpenOffice.org is free software: you can redistribute it and/or modify
12*cdf0e10cSrcweir# it under the terms of the GNU Lesser General Public License version 3
13*cdf0e10cSrcweir# only, as published by the Free Software Foundation.
14*cdf0e10cSrcweir#
15*cdf0e10cSrcweir# OpenOffice.org is distributed in the hope that it will be useful,
16*cdf0e10cSrcweir# but WITHOUT ANY WARRANTY; without even the implied warranty of
17*cdf0e10cSrcweir# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18*cdf0e10cSrcweir# GNU Lesser General Public License version 3 for more details
19*cdf0e10cSrcweir# (a copy is included in the LICENSE file that accompanied this code).
20*cdf0e10cSrcweir#
21*cdf0e10cSrcweir# You should have received a copy of the GNU Lesser General Public License
22*cdf0e10cSrcweir# version 3 along with OpenOffice.org.  If not, see
23*cdf0e10cSrcweir# <http://www.openoffice.org/license.html>
24*cdf0e10cSrcweir# for a copy of the LGPLv3 License.
25*cdf0e10cSrcweir#
26*cdf0e10cSrcweir#*************************************************************************
27*cdf0e10cSrcweir
28*cdf0e10cSrcweirMKFILENAME:=RULES.MK
29*cdf0e10cSrcweir
30*cdf0e10cSrcweir$(OBJ)/%.obj : %.cxx
31*cdf0e10cSrcweir	@echo $(COMPILE_ECHO_SWITCH) Compiling: $(PRJNAME)/$(PATH_IN_MODULE)/$(COMPILE_ECHO_FILE)
32*cdf0e10cSrcweir.IF "$(GUI)"=="UNX"
33*cdf0e10cSrcweir	@$(RM) $@ $(@:s/.obj/.o/)
34*cdf0e10cSrcweir	$(COMMAND_ECHO)$(CXX) $(CFLAGS) $(INCLUDE) $(CFLAGSCXX) $(CFLAGSCXXOBJ) $(CFLAGSOBJ) $(CDEFS) $(CDEFSOBJ) $(!eq,$(EXCEPTIONSFILES),$(subst,$@, $(EXCEPTIONSFILES)) $(LOCAL_EXCEPTIONS_FLAGS) $(GLOBAL_EXCEPTIONS_FLAGS)) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ) $(OBJ)/$*.o $(CFLAGSINCXX)$(PWD)/$*.cxx
35*cdf0e10cSrcweir.IF "$(OS)"=="SOLARIS" && "$(product)"=="full" && "$(debug)"==""
36*cdf0e10cSrcweir.IF "$(noadjust)"==""
37*cdf0e10cSrcweir    $(COMMAND_ECHO)$(ADJUSTVISIBILITY) -p $(@:s/.obj/.o/)
38*cdf0e10cSrcweir.ENDIF          # "$(noadjust)"==""
39*cdf0e10cSrcweir.ENDIF          # "$(OS)"=="SOLARIS" && "$(product)"=="full" && "$(debug)"==""
40*cdf0e10cSrcweir	@$(IFEXIST) $(@:s/.obj/.o/) $(THEN) $(TOUCH) $@ $(FI)
41*cdf0e10cSrcweir.ELSE
42*cdf0e10cSrcweir	@@-$(RM) $@
43*cdf0e10cSrcweir.IF "$(COM)"=="GCC"
44*cdf0e10cSrcweir	$(COMMAND_ECHO)$(CXX) $(CFLAGS) $(INCLUDE) $(CFLAGSCXX) $(CFLAGSOBJ) $(CDEFS) $(CDEFSOBJ) $(!eq,$(EXCEPTIONSFILES),$(subst,$@, $(EXCEPTIONSFILES)) $(LOCAL_EXCEPTIONS_FLAGS) $(GLOBAL_EXCEPTIONS_FLAGS)) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ)$(OBJ)/$*.obj $(CFLAGSINCXX)$(PWD)/$*.cxx
45*cdf0e10cSrcweir.ELSE
46*cdf0e10cSrcweir	$(COMMAND_ECHO)$(CXX) $(CFLAGS) $(INCLUDE) $(CFLAGSCXX) $(CFLAGSOBJ) $(CDEFS) $(CDEFSOBJ) $(!eq,$(EXCEPTIONSFILES),$(subst,$@, $(EXCEPTIONSFILES)) $(LOCAL_EXCEPTIONS_FLAGS) $(GLOBAL_EXCEPTIONS_FLAGS)) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ)$(OBJ)/$*.obj $(CFLAGSINCXX)$(PWD)/$*.cxx
47*cdf0e10cSrcweir.ENDIF
48*cdf0e10cSrcweir.ENDIF
49*cdf0e10cSrcweir.IF "$(nodep)"==""
50*cdf0e10cSrcweir	$(COMMAND_ECHO)$(MAKEDEPEND) @$(mktmp -f - -p$(OBJ) $(MKDEPFLAGS) $(CDEFS) $(CDEFSOBJ) $(CDEFSMT) $< ) > $(MISC)/o_$(@:f:s/.obj/.dpcc/)
51*cdf0e10cSrcweir	@noop $(assign DEPS_MADE+:=o_$(@:f:s/.obj/.dpcc/))
52*cdf0e10cSrcweir.ENDIF			# "$(nodep)"==""
53*cdf0e10cSrcweir
54*cdf0e10cSrcweir$(OBJ)/%.obj : %.cpp
55*cdf0e10cSrcweir	@echo $(COMPILE_ECHO_SWITCH) Compiling: $(PRJNAME)/$(PATH_IN_MODULE)/$(COMPILE_ECHO_FILE)
56*cdf0e10cSrcweir.IF "$(GUI)"=="UNX"
57*cdf0e10cSrcweir	@$(RM) $@ $(@:s/.obj/.o/)
58*cdf0e10cSrcweir	$(COMMAND_ECHO)$(CXX) $(CFLAGS) $(INCLUDE) $(CFLAGSCXX) $(CFLAGSCXXOBJ) $(CFLAGSOBJ) $(CDEFS) $(CDEFSOBJ) $(!eq,$(EXCEPTIONSFILES),$(subst,$@, $(EXCEPTIONSFILES)) $(LOCAL_EXCEPTIONS_FLAGS) $(GLOBAL_EXCEPTIONS_FLAGS)) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ) $(OBJ)/$*.o $(CFLAGSINCXX)$(PWD)/$*.cpp
59*cdf0e10cSrcweir.IF "$(OS)"=="SOLARIS" && "$(product)"=="full" && "$(debug)"==""
60*cdf0e10cSrcweir    $(COMMAND_ECHO)$(ADJUSTVISIBILITY) -p $(@:s/.obj/.o/)
61*cdf0e10cSrcweir.ENDIF          # "$(OS)"=="SOLARIS" && "$(product)"=="full" && "$(debug)"==""
62*cdf0e10cSrcweir	@$(IFEXIST) $(@:s/.obj/.o/) $(THEN) $(TOUCH) $@ $(FI)
63*cdf0e10cSrcweir.ELSE
64*cdf0e10cSrcweir	@@-$(RM) $@
65*cdf0e10cSrcweir.IF "$(COM)"=="GCC"
66*cdf0e10cSrcweir	$(COMMAND_ECHO)$(CXX) $(CFLAGS) $(INCLUDE) $(CFLAGSCXX) $(CFLAGSOBJ) $(CDEFS) $(CDEFSOBJ) $(!eq,$(EXCEPTIONSFILES),$(subst,$@, $(EXCEPTIONSFILES)) $(LOCAL_EXCEPTIONS_FLAGS) $(GLOBAL_EXCEPTIONS_FLAGS)) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ)$(OBJ)/$*.obj $(CFLAGSINCXX)$(PWD)/$*.cpp
67*cdf0e10cSrcweir.ELSE
68*cdf0e10cSrcweir	$(COMMAND_ECHO)$(CXX) $(CFLAGS) $(INCLUDE) $(CFLAGSCXX) $(CFLAGSOBJ) $(CDEFS) $(CDEFSOBJ) $(!eq,$(EXCEPTIONSFILES),$(subst,$@, $(EXCEPTIONSFILES)) $(LOCAL_EXCEPTIONS_FLAGS) $(GLOBAL_EXCEPTIONS_FLAGS)) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ)$(OBJ)/$*.obj $(CFLAGSINCXX)$(PWD)/$*.cpp
69*cdf0e10cSrcweir.ENDIF
70*cdf0e10cSrcweir.ENDIF
71*cdf0e10cSrcweir.IF "$(nodep)"==""
72*cdf0e10cSrcweir	$(COMMAND_ECHO)$(MAKEDEPEND) @$(mktmp -f - -p$(OBJ) $(MKDEPFLAGS) $(CDEFS) $(CDEFSOBJ) $(CDEFSMT) $< ) > $(MISC)/o_$(@:f:s/.obj/.dpcc/)
73*cdf0e10cSrcweir	@noop $(assign DEPS_MADE+:=o_$(@:f:s/.obj/.dpcc/))
74*cdf0e10cSrcweir.ENDIF			# "$(nodep)"==""
75*cdf0e10cSrcweir
76*cdf0e10cSrcweir$(OBJ)/%.obj : %.cc
77*cdf0e10cSrcweir	@echo $(COMPILE_ECHO_SWITCH) Compiling: $(PRJNAME)/$(PATH_IN_MODULE)/$(COMPILE_ECHO_FILE)
78*cdf0e10cSrcweir.IF "$(GUI)"=="UNX"
79*cdf0e10cSrcweir	@$(RM) $@ $(@:s/.obj/.o/)
80*cdf0e10cSrcweir	$(COMMAND_ECHO)$(CXX) $(CFLAGS) $(INCLUDE) $(CFLAGSCXX) $(CFLAGSCXXOBJ) $(CFLAGSOBJ) $(CDEFS) $(CDEFSOBJ) $(!eq,$(EXCEPTIONSFILES),$(subst,$@, $(EXCEPTIONSFILES)) $(LOCAL_EXCEPTIONS_FLAGS) $(GLOBAL_EXCEPTIONS_FLAGS)) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ) $(OBJ)/$*.o $(CFLAGSINCXX)$(PWD)/$*.cc
81*cdf0e10cSrcweir.IF "$(OS)"=="SOLARIS" && "$(product)"=="full" && "$(debug)"==""
82*cdf0e10cSrcweir    $(COMMAND_ECHO)$(ADJUSTVISIBILITY) -p $(@:s/.obj/.o/)
83*cdf0e10cSrcweir.ENDIF          # "$(OS)"=="SOLARIS" && "$(product)"=="full" && "$(debug)"==""
84*cdf0e10cSrcweir	@+$(IFEXIST) $(@:s/.obj/.o/) $(THEN) $(TOUCH) $@ $(FI)
85*cdf0e10cSrcweir.ELSE
86*cdf0e10cSrcweir	@@$(RM) $@
87*cdf0e10cSrcweir.IF "$(COM)"=="GCC"
88*cdf0e10cSrcweir	$(COMMAND_ECHO)$(CXX) $(CFLAGS) $(INCLUDE) $(CFLAGSCXX) $(CFLAGSOBJ) $(CDEFS) $(CDEFSOBJ) $(!eq,$(EXCEPTIONSFILES),$(subst,$@, $(EXCEPTIONSFILES)) $(LOCAL_EXCEPTIONS_FLAGS) $(GLOBAL_EXCEPTIONS_FLAGS)) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ)$(OBJ)/$*.obj $(CFLAGSINCXX)$(PWD)/$*.cc
89*cdf0e10cSrcweir.ELSE
90*cdf0e10cSrcweir	$(COMMAND_ECHO)$(CXX) @$(mktmp $(CFLAGS) $(INCLUDE) $(CFLAGSCXX) $(CFLAGSOBJ) $(CDEFS) $(CDEFSOBJ) $(!eq,$(EXCEPTIONSFILES),$(subst,$@, $(EXCEPTIONSFILES)) $(LOCAL_EXCEPTIONS_FLAGS) $(GLOBAL_EXCEPTIONS_FLAGS)) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ)$(OBJ)/$*.obj $(CFLAGSINCXX)$(PWD)/$*.cc )
91*cdf0e10cSrcweir.ENDIF
92*cdf0e10cSrcweir.ENDIF
93*cdf0e10cSrcweir
94*cdf0e10cSrcweir.IF "$(ENABLE_PCH)"!=""
95*cdf0e10cSrcweir# workaround for file locking problems on network volumes
96*cdf0e10cSrcweir.IF "$(NETWORK_BUILD)"==""
97*cdf0e10cSrcweirPCHOUTDIR=$(SLO)/pch
98*cdf0e10cSrcweirPCHEXOUTDIR=$(SLO)/pch_ex
99*cdf0e10cSrcweir.ELSE			# "$(NETWORK_BUILD)"==""
100*cdf0e10cSrcweirPCHOUTDIR=$(TMP)/$(BUILD)$(CWS_WORK_STAMP)$(PRJNAME)$(PROEXT)
101*cdf0e10cSrcweirPCHEXOUTDIR=$(TMP)/$(BUILD)$(CWS_WORK_STAMP)$(PRJNAME)_ex$(PROEXT)
102*cdf0e10cSrcweir.ENDIF			# "$(NETWORK_BUILD)"==""
103*cdf0e10cSrcweir$(SLO)/precompiled.% .PHONY:
104*cdf0e10cSrcweir	-$(MKDIRHIER) $(SLO)/pch
105*cdf0e10cSrcweir.IF "$(COM)"=="MSC"
106*cdf0e10cSrcweir.IF "$(NETWORK_BUILD)"!=""
107*cdf0e10cSrcweir	-$(MKDIRHIER) $(PCHOUTDIR)
108*cdf0e10cSrcweir.IF "$(HAVE_BIG_TMP)"==""
109*cdf0e10cSrcweir	$(COMMAND_ECHO)-$(COPY) $(SLO)/pch/precompiled_$(PRJNAME).hxx$(PCHPOST) $(PCHOUTDIR)/precompiled_$(PRJNAME).hxx$(PCHPOST)
110*cdf0e10cSrcweir.ENDIF			# "$(HAVE_BIG_TMP)"==""
111*cdf0e10cSrcweir.ENDIF			# "$(NETWORK_BUILD)"!=""
112*cdf0e10cSrcweir	$(COMMAND_ECHO)$(CXX) @$(mktmp -Fp$(PCHOUTDIR)/precompiled_$(PRJNAME).hxx$(PCHPOST) $(CFLAGS_CREATE_PCH) $(CFLAGS) $(INCLUDE) $(CFLAGSCXX) $(CFLAGSCXXSLO) $(CFLAGSSLO) $(CDEFS) $(CDEFSSLO) $(CDEFSMT) $(CFLAGS_NO_EXCEPTIONS) -DEXCEPTIONS_OFF $(CFLAGSAPPEND) $(INCPCH)/precompiled_$(PRJNAME).cxx)
113*cdf0e10cSrcweir.IF "$(NETWORK_BUILD)"!=""
114*cdf0e10cSrcweir	$(COMMAND_ECHO)$(COPY) $(PCHOUTDIR)/precompiled_$(PRJNAME).hxx$(PCHPOST) $(SLO)/pch/precompiled_$(PRJNAME).hxx$(PCHPOST)
115*cdf0e10cSrcweir.IF "$(HAVE_BIG_TMP)"==""
116*cdf0e10cSrcweir	$(COMMAND_ECHO)$(RM) $(PCHOUTDIR)/precompiled_$(PRJNAME).hxx$(PCHPOST)
117*cdf0e10cSrcweir	$(COMMAND_ECHO)$(RMDIR) $(PCHOUTDIR)
118*cdf0e10cSrcweir.ENDIF			# "$(HAVE_BIG_TMP)"==""
119*cdf0e10cSrcweir.ENDIF			# "$(NETWORK_BUILD)"!=""
120*cdf0e10cSrcweir.ELIF "$(COM)"=="GCC" && "$(CCNUMVER)">="000300040000"
121*cdf0e10cSrcweir	$(COMMAND_ECHO)$(CXX) -o$(SLO)/pch/precompiled_$(PRJNAME).hxx$(PCHPOST) $(CFLAGS_CREATE_PCH) $(CFLAGS) $(INCLUDE) $(CFLAGSCXX) $(CFLAGSCXXSLO) $(CFLAGSSLO) $(CDEFS) $(CDEFSSLO) $(CDEFSMT) $(CFLAGS_NO_EXCEPTIONS) -DEXCEPTIONS_OFF $(CFLAGSAPPEND) $(INCPCH)/precompiled_$(PRJNAME).hxx
122*cdf0e10cSrcweir	@echo "#error Tried to use wrong precompiled header" > $(SLO)/pch/precompiled_$(PRJNAME).hxx
123*cdf0e10cSrcweir.ELSE			# "$(COM)"=="MSC"
124*cdf0e10cSrcweir	@$(TOUCH) $(SLO)/pch/precompiled_$(PRJNAME).hxx$(PCHPOST)
125*cdf0e10cSrcweir.ENDIF			# "$(COM)"=="MSC"
126*cdf0e10cSrcweir	@echo USED_PCHFLAGS=$(CFLAGS)$(CFLAGSCXX)$(CFLAGSCXXSLO)$(CFLAGSSLO)$(CDEFS)$(CDEFSSLO)$(CDEFSMT)$(CFLAGS_NO_EXCEPTIONS) -DEXCEPTIONS_OFF$(CFLAGSAPPEND)> $(INCCOM)/pch.mk
127*cdf0e10cSrcweir
128*cdf0e10cSrcweir$(SLO)/precompiled_ex.% .PHONY:
129*cdf0e10cSrcweir	-$(MKDIRHIER) $(SLO)/pch_ex
130*cdf0e10cSrcweir.IF "$(COM)"=="MSC"
131*cdf0e10cSrcweir.IF "$(NETWORK_BUILD)"!=""
132*cdf0e10cSrcweir	-$(MKDIRHIER) $(PCHEXOUTDIR)
133*cdf0e10cSrcweir.IF "$(HAVE_BIG_TMP)"==""
134*cdf0e10cSrcweir	$(COMMAND_ECHO)-$(COPY) $(SLO)/pch_ex/precompiled_$(PRJNAME).hxx$(PCHPOST) $(PCHEXOUTDIR)/precompiled_$(PRJNAME).hxx$(PCHPOST)
135*cdf0e10cSrcweir.ENDIF			# "$(HAVE_BIG_TMP)"==""
136*cdf0e10cSrcweir.ENDIF			# "$(NETWORK_BUILD)"!=""
137*cdf0e10cSrcweir	$(COMMAND_ECHO)$(CXX) @$(mktmp -Fp$(PCHEXOUTDIR)/precompiled_$(PRJNAME).hxx$(PCHPOST) $(CFLAGS_CREATE_PCH:s/pchname/pchname_ex/) $(CFLAGS) $(INCLUDE) $(CFLAGSCXX) $(CFLAGSCXXSLO) $(CFLAGSSLO) $(CDEFS) $(CDEFSSLO) $(CDEFSMT) $(CFLAGSEXCEPTIONS) -DEXCEPTIONS_ON $(CFLAGSAPPEND) $(INCPCH)/precompiled_$(PRJNAME).cxx)
138*cdf0e10cSrcweir.IF "$(NETWORK_BUILD)"!=""
139*cdf0e10cSrcweir	$(COMMAND_ECHO)$(COPY) $(PCHEXOUTDIR)/precompiled_$(PRJNAME).hxx$(PCHPOST) $(SLO)/pch_ex/precompiled_$(PRJNAME).hxx$(PCHPOST)
140*cdf0e10cSrcweir.IF "$(HAVE_BIG_TMP)"==""
141*cdf0e10cSrcweir	$(COMMAND_ECHO)$(RM) $(PCHEXOUTDIR)/precompiled_$(PRJNAME).hxx$(PCHPOST)
142*cdf0e10cSrcweir	$(COMMAND_ECHO)$(RMDIR) $(PCHEXOUTDIR)
143*cdf0e10cSrcweir.ENDIF			# "$(HAVE_BIG_TMP)"==""
144*cdf0e10cSrcweir.ENDIF			# "$(NETWORK_BUILD)"!=""
145*cdf0e10cSrcweir.ELIF "$(COM)"=="GCC" && "$(CCNUMVER)">="000300040000"
146*cdf0e10cSrcweir	$(COMMAND_ECHO)$(CXX) -o$(SLO)/pch_ex/precompiled_$(PRJNAME).hxx$(PCHPOST) $(CFLAGS_CREATE_PCH) $(CFLAGS) $(INCLUDE) $(CFLAGSCXX) $(CFLAGSCXXSLO) $(CFLAGSSLO) $(CDEFS) $(CDEFSSLO) $(CDEFSMT) $(CFLAGSEXCEPTIONS) -DEXCEPTIONS_ON $(CFLAGSAPPEND) $(INCPCH)/precompiled_$(PRJNAME).hxx
147*cdf0e10cSrcweir	@echo "#error Tried to use wrong precompiled header" > $(SLO)/pch_ex/precompiled_$(PRJNAME).hxx
148*cdf0e10cSrcweir.ELSE			# "$(COM)"=="MSC"
149*cdf0e10cSrcweir	@$(TOUCH) $(SLO)/pch_ex/precompiled_$(PRJNAME).hxx$(PCHPOST)
150*cdf0e10cSrcweir.ENDIF			# "$(COM)"=="MSC"
151*cdf0e10cSrcweir	@echo USED_EXCEPTIONS_PCHFLAGS=$(subst,$(CFLAGSDEBUG), $(CFLAGS))$(CFLAGSCXX)$(CFLAGSCXXSLO)$(CFLAGSSLO)$(CDEFS)$(CDEFSSLO)$(CDEFSMT)$(CFLAGSEXCEPTIONS) -DEXCEPTIONS_ON$(CFLAGSAPPEND)> $(INCCOM)/pch_ex.mk
152*cdf0e10cSrcweir
153*cdf0e10cSrcweir.INCLUDE .IGNORE : $(INCCOM)/pch.mk
154*cdf0e10cSrcweir.INCLUDE .IGNORE : $(INCCOM)/pch_ex.mk
155*cdf0e10cSrcweir.ENDIF			# "$(ENABLE_PCH)"!=""
156*cdf0e10cSrcweir
157*cdf0e10cSrcweir$(SLO)/%.obj : %.cxx
158*cdf0e10cSrcweir	@echo $(COMPILE_ECHO_SWITCH) Compiling: $(PRJNAME)/$(PATH_IN_MODULE)/$(COMPILE_ECHO_FILE)
159*cdf0e10cSrcweir.IF "$(ENABLE_PCH)"!=""
160*cdf0e10cSrcweir# just a helper var
161*cdf0e10cSrcweir	@noop $(assign used_exc_switches=$(!eq,$(EXCEPTIONSFILES),$(subst,$@, $(EXCEPTIONSFILES)) $(LOCAL_EXCEPTIONS_FLAGS) $(GLOBAL_EXCEPTIONS_FLAGS)))
162*cdf0e10cSrcweir# cleanup first
163*cdf0e10cSrcweir	@noop $(assign ACT_PCH_SWITCHES:=$(NULL))
164*cdf0e10cSrcweir# eq: first string is a copy of the compile line,
165*cdf0e10cSrcweir# second generated by pch creation
166*cdf0e10cSrcweir# use pch with exception support
167*cdf0e10cSrcweir	@noop $(assign ACT_PCH_SWITCHES+=$(eq,$(strip $(USED_EXCEPTIONS_PCHFLAGS)),$(strip $(subst,$(CFLAGSDEBUG), $(CFLAGS))$(CFLAGSCXX)$(CFLAGSCXXSLO)$(CFLAGSSLO)$(CDEFS:s/\//)$(CDEFSSLO)$(CDEFSMT)$(used_exc_switches)$(CFLAGSAPPEND)) $(CFLAGS_USE_EXCEPTIONS_PCH) $(NULL)))
168*cdf0e10cSrcweir# use pch without exception support
169*cdf0e10cSrcweir	@noop $(assign ACT_PCH_SWITCHES+=$(eq,$(strip $(USED_PCHFLAGS)),$(strip $(subst,$(CFLAGSDEBUG), $(CFLAGS))$(CFLAGSCXX)$(CFLAGSCXXSLO)$(CFLAGSSLO)$(CDEFS:s/\//)$(CDEFSSLO)$(CDEFSMT)$(used_exc_switches)$(CFLAGSAPPEND)) $(CFLAGS_USE_PCH) $(NULL)))
170*cdf0e10cSrcweir.ENDIF			# "$(ENABLE_PCH)"!=""
171*cdf0e10cSrcweir.IF "$(GUI)"=="UNX"
172*cdf0e10cSrcweir.IF "$(TEST)"!=""
173*cdf0e10cSrcweir	$(COMMAND_ECHO)$(CXX) $(CFLAGS) $(INCLUDE) $(CFLAGSCXX) $(CFLAGSCXXSLO) $(CFLAGSSLO) $(CDEFS) $(CDEFSSLO) $(CDEFSMT) -E  $(CFLAGSINCXX)$(PWD)/$*.cxx
174*cdf0e10cSrcweir.ELSE
175*cdf0e10cSrcweir	@$(RM) $@ $(@:s/.obj/.o/)
176*cdf0e10cSrcweir	$(COMMAND_ECHO)$(CAPTURE_COMMAND) $(CXX) $(ACT_PCH_SWITCHES) $(CFLAGS) $(INCLUDE) $(CFLAGSCXX) $(CFLAGSCXXSLO) $(CFLAGSSLO) $(CDEFS) $(CDEFSSLO) $(CDEFSMT) $(!eq,$(EXCEPTIONSFILES),$(subst,$@, $(EXCEPTIONSFILES)) $(LOCAL_EXCEPTIONS_FLAGS) $(GLOBAL_EXCEPTIONS_FLAGS)) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ) $(SLO)/$*.o $(CFLAGSINCXX)$(PWD)/$*.cxx $(CAPTURE_OUTPUT)
177*cdf0e10cSrcweir.IF "$(OS)"=="SOLARIS" && "$(product)"=="full" && "$(debug)"=="" && "$(CAPTURE_COMMAND)"==""
178*cdf0e10cSrcweir    $(COMMAND_ECHO)$(ADJUSTVISIBILITY) -p $(@:s/.obj/.o/)
179*cdf0e10cSrcweir.ENDIF          # "$(OS)"=="SOLARIS" && "$(product)"=="full" && "$(debug)"==""
180*cdf0e10cSrcweir	@$(IFEXIST) $(@:s/.obj/.o/) $(THEN) $(TOUCH) $@ $(FI)
181*cdf0e10cSrcweir.ENDIF
182*cdf0e10cSrcweir.ELSE			# "$(GUI)"=="UNX"
183*cdf0e10cSrcweir	@@-$(RM) $@
184*cdf0e10cSrcweir.IF "$(COM)"=="GCC"
185*cdf0e10cSrcweir	$(COMMAND_ECHO)$(CAPTURE_COMMAND) $(CXX) $(ACT_PCH_SWITCHES) $(CFLAGS) $(INCLUDE) $(CFLAGSCXX) $(CFLAGSSLO) $(CDEFS) $(CDEFSSLO) $(CDEFSMT) $(!eq,$(EXCEPTIONSFILES),$(subst,$@, $(EXCEPTIONSFILES)) $(LOCAL_EXCEPTIONS_FLAGS) $(GLOBAL_EXCEPTIONS_FLAGS)) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ)$(SLO)/$*.obj $(CFLAGSINCXX)$(PWD)/$*.cxx $(CAPTURE_OUTPUT)
186*cdf0e10cSrcweir.ELSE
187*cdf0e10cSrcweir	$(COMMAND_ECHO)$(CAPTURE_COMMAND) $(CXX) $(ACT_PCH_SWITCHES) $(CFLAGS) $(INCLUDE) $(CFLAGSCXX) $(CFLAGSSLO) $(CDEFS) $(CDEFSSLO) $(CDEFSMT) $(!eq,$(EXCEPTIONSFILES),$(subst,$@, $(EXCEPTIONSFILES)) $(LOCAL_EXCEPTIONS_FLAGS) $(GLOBAL_EXCEPTIONS_FLAGS)) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ)$(SLO)/$*.obj $(CFLAGSINCXX)$(PWD)/$*.cxx $(CAPTURE_OUTPUT)
188*cdf0e10cSrcweir.ENDIF		    # "$(COM)"=="GCC"
189*cdf0e10cSrcweir.ENDIF			# "$(GUI)"=="UNX"
190*cdf0e10cSrcweir.IF "$(nodep)"==""
191*cdf0e10cSrcweir# fixme: write to file
192*cdf0e10cSrcweir	$(COMMAND_ECHO)$(MAKEDEPEND) @$(mktmp -f - -p$(SLO) $(MKDEPFLAGS) $(CDEFS) $(CDEFSSLO) $(CDEFSMT) $< ) > $(MISC)/s_$(@:f:s/.obj/.dpcc/)
193*cdf0e10cSrcweir	@noop $(assign DEPS_MADE+:=s_$(@:f:s/.obj/.dpcc/))
194*cdf0e10cSrcweir.ENDIF			# "$(nodep)"==""
195*cdf0e10cSrcweir
196*cdf0e10cSrcweir$(SLO)/%.obj : %.cpp
197*cdf0e10cSrcweir	@echo $(COMPILE_ECHO_SWITCH) Compiling: $(PRJNAME)/$(PATH_IN_MODULE)/$(COMPILE_ECHO_FILE)
198*cdf0e10cSrcweir.IF "$(GUI)"=="UNX"
199*cdf0e10cSrcweir.IF "$(TEST)"!=""
200*cdf0e10cSrcweir	$(COMMAND_ECHO)$(CXX) $(CFLAGS) $(INCLUDE) $(CFLAGSCXX) $(CFLAGSCXXSLO) $(CFLAGSSLO) $(CDEFS) $(CDEFSSLO) $(CDEFSMT) $(!eq,$(EXCEPTIONSFILES),$(subst,$@, $(EXCEPTIONSFILES)) $(LOCAL_EXCEPTIONS_FLAGS) $(GLOBAL_EXCEPTIONS_FLAGS)) -E  $(CFLAGSINCXX)$(PWD)/$*.cpp
201*cdf0e10cSrcweir.ELSE
202*cdf0e10cSrcweir	@$(RM) $@ $(@:s/.obj/.o/)
203*cdf0e10cSrcweir	$(COMMAND_ECHO)$(CXX) $(CFLAGS) $(INCLUDE) $(CFLAGSCXX) $(CFLAGSCXXSLO) $(CFLAGSSLO) $(CDEFS) $(CDEFSSLO) $(CDEFSMT) $(!eq,$(EXCEPTIONSFILES),$(subst,$@, $(EXCEPTIONSFILES)) $(LOCAL_EXCEPTIONS_FLAGS) $(GLOBAL_EXCEPTIONS_FLAGS)) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ) $(SLO)/$*.o $(CFLAGSINCXX)$(PWD)/$*.cpp
204*cdf0e10cSrcweir.IF "$(OS)"=="SOLARIS" && "$(product)"=="full" && "$(debug)"==""
205*cdf0e10cSrcweir    $(COMMAND_ECHO)$(ADJUSTVISIBILITY) -p $(@:s/.obj/.o/)
206*cdf0e10cSrcweir.ENDIF          # "$(OS)"=="SOLARIS" && "$(product)"=="full" && "$(debug)"==""
207*cdf0e10cSrcweir	@$(IFEXIST) $(@:s/.obj/.o/) $(THEN) $(TOUCH) $@ $(FI)
208*cdf0e10cSrcweir.ENDIF
209*cdf0e10cSrcweir.ELSE
210*cdf0e10cSrcweir	@@-$(RM) $@
211*cdf0e10cSrcweir.IF "$(COM)"=="GCC"
212*cdf0e10cSrcweir	$(COMMAND_ECHO)$(CXX) $(CFLAGS) $(INCLUDE) $(CFLAGSCXX) $(CFLAGSSLO) $(CDEFS) $(CDEFSSLO) $(CDEFSMT) $(!eq,$(EXCEPTIONSFILES),$(subst,$@, $(EXCEPTIONSFILES)) $(LOCAL_EXCEPTIONS_FLAGS) $(GLOBAL_EXCEPTIONS_FLAGS)) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ)$(SLO)/$*.obj $(CFLAGSINCXX)$(PWD)/$*.cpp
213*cdf0e10cSrcweir.ELSE
214*cdf0e10cSrcweir	$(COMMAND_ECHO)$(CXX) $(CFLAGS) $(INCLUDE) $(CFLAGSCXX) $(CFLAGSSLO) $(CDEFS) $(CDEFSSLO) $(CDEFSMT) $(!eq,$(EXCEPTIONSFILES),$(subst,$@, $(EXCEPTIONSFILES)) $(LOCAL_EXCEPTIONS_FLAGS) $(GLOBAL_EXCEPTIONS_FLAGS)) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ)$(SLO)/$*.obj $(CFLAGSINCXX)$(PWD)/$*.cpp
215*cdf0e10cSrcweir.ENDIF
216*cdf0e10cSrcweir.ENDIF
217*cdf0e10cSrcweir.IF "$(nodep)"==""
218*cdf0e10cSrcweir	$(COMMAND_ECHO)$(MAKEDEPEND) @$(mktmp -f - -p$(SLO) $(MKDEPFLAGS) $(CDEFS) $(CDEFSSLO) $(CDEFSMT) $< ) > $(MISC)/s_$(@:f:s/.obj/.dpcc/)
219*cdf0e10cSrcweir	@noop $(assign DEPS_MADE+:=s_$(@:f:s/.obj/.dpcc/))
220*cdf0e10cSrcweir.ENDIF			# "$(nodep)"==""
221*cdf0e10cSrcweir
222*cdf0e10cSrcweir$(SLO)/%.obj : $(MISC)/%.cxx
223*cdf0e10cSrcweir	@echo $(COMPILE_ECHO_SWITCH) Compiling: $(PRJNAME)/$(INPATH)/misc/$(COMPILE_ECHO_FILE)
224*cdf0e10cSrcweir.IF "$(GUI)"=="UNX"
225*cdf0e10cSrcweir.IF "$(TEST)"!=""
226*cdf0e10cSrcweir	$(COMMAND_ECHO)$(CXX) $(CFLAGS) $(INCLUDE) $(CFLAGSCXX) $(CFLAGSCXXSLO) $(CFLAGSSLO) $(CDEFS) $(CDEFSSLO) $(CDEFSMT) $(!eq,$(EXCEPTIONSFILES),$(subst,$@, $(EXCEPTIONSFILES)) $(LOCAL_EXCEPTIONS_FLAGS) $(GLOBAL_EXCEPTIONS_FLAGS)) -E  $(CFLAGSINCXX)$(MISC)/$*.cxx
227*cdf0e10cSrcweir.ELSE
228*cdf0e10cSrcweir	@$(RM) $@ $(@:s/.obj/.o/)
229*cdf0e10cSrcweir	$(COMMAND_ECHO)$(CXX) $(CFLAGS) $(INCLUDE) $(CFLAGSCXX) $(CFLAGSCXXSLO) $(CFLAGSSLO) $(CDEFS) $(CDEFSSLO) $(CDEFSMT) $(!eq,$(EXCEPTIONSFILES),$(subst,$@, $(EXCEPTIONSFILES)) $(LOCAL_EXCEPTIONS_FLAGS) $(GLOBAL_EXCEPTIONS_FLAGS)) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ) $(SLO)/$*.o $(CFLAGSINCXX)$(MISC)/$*.cxx
230*cdf0e10cSrcweir.IF "$(OS)"=="SOLARIS" && "$(product)"=="full" && "$(debug)"==""
231*cdf0e10cSrcweir    $(COMMAND_ECHO)$(ADJUSTVISIBILITY) -p $(@:s/.obj/.o/)
232*cdf0e10cSrcweir.ENDIF          # "$(OS)"=="SOLARIS" && "$(product)"=="full" && "$(debug)"==""
233*cdf0e10cSrcweir	@$(IFEXIST) $(@:s/.obj/.o/) $(THEN) $(TOUCH) $@ $(FI)
234*cdf0e10cSrcweir.ENDIF
235*cdf0e10cSrcweir.ELSE
236*cdf0e10cSrcweir.IF "$(COM)"=="GCC"
237*cdf0e10cSrcweir	$(COMMAND_ECHO)$(CXX) $(CFLAGS) $(INCLUDE) $(CFLAGSCXX) $(CFLAGSSLO) $(CDEFS) $(CDEFSSLO) $(CDEFSMT) $(!eq,$(EXCEPTIONSFILES),$(subst,$@, $(EXCEPTIONSFILES)) $(LOCAL_EXCEPTIONS_FLAGS) $(GLOBAL_EXCEPTIONS_FLAGS)) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ)$(SLO)/$*.obj $(CFLAGSINCXX)$(MISC)/$*.cxx
238*cdf0e10cSrcweir.ELSE
239*cdf0e10cSrcweir	$(COMMAND_ECHO)$(CXX) $(CFLAGS) $(INCLUDE) $(CFLAGSCXX) $(CFLAGSSLO) $(CDEFS) $(CDEFSSLO) $(CDEFSMT) $(!eq,$(EXCEPTIONSFILES),$(subst,$@, $(EXCEPTIONSFILES)) $(LOCAL_EXCEPTIONS_FLAGS) $(GLOBAL_EXCEPTIONS_FLAGS)) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ)$(SLO)/$*.obj $(CFLAGSINCXX)$(MISC)/$*.cxx
240*cdf0e10cSrcweir.ENDIF
241*cdf0e10cSrcweir.ENDIF
242*cdf0e10cSrcweir.IF "$(nodep)"==""
243*cdf0e10cSrcweir	$(COMMAND_ECHO)$(MAKEDEPEND) @$(mktmp -f - -p$(SLO) $(MKDEPFLAGS) $(CDEFS) $(CDEFSSLO) $(CDEFSMT) $@ ) > $(MISC)/s_$(@:f:s/.obj/.dpcc/)
244*cdf0e10cSrcweir	@noop $(assign DEPS_MADE+:=s_$(@:f:s/.obj/.dpcc/))
245*cdf0e10cSrcweir.ENDIF			# "$(nodep)"==""
246*cdf0e10cSrcweir
247*cdf0e10cSrcweir$(SLO)/%.obj : $(MISC)/%.cc
248*cdf0e10cSrcweir	@echo $(COMPILE_ECHO_SWITCH) Compiling: $(PRJNAME)/$(INPATH)/misc/$(COMPILE_ECHO_FILE)
249*cdf0e10cSrcweir.IF "$(GUI)"=="UNX"
250*cdf0e10cSrcweir.IF "$(TEST)"!=""
251*cdf0e10cSrcweir	$(COMMAND_ECHO)$(CXX) $(CFLAGS) $(INCLUDE) $(CFLAGSCXX) $(CFLAGSCXXSLO) $(CFLAGSSLO) $(CDEFS) $(CDEFSSLO) $(CDEFSMT) $(!eq,$(EXCEPTIONSFILES),$(subst,$@, $(EXCEPTIONSFILES)) $(LOCAL_EXCEPTIONS_FLAGS) $(GLOBAL_EXCEPTIONS_FLAGS)) -E  $(CFLAGSINCXX)$(MISC)/$*.cc
252*cdf0e10cSrcweir.ELSE
253*cdf0e10cSrcweir	@$(RM) $@ $(@:s/.obj/.o/)
254*cdf0e10cSrcweir	$(COMMAND_ECHO)$(CXX) $(CFLAGS) $(INCLUDE) $(CFLAGSCXX) $(CFLAGSCXXSLO) $(CFLAGSSLO) $(CDEFS) $(CDEFSSLO) $(CDEFSMT) $(!eq,$(EXCEPTIONSFILES),$(subst,$@, $(EXCEPTIONSFILES)) $(LOCAL_EXCEPTIONS_FLAGS) $(GLOBAL_EXCEPTIONS_FLAGS)) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ) $(SLO)/$*.o $(CFLAGSINCXX)$(MISC)/$*.cc
255*cdf0e10cSrcweir.IF "$(OS)"=="SOLARIS" && "$(product)"=="full" && "$(debug)"==""
256*cdf0e10cSrcweir    $(COMMAND_ECHO)$(ADJUSTVISIBILITY) -p $(@:s/.obj/.o/)
257*cdf0e10cSrcweir.ENDIF          # "$(OS)"=="SOLARIS" && "$(product)"=="full" && "$(debug)"==""
258*cdf0e10cSrcweir	@+$(IFEXIST) $(@:s/.obj/.o/) $(THEN) $(TOUCH) $@ $(FI)
259*cdf0e10cSrcweir.ENDIF
260*cdf0e10cSrcweir.ELSE
261*cdf0e10cSrcweir	$(COMMAND_ECHO)$(CXX) @$(mktmp $(CFLAGS) $(INCLUDE) $(CFLAGSCXX) $(CFLAGSSLO) $(CDEFS) $(CDEFSSLO) $(CDEFSMT) $(!eq,$(EXCEPTIONSFILES),$(subst,$@, $(EXCEPTIONSFILES)) $(LOCAL_EXCEPTIONS_FLAGS) $(GLOBAL_EXCEPTIONS_FLAGS)) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ)$(SLO)/$*.obj $(CFLAGSINCXX)$(MISC)/$*.cc )
262*cdf0e10cSrcweir.ENDIF
263*cdf0e10cSrcweir
264*cdf0e10cSrcweir$(OBJ)/%.obj : $(MISC)/%.cxx
265*cdf0e10cSrcweir	@echo $(COMPILE_ECHO_SWITCH) Compiling: $(PRJNAME)/$(INPATH)/misc/$(COMPILE_ECHO_FILE)
266*cdf0e10cSrcweir.IF "$(GUI)"=="UNX"
267*cdf0e10cSrcweir.IF "$(TEST)"!=""
268*cdf0e10cSrcweir	$(COMMAND_ECHO)$(CXX) $(CFLAGS) $(INCLUDE) $(CFLAGSCXX) $(CFLAGSCXXOBJ) $(CFLAGSOBJ) $(CDEFS) $(CDEFSOBJ) $(CDEFSMT) $(!eq,$(EXCEPTIONSFILES),$(subst,$@, $(EXCEPTIONSFILES)) $(LOCAL_EXCEPTIONS_FLAGS) $(GLOBAL_EXCEPTIONS_FLAGS)) -E  $(CFLAGSINCXX)$(MISC)/$*.cxx
269*cdf0e10cSrcweir.ELSE
270*cdf0e10cSrcweir	@$(RM) $@ $(@:s/.obj/.o/)
271*cdf0e10cSrcweir	$(COMMAND_ECHO)$(CXX) $(CFLAGS) $(INCLUDE) $(CFLAGSCXX) $(CFLAGSCXXOBJ) $(CFLAGSOBJ) $(CDEFS) $(CDEFSOBJ) $(CDEFSMT) $(!eq,$(EXCEPTIONSFILES),$(subst,$@, $(EXCEPTIONSFILES)) $(LOCAL_EXCEPTIONS_FLAGS) $(GLOBAL_EXCEPTIONS_FLAGS)) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ) $(OBJ)/$*.o $(CFLAGSINCXX)$(MISC)/$*.cxx
272*cdf0e10cSrcweir.IF "$(OS)"=="SOLARIS" && "$(product)"=="full" && "$(debug)"==""
273*cdf0e10cSrcweir    $(COMMAND_ECHO)$(ADJUSTVISIBILITY) -p $(@:s/.obj/.o/)
274*cdf0e10cSrcweir.ENDIF          # "$(OS)"=="SOLARIS" && "$(product)"=="full" && "$(debug)"==""
275*cdf0e10cSrcweir	@$(IFEXIST) $(@:s/.obj/.o/) $(THEN) $(TOUCH) $@ $(FI)
276*cdf0e10cSrcweir.ENDIF
277*cdf0e10cSrcweir.ELSE
278*cdf0e10cSrcweir.IF "$(COM)"=="GCC"
279*cdf0e10cSrcweir	$(COMMAND_ECHO)$(CXX) $(CFLAGS) $(INCLUDE) $(CFLAGSCXX) $(CFLAGSOBJ) $(CDEFS) $(CDEFSOBJ) $(CDEFSMT) $(!eq,$(EXCEPTIONSFILES),$(subst,$@, $(EXCEPTIONSFILES)) $(LOCAL_EXCEPTIONS_FLAGS) $(GLOBAL_EXCEPTIONS_FLAGS)) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ)$(OBJ)/$*.obj $(CFLAGSINCXX)$(MISC)/$*.cxx
280*cdf0e10cSrcweir.ELSE
281*cdf0e10cSrcweir	$(COMMAND_ECHO)$(CXX) $(CFLAGS) $(INCLUDE) $(CFLAGSCXX) $(CFLAGSOBJ) $(CDEFS) $(CDEFSOBJ) $(CDEFSMT) $(!eq,$(EXCEPTIONSFILES),$(subst,$@, $(EXCEPTIONSFILES)) $(LOCAL_EXCEPTIONS_FLAGS) $(GLOBAL_EXCEPTIONS_FLAGS)) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ)$(OBJ)/$*.obj $(CFLAGSINCXX)$(MISC)/$*.cxx
282*cdf0e10cSrcweir.ENDIF
283*cdf0e10cSrcweir.ENDIF
284*cdf0e10cSrcweir.IF "$(nodep)"==""
285*cdf0e10cSrcweir	$(COMMAND_ECHO)$(MAKEDEPEND) @$(mktmp -f - -p$(OBJ) $(MKDEPFLAGS) $(CDEFS) $(CDEFSOBJ) $(CDEFSMT) $< ) > $(MISC)/o_$(@:f:s/.obj/.dpcc/)
286*cdf0e10cSrcweir	@noop $(assign DEPS_MADE+:=o_$(@:f:s/.obj/.dpcc/))
287*cdf0e10cSrcweir.ENDIF			# "$(nodep)"==""
288*cdf0e10cSrcweir
289*cdf0e10cSrcweir$(OBJ)/%.obj : %.c
290*cdf0e10cSrcweir	@echo $(COMPILE_ECHO_SWITCH) Compiling: $(PRJNAME)/$(PATH_IN_MODULE)/$(COMPILE_ECHO_FILE)
291*cdf0e10cSrcweir.IF "$(GUI)"=="UNX"
292*cdf0e10cSrcweir.IF "$(TEST)"!=""
293*cdf0e10cSrcweir	$(COMMAND_ECHO)$(CC) $(CFLAGS) $(INCLUDE_C) $(CFLAGSCC) $(CFLAGSOBJ) $(CDEFS) $(CDEFSOBJ) -E $(CFLAGSAPPEND) $(CFLAGSOUTOBJ) $(OBJ)/$*.o $*.c
294*cdf0e10cSrcweir.ELSE
295*cdf0e10cSrcweir	@$(RM) $@ $(@:s/.obj/.o/)
296*cdf0e10cSrcweir	$(COMMAND_ECHO)$(CC) $(CFLAGS) $(INCLUDE_C) $(CFLAGSCC) $(CFLAGSOBJ) $(CDEFS) $(CDEFSOBJ) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ) $(OBJ)/$*.o $*.c
297*cdf0e10cSrcweir.IF "$(OS)"=="SOLARIS" && "$(product)"=="full" && "$(debug)"==""
298*cdf0e10cSrcweir.IF "$(noadjust)"==""
299*cdf0e10cSrcweir    $(COMMAND_ECHO)$(ADJUSTVISIBILITY) -p $(@:s/.obj/.o/)
300*cdf0e10cSrcweir.ENDIF			# "$(noadjust)"==""
301*cdf0e10cSrcweir.ENDIF          # "$(OS)"=="SOLARIS" && "$(product)"=="full" && "$(debug)"==""
302*cdf0e10cSrcweir	@$(IFEXIST) $(@:s/.obj/.o/) $(THEN) $(TOUCH) $@ $(FI)
303*cdf0e10cSrcweir.ENDIF
304*cdf0e10cSrcweir.ELSE
305*cdf0e10cSrcweir.IF "$(COM)"=="GCC"
306*cdf0e10cSrcweir	$(COMMAND_ECHO)$(CC) $(CFLAGS) $(INCLUDE_C) $(CFLAGSCC) $(CFLAGSOBJ) $(CDEFS) $(CDEFSOBJ) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ)$(OBJ)/$*.obj $*.c
307*cdf0e10cSrcweir.ELSE
308*cdf0e10cSrcweir  .IF "$(VERBOSE)" == "TRUE"
309*cdf0e10cSrcweir	-@echo Cflags: $(CFLAGS) $(INCLUDE)
310*cdf0e10cSrcweir  .ENDIF
311*cdf0e10cSrcweir	$(COMMAND_ECHO)$(CC) $(CFLAGS) $(INCLUDE_C) $(CFLAGSCC) $(CFLAGSOBJ) $(CDEFS) $(CDEFSOBJ) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ)$(OBJ)/$*.obj $*.c
312*cdf0e10cSrcweir.ENDIF
313*cdf0e10cSrcweir.ENDIF
314*cdf0e10cSrcweir.IF "$(nodep)"==""
315*cdf0e10cSrcweir	$(COMMAND_ECHO)$(MAKEDEPEND) @$(mktmp -f - -p$(OBJ) $(MKDEPFLAGS) $(CDEFS) $(CDEFSOBJ) $(CDEFSMT) $< ) > $(MISC)/o_$(@:f:s/.obj/.dpcc/)
316*cdf0e10cSrcweir	@noop $(assign DEPS_MADE+:=o_$(@:f:s/.obj/.dpcc/))
317*cdf0e10cSrcweir.ENDIF			# "$(nodep)"==""
318*cdf0e10cSrcweir
319*cdf0e10cSrcweir$(OBJ)/%.obj : $(MISC)/%.c
320*cdf0e10cSrcweir	@echo $(COMPILE_ECHO_SWITCH) Compiling: $(PRJNAME)/$(INPATH)/misc/$(COMPILE_ECHO_FILE)
321*cdf0e10cSrcweir.IF "$(GUI)"=="UNX"
322*cdf0e10cSrcweir	@$(RM) $@ $(@:s/.obj/.o/)
323*cdf0e10cSrcweir	$(COMMAND_ECHO)$(CC) $(CFLAGS) $(INCLUDE_C) $(CFLAGSCC) $(CFLAGSOBJ) $(CDEFS) $(CDEFSOBJ) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ) $(OBJ)/$*.o $(MISC)/$*.c
324*cdf0e10cSrcweir.IF "$(OS)"=="SOLARIS" && "$(product)"=="full" && "$(debug)"==""
325*cdf0e10cSrcweir    $(COMMAND_ECHO)$(ADJUSTVISIBILITY) -p $(@:s/.obj/.o/)
326*cdf0e10cSrcweir.ENDIF          # "$(OS)"=="SOLARIS" && "$(product)"=="full" && "$(debug)"==""
327*cdf0e10cSrcweir	@$(IFEXIST) $(@:s/.obj/.o/) $(THEN) $(TOUCH) $@ $(FI)
328*cdf0e10cSrcweir.ELSE
329*cdf0e10cSrcweir	@@-$(RM) $@
330*cdf0e10cSrcweir.IF "$(COM)"=="GCC"
331*cdf0e10cSrcweir	$(COMMAND_ECHO)$(CC) $(CFLAGS) $(INCLUDE_C) $(CFLAGSCC) $(CFLAGSOBJ) $(CDEFS) $(CDEFSOBJ) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ)$(OBJ)/$*.obj $(MISC)/$*.c
332*cdf0e10cSrcweir.ELSE
333*cdf0e10cSrcweir	$(COMMAND_ECHO)$(CC) $(CFLAGS) $(INCLUDE_C) $(CFLAGSCC) $(CFLAGSOBJ) $(CDEFS) $(CDEFSOBJ) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ)$(OBJ)/$*.obj $(MISC)/$*.c
334*cdf0e10cSrcweir.ENDIF
335*cdf0e10cSrcweir.ENDIF
336*cdf0e10cSrcweir.IF "$(nodep)"==""
337*cdf0e10cSrcweir	$(COMMAND_ECHO)$(MAKEDEPEND) @$(mktmp -f - -p$(OBJ) $(MKDEPFLAGS) $(CDEFS) $(CDEFSOBJ) $(CDEFSMT) $< ) > $(MISC)/o_$(@:f:s/.obj/.dpcc/)
338*cdf0e10cSrcweir	@noop $(assign DEPS_MADE+:=o_$(@:f:s/.obj/.dpcc/))
339*cdf0e10cSrcweir.ENDIF			# "$(nodep)"==""
340*cdf0e10cSrcweir
341*cdf0e10cSrcweir$(SLO)/%.obj : $(MISC)/%.c
342*cdf0e10cSrcweir	@echo $(COMPILE_ECHO_SWITCH) Compiling: $(PRJNAME)/$(INPATH)/misc/$(COMPILE_ECHO_FILE)
343*cdf0e10cSrcweir.IF "$(GUI)"=="UNX"
344*cdf0e10cSrcweir	@$(RM) $@ $(@:s/.obj/.o/)
345*cdf0e10cSrcweir	$(COMMAND_ECHO)$(CC) $(CFLAGS) $(INCLUDE_C) $(CFLAGSCC) $(CFLAGSSLO) $(CDEFS) $(CDEFSSLO) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ) $(SLO)/$*.o $(MISC)/$*.c
346*cdf0e10cSrcweir.IF "$(OS)"=="SOLARIS" && "$(product)"=="full" && "$(debug)"==""
347*cdf0e10cSrcweir    $(COMMAND_ECHO)$(ADJUSTVISIBILITY) -p $(@:s/.obj/.o/)
348*cdf0e10cSrcweir.ENDIF          # "$(OS)"=="SOLARIS" && "$(product)"=="full" && "$(debug)"==""
349*cdf0e10cSrcweir	@$(IFEXIST) $(@:s/.obj/.o/) $(THEN) $(TOUCH) $@ $(FI)
350*cdf0e10cSrcweir.ELSE
351*cdf0e10cSrcweir	@@-$(RM) $@
352*cdf0e10cSrcweir.IF "$(COM)"=="GCC"
353*cdf0e10cSrcweir	$(COMMAND_ECHO)$(CC) $(CFLAGS) $(INCLUDE_C) $(CFLAGSCC) $(CFLAGSSLO) $(CDEFS) $(CDEFSSLO) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ)$(SLO)/$*.obj $(MISC)/$*.c
354*cdf0e10cSrcweir.ELSE
355*cdf0e10cSrcweir	$(COMMAND_ECHO)$(CC) $(CFLAGS) $(INCLUDE_C) $(CFLAGSCC) $(CFLAGSSLO) $(CDEFS) $(CDEFSSLO) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ)$(SLO)/$*.obj $(MISC)/$*.c
356*cdf0e10cSrcweir.ENDIF
357*cdf0e10cSrcweir.ENDIF
358*cdf0e10cSrcweir.IF "$(nodep)"==""
359*cdf0e10cSrcweir	$(COMMAND_ECHO)$(MAKEDEPEND) @$(mktmp -f - -p$(SLO) $(MKDEPFLAGS) $(CDEFS) $(CDEFSSLO) $(CDEFSMT) $< ) > $(MISC)/s_$(@:f:s/.obj/.dpcc/)
360*cdf0e10cSrcweir# avoid _version objects (see tg_shl.mk) - quite hacky...
361*cdf0e10cSrcweir	@noop $(!eq,$@,$(@:s/_version.obj/.obj/) $(NULL) $(assign DEPS_MADE+:=s_$(@:f:s/.obj/.dpcc/)))
362*cdf0e10cSrcweir.ENDIF			# "$(nodep)"==""
363*cdf0e10cSrcweir
364*cdf0e10cSrcweir$(SLO)/%.obj : %.c
365*cdf0e10cSrcweir	@echo $(COMPILE_ECHO_SWITCH) Compiling: $(PRJNAME)/$(PATH_IN_MODULE)/$(COMPILE_ECHO_FILE)
366*cdf0e10cSrcweir.IF "$(GUI)"=="UNX"
367*cdf0e10cSrcweir	@$(RM) $@ $(@:s/.obj/.o/)
368*cdf0e10cSrcweir	$(COMMAND_ECHO)$(CC) $(CFLAGS) $(INCLUDE_C) $(CFLAGSCC) $(CFLAGSSLO) $(CDEFS) $(CDEFSSLO) $(CDEFSMT) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ) $(SLO)/$*.o $*.c
369*cdf0e10cSrcweir.IF "$(OS)"=="SOLARIS" && "$(product)"=="full" && "$(debug)"==""
370*cdf0e10cSrcweir    $(COMMAND_ECHO)$(ADJUSTVISIBILITY) -p $(@:s/.obj/.o/)
371*cdf0e10cSrcweir.ENDIF          # "$(OS)"=="SOLARIS" && "$(product)"=="full" && "$(debug)"==""
372*cdf0e10cSrcweir	@$(IFEXIST) $(@:s/.obj/.o/) $(THEN) $(TOUCH) $@ $(FI)
373*cdf0e10cSrcweir.ELSE
374*cdf0e10cSrcweir	@@-$(RM) $@
375*cdf0e10cSrcweir.IF "$(COM)"=="GCC"
376*cdf0e10cSrcweir	   $(COMMAND_ECHO)$(CC) $(CFLAGS) $(INCLUDE_C) $(CFLAGSCC) $(CFLAGSSLO) $(CDEFS) $(CDEFSSLO) $(CDEFSMT) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ)$(SLO)/$*.obj $*.c
377*cdf0e10cSrcweir.ELSE
378*cdf0e10cSrcweir	   $(COMMAND_ECHO)$(CC) $(CFLAGS) $(INCLUDE_C) $(CFLAGSCC) $(CFLAGSSLO) $(CDEFS) $(CDEFSSLO) $(CDEFSMT) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ)$(SLO)/$*.obj $*.c
379*cdf0e10cSrcweir.ENDIF
380*cdf0e10cSrcweir.ENDIF
381*cdf0e10cSrcweir.IF "$(nodep)"==""
382*cdf0e10cSrcweir	$(COMMAND_ECHO)$(MAKEDEPEND) @$(mktmp -f - -p$(SLO) $(MKDEPFLAGS) $(CDEFS) $(CDEFSSLO) $(CDEFSMT) $< ) > $(MISC)/s_$(@:f:s/.obj/.dpcc/)
383*cdf0e10cSrcweir	@noop $(assign DEPS_MADE+:=s_$(@:f:s/.obj/.dpcc/))
384*cdf0e10cSrcweir.ENDIF			# "$(nodep)"==""
385*cdf0e10cSrcweir
386*cdf0e10cSrcweir# Objective-C files
387*cdf0e10cSrcweir$(OBJ)/%.obj : %.m
388*cdf0e10cSrcweir	@echo $(COMPILE_ECHO_SWITCH) Compiling: $(PRJNAME)/$(PATH_IN_MODULE)/$(COMPILE_ECHO_FILE)
389*cdf0e10cSrcweir.IF "$(OS)"=="MACOSX"
390*cdf0e10cSrcweir.IF "$(TEST)"!=""
391*cdf0e10cSrcweir	$(COMMAND_ECHO)$(objc) $(CFLAGS) $(INCLUDE_C) $(CFLAGSCC) $(OBJCFLAGS) $(CFLAGSOBJ) $(CDEFS) $(CDEFSOBJ) -E $(CFLAGSAPPEND) $(CFLAGSOUTOBJ) $(OBJ)/$*.o $*.m
392*cdf0e10cSrcweir.ELSE
393*cdf0e10cSrcweir	@$(RM) $@ $(@:s/.obj/.o/)
394*cdf0e10cSrcweir	$(COMMAND_ECHO)$(objc) $(CFLAGS) $(INCLUDE_C) $(CFLAGSCC) $(OBJCFLAGS) $(CFLAGSOBJ) $(CDEFS) $(CDEFSOBJ) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ) $(OBJ)/$*.o $*.m
395*cdf0e10cSrcweir	@$(IFEXIST) $(@:s/.obj/.o/) $(THEN) $(TOUCH) $@ $(FI)
396*cdf0e10cSrcweir.ENDIF
397*cdf0e10cSrcweir.ELSE			# "$(OS)"=="MACOSX"
398*cdf0e10cSrcweir	@echo "No recipe for compiling Objective-C files is available for this platform"
399*cdf0e10cSrcweir.ENDIF		"$(OS)"=="MACOSX"
400*cdf0e10cSrcweir
401*cdf0e10cSrcweir# Objective-C files
402*cdf0e10cSrcweir$(OBJ)/%.obj : $(MISC)/%.m
403*cdf0e10cSrcweir	@echo $(COMPILE_ECHO_SWITCH) Compiling: $(PRJNAME)/$(INPATH)/misc/$(COMPILE_ECHO_FILE)
404*cdf0e10cSrcweir.IF "$(OS)"=="MACOSX"
405*cdf0e10cSrcweir	@$(RM) $@ $(@:s/.obj/.o/)
406*cdf0e10cSrcweir	$(COMMAND_ECHO)$(objc) $(CFLAGS) $(INCLUDE_C) $(CFLAGSCC) $(OBJCFLAGS) $(CFLAGSOBJ) $(CDEFS) $(CDEFSOBJ) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ) $(OBJ)/$*.o $(MISC)/$*.m
407*cdf0e10cSrcweir	@$(IFEXIST) $(@:s/.obj/.o/) $(THEN) $(TOUCH) $@ $(FI)
408*cdf0e10cSrcweir.ELSE			# "$(OS)"=="MACOSX"
409*cdf0e10cSrcweir	@echo "No recipe for compiling Objective-C files is available for this platform"
410*cdf0e10cSrcweir.ENDIF		"$(OS)"=="MACOSX"
411*cdf0e10cSrcweir
412*cdf0e10cSrcweir# Objective-C files
413*cdf0e10cSrcweir$(SLO)/%.obj : $(MISC)/%.m
414*cdf0e10cSrcweir	@echo $(COMPILE_ECHO_SWITCH) Compiling: $(PRJNAME)/$(INPATH)/misc/$(COMPILE_ECHO_FILE)
415*cdf0e10cSrcweir.IF "$(OS)"=="MACOSX"
416*cdf0e10cSrcweir	@$(RM) $@ $(@:s/.obj/.o/)
417*cdf0e10cSrcweir	$(COMMAND_ECHO)$(objc) $(CFLAGS) $(INCLUDE_C) $(CFLAGSCC) $(OBJCFLAGS) $(CFLAGSSLO) $(CDEFS) $(CDEFSSLO) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ) $(SLO)/$*.o $(MISC)/$*.m
418*cdf0e10cSrcweir	@$(IFEXIST) $(@:s/.obj/.o/) $(THEN) $(TOUCH) $@ $(FI)
419*cdf0e10cSrcweir.ELSE			# "$(OS)"=="MACOSX"
420*cdf0e10cSrcweir	@echo "No recipe for compiling Objective-C files is available for this platform"
421*cdf0e10cSrcweir.ENDIF		"$(OS)"=="MACOSX"
422*cdf0e10cSrcweir
423*cdf0e10cSrcweir# Objective-C files
424*cdf0e10cSrcweir$(SLO)/%.obj : %.m
425*cdf0e10cSrcweir	@echo $(COMPILE_ECHO_SWITCH) Compiling: $(PRJNAME)/$(PATH_IN_MODULE)/$(COMPILE_ECHO_FILE)
426*cdf0e10cSrcweir.IF "$(OS)"=="MACOSX"
427*cdf0e10cSrcweir	@$(RM) $@ $(@:s/.obj/.o/)
428*cdf0e10cSrcweir	$(COMMAND_ECHO)$(objc) $(CFLAGS) $(INCLUDE_C) $(CFLAGSCC) $(OBJCFLAGS) $(CFLAGSSLO) $(CDEFS) $(CDEFSSLO) $(CDEFSMT) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ) $(SLO)/$*.o $*.m
429*cdf0e10cSrcweir	@$(IFEXIST) $(@:s/.obj/.o/) $(THEN) $(TOUCH) $@ $(FI)
430*cdf0e10cSrcweir.ELSE			# "$(OS)"=="MACOSX"
431*cdf0e10cSrcweir	@echo "No recipe for compiling Objective-C files is available for this platform"
432*cdf0e10cSrcweir.ENDIF		"$(OS)"=="MACOSX"
433*cdf0e10cSrcweir
434*cdf0e10cSrcweir# dependencies c / c++
435*cdf0e10cSrcweir
436*cdf0e10cSrcweirnot_existing/s_%.dpcc : %.c;@noop $(assign all_local_slo+:=$<)
437*cdf0e10cSrcweirnot_existing/o_%.dpcc : %.c;@noop $(assign all_local_obj+:=$<)
438*cdf0e10cSrcweir
439*cdf0e10cSrcweir# Objective-C++ files
440*cdf0e10cSrcweir$(OBJ)/%.obj : %.mm
441*cdf0e10cSrcweir	@echo $(COMPILE_ECHO_SWITCH) Compiling: $(PRJNAME)/$(PATH_IN_MODULE)/$(COMPILE_ECHO_FILE)
442*cdf0e10cSrcweir.IF "$(OS)"=="MACOSX"
443*cdf0e10cSrcweir.IF "$(TEST)"!=""
444*cdf0e10cSrcweir	$(COMMAND_ECHO)$(objcpp) $(CFLAGS) $(INCLUDE) $(CFLAGSCC) $(OBJCXXFLAGS) $(CFLAGSOBJ) $(CDEFS) $(CDEFSOBJ) -E $(CFLAGSAPPEND) $(CFLAGSOUTOBJ) $(OBJ)/$*.o $*.mm
445*cdf0e10cSrcweir.ELSE
446*cdf0e10cSrcweir	@$(RM) $@ $(@:s/.obj/.o/)
447*cdf0e10cSrcweir	$(COMMAND_ECHO)$(objcpp) $(CFLAGS) $(INCLUDE) $(CFLAGSCC) $(OBJCXXFLAGS) $(CFLAGSOBJ) $(CDEFS) $(CDEFSOBJ) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ) $(OBJ)/$*.o $*.mm
448*cdf0e10cSrcweir	@$(IFEXIST) $(@:s/.obj/.o/) $(THEN) $(TOUCH) $@ $(FI)
449*cdf0e10cSrcweir.ENDIF
450*cdf0e10cSrcweir.IF "$(nodep)"==""
451*cdf0e10cSrcweir	$(COMMAND_ECHO)$(MAKEDEPEND) @$(mktmp -f - -p$(OBJ) $(MKDEPFLAGS) $(CDEFS) $(CDEFSOBJ) $(CDEFSMT) $< ) > $(MISC)/o_$(@:f:s/.obj/.dpcc/)
452*cdf0e10cSrcweir	@noop $(assign DEPS_MADE+:=o_$(@:f:s/.obj/.dpcc/))
453*cdf0e10cSrcweir.ENDIF			# "$(nodep)"==""
454*cdf0e10cSrcweir.ELSE			# "$(OS)"=="MACOSX"
455*cdf0e10cSrcweir	@echo "No recipe for compiling Objective-C++ files is available for this platform"
456*cdf0e10cSrcweir.ENDIF			# "$(OS)"=="MACOSX"
457*cdf0e10cSrcweir
458*cdf0e10cSrcweir# Objective-C++ files
459*cdf0e10cSrcweir$(OBJ)/%.obj : $(MISC)/%.mm
460*cdf0e10cSrcweir	@echo $(COMPILE_ECHO_SWITCH) Compiling: $(PRJNAME)/$(INPATH)/misc/$(COMPILE_ECHO_FILE)
461*cdf0e10cSrcweir.IF "$(OS)"=="MACOSX"
462*cdf0e10cSrcweir	@$(RM) $@ $(@:s/.obj/.o/)
463*cdf0e10cSrcweir	$(COMMAND_ECHO)$(objcpp) $(CFLAGS) $(INCLUDE) $(CFLAGSCXX) $(OBJCXXFLAGS) $(CFLAGSOBJ) $(CDEFS) $(CDEFSOBJ) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ) $(OBJ)/$*.o $(MISC)/$*.mm
464*cdf0e10cSrcweir	@$(IFEXIST) $(@:s/.obj/.o/) $(THEN) $(TOUCH) $@ $(FI)
465*cdf0e10cSrcweir.IF "$(nodep)"==""
466*cdf0e10cSrcweir	$(COMMAND_ECHO)$(MAKEDEPEND) @$(mktmp -f - -p$(OBJ) $(MKDEPFLAGS) $(CDEFS) $(CDEFSOBJ) $(CDEFSMT) $< ) > $(MISC)/o_$(@:f:s/.obj/.dpcc/)
467*cdf0e10cSrcweir	@noop $(assign DEPS_MADE+:=o_$(@:f:s/.obj/.dpcc/))
468*cdf0e10cSrcweir.ENDIF			# "$(nodep)"==""
469*cdf0e10cSrcweir.ELSE			# "$(OS)"=="MACOSX"
470*cdf0e10cSrcweir	@echo "No recipe for compiling Objective-C++ files is available for this platform"
471*cdf0e10cSrcweir.ENDIF			# "$(OS)"=="MACOSX"
472*cdf0e10cSrcweir
473*cdf0e10cSrcweir# Objective-C++ files
474*cdf0e10cSrcweir$(SLO)/%.obj : $(MISC)/%.mm
475*cdf0e10cSrcweir	@echo $(COMPILE_ECHO_SWITCH) Compiling: $(PRJNAME)/$(INPATH)/misc/$(COMPILE_ECHO_FILE)
476*cdf0e10cSrcweir.IF "$(OS)"=="MACOSX"
477*cdf0e10cSrcweir	@$(RM) $@ $(@:s/.obj/.o/)
478*cdf0e10cSrcweir	$(COMMAND_ECHO)$(objcpp) $(CFLAGS) $(INCLUDE) $(CFLAGSCXX) $(OBJCXXFLAGS) $(CFLAGSSLO) $(CDEFS) $(CDEFSSLO) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ) $(SLO)/$*.o $(MISC)/$*.mm
479*cdf0e10cSrcweir	@$(IFEXIST) $(@:s/.obj/.o/) $(THEN) $(TOUCH) $@ $(FI)
480*cdf0e10cSrcweir.IF "$(nodep)"==""
481*cdf0e10cSrcweir	$(COMMAND_ECHO)$(MAKEDEPEND) @$(mktmp -f - -p$(SLO) $(MKDEPFLAGS) $(CDEFS) $(CDEFSSLO) $(CDEFSMT) $< ) > $(MISC)/s_$(@:f:s/.obj/.dpcc/)
482*cdf0e10cSrcweir	@noop $(assign DEPS_MADE+:=s_$(@:f:s/.obj/.dpcc/))
483*cdf0e10cSrcweir.ENDIF			# "$(nodep)"==""
484*cdf0e10cSrcweir.ELSE			# "$(OS)"=="MACOSX"
485*cdf0e10cSrcweir	@echo "No recipe for compiling Objective-C++ files is available for this platform"
486*cdf0e10cSrcweir.ENDIF			# "$(OS)"=="MACOSX"
487*cdf0e10cSrcweir
488*cdf0e10cSrcweir# Objective-C++ files
489*cdf0e10cSrcweir$(SLO)/%.obj : %.mm
490*cdf0e10cSrcweir	@echo $(COMPILE_ECHO_SWITCH) Compiling: $(PRJNAME)/$(PATH_IN_MODULE)/$(COMPILE_ECHO_FILE)
491*cdf0e10cSrcweir.IF "$(OS)"=="MACOSX"
492*cdf0e10cSrcweir	@$(RM) $@ $(@:s/.obj/.o/)
493*cdf0e10cSrcweir	$(COMMAND_ECHO)$(objcpp) $(CFLAGS) $(INCLUDE) $(CFLAGSCXX) $(OBJCXXFLAGS) $(CFLAGSSLO) $(CDEFS) $(CDEFSSLO) $(CDEFSMT) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ) $(SLO)/$*.o $*.mm
494*cdf0e10cSrcweir	@$(IFEXIST) $(@:s/.obj/.o/) $(THEN) $(TOUCH) $@ $(FI)
495*cdf0e10cSrcweir.IF "$(nodep)"==""
496*cdf0e10cSrcweir	$(COMMAND_ECHO)$(MAKEDEPEND) @$(mktmp -f - -p$(SLO) $(MKDEPFLAGS) $(CDEFS) $(CDEFSSLO) $(CDEFSMT) $< ) > $(MISC)/s_$(@:f:s/.obj/.dpcc/)
497*cdf0e10cSrcweir	@noop $(assign DEPS_MADE+:=s_$(@:f:s/.obj/.dpcc/))
498*cdf0e10cSrcweir.ENDIF			# "$(nodep)"==""
499*cdf0e10cSrcweir.ELSE			# "$(OS)"=="MACOSX"
500*cdf0e10cSrcweir	@echo "No recipe for compiling Objective-C++ files is available for this platform"
501*cdf0e10cSrcweir.ENDIF			# "$(OS)"=="MACOSX"
502*cdf0e10cSrcweir
503*cdf0e10cSrcweir$(MISC)/%.dpslo :
504*cdf0e10cSrcweir	@echo "Making:   " $(@:f)
505*cdf0e10cSrcweir	@@$(RM) $@
506*cdf0e10cSrcweir	@@-$(CDD) $(MISC) && $(!null,$(all_local_slo) $(TYPE:s/+//) echo #) $(foreach,i,$(all_local_slo:b:+".dpcc") s_$(i)) > $(@:f)
507*cdf0e10cSrcweir	@@-$(CDD) $(MISC) && $(!null,$(all_misc_slo) $(TYPE:s/+//) echo #) $(foreach,i,$(all_misc_slo:b:+".dpcc") s_$(i)) >> $(@:f)
508*cdf0e10cSrcweir	@$(TYPE) $(mktmp $(foreach,i,$(all_local_slo:b:+".dpcc") $(@:s#\#/#:^"\n") : $(MISC:s#\#/#)/s_$i) $(foreach,i,$(all_misc_slo:b:+".dpcc") $(@:s#\#/#:^"\n") : $(MISC:s#\#/#)/s_$i)) >> $@
509*cdf0e10cSrcweir	@$(TYPE) $(mktmp $(TARGET)_known_dpcc+=$(all_local_slo:b:+".dpcc":^"s_") $(all_misc_slo:b:+".dpcc":^"s_")) >> $@
510*cdf0e10cSrcweir
511*cdf0e10cSrcweir$(MISC)/%.dpobj :
512*cdf0e10cSrcweir	@echo "Making:   " $(@:f)
513*cdf0e10cSrcweir	@@$(RM) $@
514*cdf0e10cSrcweir	@@-$(CDD) $(MISC) && $(!null,$(all_local_obj) $(TYPE:s/+//) echo #) $(foreach,i,$(all_local_obj:b:+".dpcc") o_$(i)) > $(@:f)
515*cdf0e10cSrcweir	@@-$(CDD) $(MISC) && $(!null,$(all_misc_obj) $(TYPE:s/+//) echo #) $(foreach,i,$(all_misc_obj:b:+".dpcc") o_$(i)) >> $(@:f)
516*cdf0e10cSrcweir	@$(TYPE) $(mktmp $(foreach,i,$(all_local_obj:b:+".dpcc") $(@:s#\#/#:^"\n") : $(MISC:s#\#/#)/o_$i) $(foreach,i,$(all_misc_obj:b:+".dpcc") $(@:s#\#/#:^"\n") : $(MISC:s#\#/#)/o_$i)) >> $@
517*cdf0e10cSrcweir	@$(TYPE) $(mktmp $(TARGET)_known_dpcc+=$(all_local_obj:b:+".dpcc":^"s_") $(all_misc_obj:b:+".dpcc":^"s_")) >> $@
518*cdf0e10cSrcweir
519*cdf0e10cSrcweir# see also %.dpslo
520*cdf0e10cSrcweirnot_existing/s_%.dpcc : %.cxx;@noop $(assign all_local_slo+:=$<)
521*cdf0e10cSrcweirnot_existing/o_%.dpcc : %.cxx;@noop $(assign all_local_obj+:=$<)
522*cdf0e10cSrcweir
523*cdf0e10cSrcweirnot_existing/s_%.dpcc : %.cpp;@noop $(assign all_local_slo+:=$<)
524*cdf0e10cSrcweirnot_existing/o_%.dpcc : %.cpp;@noop $(assign all_local_obj+:=$<)
525*cdf0e10cSrcweir
526*cdf0e10cSrcweirnot_existing/s_%.dpcc : $(MISC)/%.c;@noop $(assign all_misc_slo+:=$<)
527*cdf0e10cSrcweirnot_existing/o_%.dpcc : $(MISC)/%.c;@noop $(assign all_misc_obj+:=$<)
528*cdf0e10cSrcweir
529*cdf0e10cSrcweirnot_existing/s_%.dpcc : $(MISC)/%.cxx;@noop $(assign all_misc_slo+:=$<)
530*cdf0e10cSrcweirnot_existing/o_%.dpcc : $(MISC)/%.cxx;@noop $(assign all_misc_obj+:=$<)
531*cdf0e10cSrcweir
532*cdf0e10cSrcweirnot_existing/s_%.dpcc : %.mm;@noop $(assign all_local_slo+:=$<)
533*cdf0e10cSrcweirnot_existing/o_%.dpcc : %.mm;@noop $(assign all_local_obj+:=$<)
534*cdf0e10cSrcweir
535*cdf0e10cSrcweirnot_existing/s_%.dpcc : $(MISC)/%.mm;@noop $(assign all_misc_slo+:=$<)
536*cdf0e10cSrcweirnot_existing/o_%.dpcc : $(MISC)/%.mm;@noop $(assign all_misc_obj+:=$<)
537*cdf0e10cSrcweir
538*cdf0e10cSrcweir# dependencies objective-c
539*cdf0e10cSrcweir
540*cdf0e10cSrcweir$(MISC)/s_%.dpcc : %.m
541*cdf0e10cSrcweir	@@-$(RM) $@
542*cdf0e10cSrcweir	$(COMMAND_ECHO)$(MAKEDEPEND) -f - -p$(SLO) $(MKDEPFLAGS) $(CDEFS) $(CDEFSSLO) $(CDEFSMT) $< > $@
543*cdf0e10cSrcweir	@echo $@ : $(SLO)/$(<:b).obj >> $@
544*cdf0e10cSrcweir
545*cdf0e10cSrcweir$(MISC)/o_%.dpcc : %.m
546*cdf0e10cSrcweir	@@-$(RM) $@
547*cdf0e10cSrcweir	$(COMMAND_ECHO)$(MAKEDEPEND) -f - -p$(OBJ) $(MKDEPFLAGS) $(CDEFS) $(CDEFSOBJ) $(CDEFSMT) $< > $@
548*cdf0e10cSrcweir	@echo $@ : $(OBJ)/$(<:b).obj >> $@
549*cdf0e10cSrcweir
550*cdf0e10cSrcweir$(MISC)/s_%.dpcc : $(MISC)/%.m
551*cdf0e10cSrcweir	@@-$(RM) $@
552*cdf0e10cSrcweir.IF "$(GUI)"=="UNX"
553*cdf0e10cSrcweir	$(COMMAND_ECHO)$(MAKEDEPEND) -f - -p$(SLO) $(MKDEPFLAGS) $(CDEFS) $(CDEFSSLO) $(CDEFSMT) $< | sed s\#$(MISC)/\#\# > $@
554*cdf0e10cSrcweir.ELSE			# "$(GUI)"=="UNX"
555*cdf0e10cSrcweir	$(COMMAND_ECHO)$(MAKEDEPEND) -f - -p$(SLO) $(MKDEPFLAGS) $(CDEFS) $(CDEFSSLO) $(CDEFSMT) $< | $(SED) s/$(MISC:s/\/\\/)\\// > $@
556*cdf0e10cSrcweir.ENDIF			# "$(GUI)"=="UNX"
557*cdf0e10cSrcweir	@echo $@ : $(SLO)/$(<:b).obj >> $@
558*cdf0e10cSrcweir
559*cdf0e10cSrcweir$(MISC)/o_%.dpcc : $(MISC)/%.m
560*cdf0e10cSrcweir	@@-$(RM) $@
561*cdf0e10cSrcweir.IF "$(GUI)"=="UNX"
562*cdf0e10cSrcweir	$(COMMAND_ECHO)$(MAKEDEPEND) -f - -p$(OBJ) $(MKDEPFLAGS) $(CDEFS) $(CDEFSOBJ) $(CDEFSMT) $< | sed s\#$(MISC)/\#\# > $@
563*cdf0e10cSrcweir.ELSE			# "$(GUI)"=="UNX"
564*cdf0e10cSrcweir	$(COMMAND_ECHO)$(MAKEDEPEND) -f - -p$(OBJ) $(MKDEPFLAGS) $(CDEFS) $(CDEFSOBJ) $(CDEFSMT) $< | $(SED) s/$(MISC:s/\/\\/)\\// > $@
565*cdf0e10cSrcweir.ENDIF			# "$(GUI)"=="UNX"
566*cdf0e10cSrcweir	@echo $@ : $(OBJ)/$(<:b).obj >> $@
567*cdf0e10cSrcweir
568*cdf0e10cSrcweir# dependency dummy for *.s files
569*cdf0e10cSrcweir
570*cdf0e10cSrcweir$(MISC)/s_%.dpcc : %.s
571*cdf0e10cSrcweir	@@-$(RM) $@
572*cdf0e10cSrcweir	$(COMMAND_ECHO)$(MAKEDEPEND) -f - -p$(SLO) $(MKDEPFLAGS) $(CDEFS) $(CDEFSSLO) $(CDEFSMT) $< > $@
573*cdf0e10cSrcweir	@echo $@ : $(SLO)/$(<:b).obj >> $@
574*cdf0e10cSrcweir
575*cdf0e10cSrcweir$(MISC)/s_%.dpcc : $(SLO)/%.obj
576*cdf0e10cSrcweir	@noop $(assign DEPS_MISSING+:=$(@:f))
577*cdf0e10cSrcweir
578*cdf0e10cSrcweir$(MISC)/o_%.dpcc : $(OBJ)/%.obj
579*cdf0e10cSrcweir	@noop $(assign DEPS_MISSING+:=$(@:f))
580*cdf0e10cSrcweir
581*cdf0e10cSrcweir# dependencies script files
582*cdf0e10cSrcweir
583*cdf0e10cSrcweir$(MISC)/%.dpsc :
584*cdf0e10cSrcweir	@@-$(RM) $@
585*cdf0e10cSrcweir	@@-$(MKDIR) $(MISC)/{$(subst,$(@:d:d:d), $(@:d:d))}
586*cdf0e10cSrcweir	$(COMMAND_ECHO)$(MAKEDEPEND) -f - -p$(PAR)/{$(subst,$(@:d:d:d), $(@:d:d))} -o.par -D{$(subst,$(@:d:d:d:u), $(@:d:d:u))}_PRODUCT $(CDEFS) -DDLLPOSTFIX=$(DLLPOSTFIX) -I. -I$(INC) -I$(INCLOCAL) -I$(INCGUI) -I$(INCCOM) $(*:b).scp > $@
587*cdf0e10cSrcweir	@echo $@ : $(PAR)/{$(subst,$(@:d:d:d), $(@:d:d))}/$(*:b).par  >> $@
588*cdf0e10cSrcweir	@echo $(PAR)/{$(subst,$(@:d:d:d), $(@:d:d))}/$(*:b).par : $(*:b).scp >> $@
589*cdf0e10cSrcweir
590*cdf0e10cSrcweir# dependencies rc files (native resources for windows)
591*cdf0e10cSrcweir
592*cdf0e10cSrcweir$(MISC)/%.dprc :
593*cdf0e10cSrcweir	@@-$(RM) $@
594*cdf0e10cSrcweir	$(COMMAND_ECHO)$(MAKEDEPEND) -f - -p$(RES) -o.res $(RCLANGFLAGS_{$(subst,$(@:d:d:d:u), $(@:d:d:u))}:u:s/ //) $(CDEFS) -DDLLPOSTFIX=$(DLLPOSTFIX) -I. -I$(INC) -I$(INCLOCAL) -I$(INCGUI) -I$(INCCOM) -I$(SOLARENV)/inc $(*:b).rc >> $@
595*cdf0e10cSrcweir#	@echo $@ : $(RES)/{$(subst,$(@:d:d:d), $(@:d:d))}/$(*:b).res  >> $@
596*cdf0e10cSrcweir	@echo $@ : $(RES)/$(*:b).res  >> $@
597*cdf0e10cSrcweir
598*cdf0e10cSrcweir$(MISC)/%.dpr :
599*cdf0e10cSrcweir	@@noop
600*cdf0e10cSrcweir.IF "$(nodep)"==""
601*cdf0e10cSrcweir	@echo "Making:   " $(@:f)
602*cdf0e10cSrcweir    @@-$(RM) $@
603*cdf0e10cSrcweir	$(COMMAND_ECHO)dmake $(MFLAGS) $(MAKEFILE) $(CALLMACROS) make_srs_deps=true $(DEPSRSFILES)
604*cdf0e10cSrcweir	$(COMMAND_ECHO)-$(TYPE) $(MISC)/$(TARGET).*.dprr >> $@
605*cdf0e10cSrcweir.ENDIF			# "$(nodep)"==""
606*cdf0e10cSrcweir
607*cdf0e10cSrcweir$(MISC)/%.dpz :
608*cdf0e10cSrcweir	@@noop
609*cdf0e10cSrcweir.IF "$(nodep)"==""
610*cdf0e10cSrcweir	@echo "Making:   " $(@:f)
611*cdf0e10cSrcweir    @@-$(RM) $@
612*cdf0e10cSrcweir    $(COMMAND_ECHO)dmake $(MFLAGS) $(MAKEFILE) $(CALLMACROS) make_zip_deps=true $(ZIPDEPFILES)
613*cdf0e10cSrcweir	$(COMMAND_ECHO)$(TYPE) $(ZIPDEPFILES) $(mktmp $(NULL)) | grep -v "CVS" | grep -v "\.svn" >> $@
614*cdf0e10cSrcweir	@echo zipdep_langs=$(alllangiso) >> $@
615*cdf0e10cSrcweir	@@-$(RM) $(ZIPDEPFILES)
616*cdf0e10cSrcweir.ENDIF			# "$(nodep)"==""
617*cdf0e10cSrcweir
618*cdf0e10cSrcweir# Dependencies fuer java - Files
619*cdf0e10cSrcweir
620*cdf0e10cSrcweir$(MISC)/%.dpj :
621*cdf0e10cSrcweir	@echo "Making:   " $(@:f)
622*cdf0e10cSrcweir.IF "$(nodep)"!=""
623*cdf0e10cSrcweir.IF "$(GUI)"=="UNX"
624*cdf0e10cSrcweir	@echo > $@
625*cdf0e10cSrcweir.ELSE
626*cdf0e10cSrcweir	@$(ECHONL) > $@
627*cdf0e10cSrcweir.ENDIF
628*cdf0e10cSrcweir.ELSE 			# "$(ndep)"==""
629*cdf0e10cSrcweir.IF "$(GUI)"=="UNX"
630*cdf0e10cSrcweir	@echo $(shell @$(STARDEP) @$(mktmp -o $@ -i $(CLASSDIR) $(foreach,i,$(JAVADEPINCLUDES:s/:/ /) -i $i) $(JAVACLASSFILES)))
631*cdf0e10cSrcweir.ELSE
632*cdf0e10cSrcweir	@echo javadeps
633*cdf0e10cSrcweir	@echo $(shell @$(STARDEP) @$(mktmp -o $@ -i $(CLASSDIR) $(foreach,i,$(JAVADEPINCLUDES:s/;/ /) -i $i) $(JAVACLASSFILES)))
634*cdf0e10cSrcweir.ENDIF
635*cdf0e10cSrcweir.ENDIF			# "$(nodep)"==""
636*cdf0e10cSrcweir
637*cdf0e10cSrcweir$(SLO)/%.obj : %.asm
638*cdf0e10cSrcweir	   @echo $(COMPILE_ECHO_SWITCH) Compiling: $(PRJNAME)/$(PATH_IN_MODULE)/$(COMPILE_ECHO_FILE)
639*cdf0e10cSrcweir.IF "$(COM)"=="GCC"
640*cdf0e10cSrcweir.IF "$(ASM)"=="ml"
641*cdf0e10cSrcweir	   $(COMMAND_ECHO)$(ASM) $(AFLAGS) -D$(COM) /Fo$(SLO)/$*.obj $*.asm
642*cdf0e10cSrcweir	   @@-$(RM) $*.err
643*cdf0e10cSrcweir.ELSE			# "$(ASM)"=="ml"
644*cdf0e10cSrcweir		@@-$(RM) $@
645*cdf0e10cSrcweir		$(COMMAND_ECHO)$(ASM) $(AFLAGS) $*.asm,$(SLO)/$*.obj;
646*cdf0e10cSrcweir.ENDIF			# "$(ASM)"=="ml"
647*cdf0e10cSrcweir.ELSE
648*cdf0e10cSrcweir.IF "$(COM)"=="WTC"
649*cdf0e10cSrcweir		$(COMMAND_ECHO)$(ASM) $(AFLAGS) -D$(COM) $*.asm -fo=$(SLO)/$*.obj
650*cdf0e10cSrcweir		@-$(IFEXIST) $*.err $(THEN) $(RM:s/+//) $*.err $(FI)
651*cdf0e10cSrcweir.ELSE
652*cdf0e10cSrcweir.IF "$(COM)"=="MSC"
653*cdf0e10cSrcweir.IF "$(ASM)"=="ml"
654*cdf0e10cSrcweir	$(COMMAND_ECHO)$(ASM) $(AFLAGS) -D$(COM) /Fo$(SLO)/$*.obj $*.asm
655*cdf0e10cSrcweir	@-$(IFEXIST) $*.err $(THEN) $(RM:s/+//) $*.err $(FI)
656*cdf0e10cSrcweir.ELSE			# "$(ASM)"=="ml"
657*cdf0e10cSrcweir	@@-$(RM) $@
658*cdf0e10cSrcweir	$(COMMAND_ECHO)$(ASM) $(AFLAGS) $*.asm,$(SLO)/$*.obj;
659*cdf0e10cSrcweir.ENDIF			# "$(ASM)"=="ml"
660*cdf0e10cSrcweir.ENDIF			 "$(COM)"=="MSC"
661*cdf0e10cSrcweir.ENDIF
662*cdf0e10cSrcweir.ENDIF
663*cdf0e10cSrcweir
664*cdf0e10cSrcweir$(OBJ)/%.obj : %.asm
665*cdf0e10cSrcweir	   @echo $(COMPILE_ECHO_SWITCH) Compiling: $(PRJNAME)/$(PATH_IN_MODULE)/$(COMPILE_ECHO_FILE)
666*cdf0e10cSrcweir.IF "$(COM)"=="GCC"
667*cdf0e10cSrcweir.IF "$(ASM)"=="ml"
668*cdf0e10cSrcweir	   $(COMMAND_ECHO)$(ASM) $(AFLAGS) -D$(COM) /Fo$(OBJ)/$*.obj $*.asm
669*cdf0e10cSrcweir	   @@-$(RM) $*.err
670*cdf0e10cSrcweir.ELSE			# "$(ASM)"=="ml"
671*cdf0e10cSrcweir		@@-$(RM) $@
672*cdf0e10cSrcweir		$(COMMAND_ECHO)$(ASM) $(AFLAGS) $*.asm,$(OBJ)/$*.obj;
673*cdf0e10cSrcweir.ENDIF			# "$(ASM)"=="ml"
674*cdf0e10cSrcweir.ELSE
675*cdf0e10cSrcweir.IF "$(COM)"=="MSC"
676*cdf0e10cSrcweir.IF "$(ASM)"=="ml"
677*cdf0e10cSrcweir	$(COMMAND_ECHO)$(ASM) $(AFLAGS) -D$(COM) /Fo$(SLO)/$*.obj $*.asm
678*cdf0e10cSrcweir	@-$(IFEXIST) $*.err $(THEN) $(RM:s/+//) $*.err $(FI)
679*cdf0e10cSrcweir.ELSE			# "$(ASM)"=="ml"
680*cdf0e10cSrcweir	@$(IFEXIST) $@ $(THEN) $(RM:s/+//) $@ >& $(NULLDEV) $(FI)
681*cdf0e10cSrcweir	$(COMMAND_ECHO)$(ASM) $(AFLAGS) $*.asm,$(OBJ)/$*.obj;
682*cdf0e10cSrcweir.ENDIF			# "$(ASM)"=="ml"
683*cdf0e10cSrcweir.ENDIF			 "$(COM)"=="MSC"
684*cdf0e10cSrcweir.ENDIF
685*cdf0e10cSrcweir
686*cdf0e10cSrcweir$(OUT)/ucr/$(IDLPACKAGE)/%.urd : %.idl
687*cdf0e10cSrcweir		@noop $(assign all_outdated_idl+:=$<)
688*cdf0e10cSrcweir
689*cdf0e10cSrcweir$(OUT)/ucrdoc/$(IDLPACKAGE)/%.urd : %.idl
690*cdf0e10cSrcweir		@noop $(assign all_outdated_doc_idl+:=$<)
691*cdf0e10cSrcweir
692*cdf0e10cSrcweir# make *.xml descriptions available in $(MISC)
693*cdf0e10cSrcweir$(MISC)/%$($(WINVERSIONNAMES)_MAJOR).xml : %.xml
694*cdf0e10cSrcweir    $(COMMAND_ECHO)$(COPY) $< $@
695*cdf0e10cSrcweir
696*cdf0e10cSrcweir# dummy rule to make sure xml file is in place when used in settings.mk
697*cdf0e10cSrcweir$(MISC)/%.mk : $(MISC)/%$($(WINVERSIONNAMES)_MAJOR).xml
698*cdf0e10cSrcweir	@$(TOUCH) $@
699*cdf0e10cSrcweir	@echo XML2MK_FILES += $(@:b) >> $@
700*cdf0e10cSrcweir
701*cdf0e10cSrcweir#generate descriptions from xml
702*cdf0e10cSrcweir$(MISC)/%$($(WINVERSIONNAMES)_MAJOR)_description.cxx : $(MISC)/%$($(WINVERSIONNAMES)_MAJOR).xml
703*cdf0e10cSrcweir	xml2cmp -func $(MISC)/$*$($(WINVERSIONNAMES)_MAJOR)_description.cxx $<
704*cdf0e10cSrcweir
705*cdf0e10cSrcweir#generate private rdb
706*cdf0e10cSrcweir$(BIN)/%.rdb: $(MISC)/%$($(WINVERSIONNAMES)_MAJOR).xml
707*cdf0e10cSrcweir	$(COMMAND_ECHO)$(RDBMAKER) -BUCR -O$(BIN)/$*.rdb @$(mktmp $(foreach,i,$($(@:b)_XML2CMPTYPES) -T$i ) $(COMPRDB))
708*cdf0e10cSrcweir
709*cdf0e10cSrcweir#strip dos lineends
710*cdf0e10cSrcweir$(MISC)/%.sh : %.sh
711*cdf0e10cSrcweir	@@-$(RM) -f $@
712*cdf0e10cSrcweir	@tr -d "\015" < $< > $@
713*cdf0e10cSrcweir
714*cdf0e10cSrcweir# merge targets
715*cdf0e10cSrcweir.IF "$(WITH_LANG)"!=""
716*cdf0e10cSrcweir$(COMMONMISC)/$(TARGET)/%.ulf : %.ulf
717*cdf0e10cSrcweir	@echo "Making:   " $(@:f)
718*cdf0e10cSrcweir    $(COMMAND_ECHO)-$(MKDIR) $(@:d)
719*cdf0e10cSrcweir    $(COMMAND_ECHO)-$(RM) $@
720*cdf0e10cSrcweir	$(COMMAND_ECHO)$(ULFEX) -p $(PRJNAME) -i $(@:f) -o $(@).$(INPATH) -m $(LOCALIZESDF) -l all
721*cdf0e10cSrcweir    $(COMMAND_ECHO)$(RENAME) $@.$(INPATH) $@
722*cdf0e10cSrcweir    $(COMMAND_ECHO)-$(RM) $@.$(INPATH)
723*cdf0e10cSrcweir
724*cdf0e10cSrcweir$(COMMONMISC)/$(TARGET)/%.xrb : %.xrb
725*cdf0e10cSrcweir    $(COMMAND_ECHO)-$(MKDIR) $(@:d)
726*cdf0e10cSrcweir    $(COMMAND_ECHO)-$(RM) $@
727*cdf0e10cSrcweir	$(COMMAND_ECHO)$(XMLEX) -t xrb -p $(PRJNAME) -i $(@:f) -o $(@).$(INPATH) -m $(LOCALIZESDF) -l all
728*cdf0e10cSrcweir    $(COMMAND_ECHO)$(RENAME) $@.$(INPATH) $@
729*cdf0e10cSrcweir    $(COMMAND_ECHO)-$(RM) $@.$(INPATH)
730*cdf0e10cSrcweir
731*cdf0e10cSrcweir$(COMMONMISC)/$(MYPATH)/%.xrm : %.xrm
732*cdf0e10cSrcweir    $(COMMAND_ECHO)-$(MKDIRHIER) $(@:d)
733*cdf0e10cSrcweir    $(COMMAND_ECHO)-$(RM) $@
734*cdf0e10cSrcweir	@echo trysdf = $(TRYSDF)
735*cdf0e10cSrcweir	$(COMMAND_ECHO)$(XRMEX) -p $(PRJNAME) -i $(@:f) -o $(@).$(INPATH) -m $(LOCALIZESDF) -l all
736*cdf0e10cSrcweir    $(COMMAND_ECHO)$(RENAME) $@.$(INPATH) $@
737*cdf0e10cSrcweir    $(COMMAND_ECHO)-$(RM) $@.$(INPATH)
738*cdf0e10cSrcweir
739*cdf0e10cSrcweir#$(COMMONMISC)/$(TARGET)/%.xrm : %.xrm
740*cdf0e10cSrcweir#    -$(MKDIRHIER) $(@:d)
741*cdf0e10cSrcweir#    -$(RM) $@
742*cdf0e10cSrcweir#	$(XRMEX) -p $(PRJNAME) -i $(@:f) -o $(@).$(INPATH) -m $(LOCALIZESDF) -l all
743*cdf0e10cSrcweir#    $(RENAME) $@.$(INPATH) $@
744*cdf0e10cSrcweir#    -$(RM) $@.$(INPATH)
745*cdf0e10cSrcweir#
746*cdf0e10cSrcweir#$(COMMONMISC)/%.xrm : %.xrm
747*cdf0e10cSrcweir#    -$(MKDIR) $(@:d)
748*cdf0e10cSrcweir#    -$(RM) $@
749*cdf0e10cSrcweir#	$(XRMEX) -p $(PRJNAME) -i $(@:f) -o $(@).$(INPATH) -m $(LOCALIZESDF) -l all
750*cdf0e10cSrcweir#    $(RENAME) $@.$(INPATH) $@
751*cdf0e10cSrcweir#    -$(RM) $@.$(INPATH)
752*cdf0e10cSrcweir.ENDIF			# "$(WITH_LANG)"!=""
753*cdf0e10cSrcweir
754*cdf0e10cSrcweir.IF "$(WITH_LANG)"!=""
755*cdf0e10cSrcweir$(COMMONMISC)/$(TARGET)/%.jlf : $$(@:db).ulf
756*cdf0e10cSrcweir.ELSE			# "$(WITH_LANG)"!=""
757*cdf0e10cSrcweir$(COMMONMISC)/$(TARGET)/%.jlf : $$(@:b).ulf
758*cdf0e10cSrcweir.ENDIF			# "$(WITH_LANG)"!=""
759*cdf0e10cSrcweir	@-$(MKDIRHIER) $(@:d)
760*cdf0e10cSrcweir    $(COMMAND_ECHO)-$(RM) $@
761*cdf0e10cSrcweir	$(COMMAND_ECHO)$(ULFCONV) -o $@.$(INPATH) $<
762*cdf0e10cSrcweir    $(COMMAND_ECHO)$(RENAME) $@.$(INPATH) $@
763*cdf0e10cSrcweir    $(COMMAND_ECHO)-$(RM) $@.$(INPATH)
764*cdf0e10cSrcweir
765*cdf0e10cSrcweir.IF "$(WITH_LANG)"!=""
766*cdf0e10cSrcweir$(COMMONMISC)/$(TARGET)/%.mlf : $$(@:db).ulf
767*cdf0e10cSrcweir.ELSE			# "$(WITH_LANG)"!=""
768*cdf0e10cSrcweir$(COMMONMISC)/$(TARGET)/%.mlf : $$(@:b).ulf
769*cdf0e10cSrcweir.ENDIF			# "$(WITH_LANG)"!=""
770*cdf0e10cSrcweir	@-$(MKDIRHIER) $(@:d)
771*cdf0e10cSrcweir	@-$(RM) $@
772*cdf0e10cSrcweir	@$(ULFCONV) -o $@.$(INPATH) -t $(SOLARBINDIR)/msi-encodinglist.txt $<
773*cdf0e10cSrcweir	@$(RENAME) $@.$(INPATH) $@
774*cdf0e10cSrcweir	@-$(RM) $@.$(INPATH)
775*cdf0e10cSrcweir
776*cdf0e10cSrcweir.IF "$(WITH_LANG)"!=""
777*cdf0e10cSrcweir$(COMMONMISC)/$(TARGET)/%.uulf : $$(@:db).ulf
778*cdf0e10cSrcweir.ELSE			# "$(WITH_LANG)"!=""
779*cdf0e10cSrcweir$(COMMONMISC)/$(TARGET)/%.uulf : $$(@:b).ulf
780*cdf0e10cSrcweir.ENDIF			# "$(WITH_LANG)"!=""
781*cdf0e10cSrcweir	@-$(MKDIRHIER) $(@:d)
782*cdf0e10cSrcweir	$(COMMAND_ECHO)-$(RM) $@
783*cdf0e10cSrcweir	@$(COPY) $< $@.$(INPATH)
784*cdf0e10cSrcweir	@$(RENAME) $@.$(INPATH) $@
785*cdf0e10cSrcweir	@-$(RM) $@.$(INPATH)
786*cdf0e10cSrcweir
787*cdf0e10cSrcweir# This is still needed?????
788*cdf0e10cSrcweir$(COMMONMISC)/$(TARGET)/%.xrm : %.xrm
789*cdf0e10cSrcweir    $(COMMAND_ECHO)-$(MKDIR) $(@:d)
790*cdf0e10cSrcweir    $(COMMAND_ECHO)-$(RM) $@
791*cdf0e10cSrcweir	$(COMMAND_ECHO)$(XRMEX) -p $(PRJNAME) -i $(@:f) -o $(@).$(INPATH) -m $(LOCALIZESDF) -l all
792*cdf0e10cSrcweir    $(COMMAND_ECHO)$(RENAME) $@.$(INPATH) $@
793*cdf0e10cSrcweir    $(COMMAND_ECHO)-$(RM) $@.$(INPATH)
794*cdf0e10cSrcweir
795*cdf0e10cSrcweir# dirty hack
796*cdf0e10cSrcweir# if local *.sdf file is missing
797*cdf0e10cSrcweir#%.sdf:
798*cdf0e10cSrcweir#    echo > $@
799*cdf0e10cSrcweir
800