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