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