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