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