Update ooo320-m1
[ooovba.git] / solenv / inc / rules.mk
blob3b13bb13bc597b03d885d6052114408606087d9a
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 .IF "$(VERBOSE)" == "TRUE"
36 @echo ------------------------------
37 .ENDIF
38 @echo Compiling: $(PRJNAME)/$(PATH_IN_MODULE)/$<
39 .IF "$(GUI)"=="UNX"
40 @$(RM) $@ $(@:s/.obj/.o/)
41 $(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
42 .IF "$(OS)"=="SOLARIS" && "$(product)"=="full" && "$(debug)"==""
43 .IF "$(noadjust)"==""
44 $(COMMAND_ECHO)$(ADJUSTVISIBILITY) -p $(@:s/.obj/.o/)
45 .ENDIF # "$(noadjust)"==""
46 .ENDIF # "$(OS)"=="SOLARIS" && "$(product)"=="full" && "$(debug)"==""
47 @$(IFEXIST) $(@:s/.obj/.o/) $(THEN) $(TOUCH) $@ $(FI)
48 .ELSE
49 @@-$(RM) $@
50 .IF "$(COM)"=="GCC"
51 $(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
52 .ELSE
53 $(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
54 .ENDIF
55 .ENDIF
56 .IF "$(nodep)"==""
57 $(COMMAND_ECHO)$(MAKEDEPEND) @$(mktmp -f - -p$(OBJ) $(MKDEPFLAGS) $(CDEFS) $(CDEFSOBJ) $(CDEFSMT) $< ) > $(MISC)/o_$(@:f:s/.obj/.dpcc/)
58 @noop $(assign DEPS_MADE+:=o_$(@:f:s/.obj/.dpcc/))
59 .ENDIF # "$(nodep)"==""
61 $(OBJ)/%.obj : %.cpp
62 .IF "$(VERBOSE)" == "TRUE"
63 @echo ------------------------------
64 .ENDIF
65 @echo Compiling: $(PRJNAME)/$(PATH_IN_MODULE)/$<
66 .IF "$(GUI)"=="UNX"
67 @$(RM) $@ $(@:s/.obj/.o/)
68 $(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
69 .IF "$(OS)"=="SOLARIS" && "$(product)"=="full" && "$(debug)"==""
70 $(COMMAND_ECHO)$(ADJUSTVISIBILITY) -p $(@:s/.obj/.o/)
71 .ENDIF # "$(OS)"=="SOLARIS" && "$(product)"=="full" && "$(debug)"==""
72 @$(IFEXIST) $(@:s/.obj/.o/) $(THEN) $(TOUCH) $@ $(FI)
73 .ELSE
74 @@-$(RM) $@
75 .IF "$(COM)"=="GCC"
76 $(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
77 .ELSE
78 $(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
79 .ENDIF
80 .ENDIF
81 .IF "$(nodep)"==""
82 $(COMMAND_ECHO)$(MAKEDEPEND) @$(mktmp -f - -p$(OBJ) $(MKDEPFLAGS) $(CDEFS) $(CDEFSOBJ) $(CDEFSMT) $< ) > $(MISC)/o_$(@:f:s/.obj/.dpcc/)
83 @noop $(assign DEPS_MADE+:=o_$(@:f:s/.obj/.dpcc/))
84 .ENDIF # "$(nodep)"==""
86 $(OBJ)/%.obj : %.cc
87 .IF "$(VERBOSE)" == "TRUE"
88 @echo ------------------------------
89 .ENDIF
90 @echo Compiling: $(PRJNAME)/$(PATH_IN_MODULE)/$<
91 .IF "$(GUI)"=="UNX"
92 @$(RM) $@ $(@:s/.obj/.o/)
93 $(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
94 .IF "$(OS)"=="SOLARIS" && "$(product)"=="full" && "$(debug)"==""
95 $(COMMAND_ECHO)$(ADJUSTVISIBILITY) -p $(@:s/.obj/.o/)
96 .ENDIF # "$(OS)"=="SOLARIS" && "$(product)"=="full" && "$(debug)"==""
97 @+$(IFEXIST) $(@:s/.obj/.o/) $(THEN) $(TOUCH) $@ $(FI)
98 .ELSE
99 @@$(RM) $@
100 .IF "$(COM)"=="GCC"
101 $(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
102 .ELSE
103 $(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 )
104 .ENDIF
105 .ENDIF
107 .IF "$(ENABLE_PCH)"!=""
108 # workaround for file locking problems on network volumes
109 .IF "$(NETWORK_BUILD)"==""
110 PCHOUTDIR=$(SLO)/pch
111 PCHEXOUTDIR=$(SLO)/pch_ex
112 .ELSE # "$(NETWORK_BUILD)"==""
113 PCHOUTDIR=$(TMP)/$(BUILD)$(CWS_WORK_STAMP)$(PRJNAME)$(PROEXT)
114 PCHEXOUTDIR=$(TMP)/$(BUILD)$(CWS_WORK_STAMP)$(PRJNAME)_ex$(PROEXT)
115 .ENDIF # "$(NETWORK_BUILD)"==""
116 $(SLO)/precompiled.% .PHONY:
117 -$(MKDIRHIER) $(SLO)/pch
118 .IF "$(COM)"=="MSC"
119 .IF "$(NETWORK_BUILD)"!=""
120 -$(MKDIRHIER) $(PCHOUTDIR)
121 .IF "$(HAVE_BIG_TMP)"==""
122 $(COMMAND_ECHO)-$(COPY) $(SLO)/pch/precompiled_$(PRJNAME).hxx$(PCHPOST) $(PCHOUTDIR)/precompiled_$(PRJNAME).hxx$(PCHPOST)
123 .ENDIF # "$(HAVE_BIG_TMP)"==""
124 .ENDIF # "$(NETWORK_BUILD)"!=""
125 $(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)
126 .IF "$(NETWORK_BUILD)"!=""
127 $(COMMAND_ECHO)$(COPY) $(PCHOUTDIR)/precompiled_$(PRJNAME).hxx$(PCHPOST) $(SLO)/pch/precompiled_$(PRJNAME).hxx$(PCHPOST)
128 .IF "$(HAVE_BIG_TMP)"==""
129 $(COMMAND_ECHO)$(RM) $(PCHOUTDIR)/precompiled_$(PRJNAME).hxx$(PCHPOST)
130 $(COMMAND_ECHO)$(RMDIR) $(PCHOUTDIR)
131 .ENDIF # "$(HAVE_BIG_TMP)"==""
132 .ENDIF # "$(NETWORK_BUILD)"!=""
133 .ELIF "$(COM)"=="GCC" && "$(CCNUMVER)">="000300040000"
134 $(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
135 @echo "#error Tried to use wrong precompiled header" > $(SLO)/pch/precompiled_$(PRJNAME).hxx
136 .ELSE # "$(COM)"=="MSC"
137 @$(TOUCH) $(SLO)/pch/precompiled_$(PRJNAME).hxx$(PCHPOST)
138 .ENDIF # "$(COM)"=="MSC"
139 @echo USED_PCHFLAGS=$(CFLAGS)$(CFLAGSCXX)$(CFLAGSCXXSLO)$(CFLAGSSLO)$(CDEFS)$(CDEFSSLO)$(CDEFSMT)$(CFLAGS_NO_EXCEPTIONS) -DEXCEPTIONS_OFF$(CFLAGSAPPEND)> $(INCCOM)/pch.mk
141 $(SLO)/precompiled_ex.% .PHONY:
142 -$(MKDIRHIER) $(SLO)/pch_ex
143 .IF "$(COM)"=="MSC"
144 .IF "$(NETWORK_BUILD)"!=""
145 -$(MKDIRHIER) $(PCHEXOUTDIR)
146 .IF "$(HAVE_BIG_TMP)"==""
147 $(COMMAND_ECHO)-$(COPY) $(SLO)/pch_ex/precompiled_$(PRJNAME).hxx$(PCHPOST) $(PCHEXOUTDIR)/precompiled_$(PRJNAME).hxx$(PCHPOST)
148 .ENDIF # "$(HAVE_BIG_TMP)"==""
149 .ENDIF # "$(NETWORK_BUILD)"!=""
150 $(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)
151 .IF "$(NETWORK_BUILD)"!=""
152 $(COMMAND_ECHO)$(COPY) $(PCHEXOUTDIR)/precompiled_$(PRJNAME).hxx$(PCHPOST) $(SLO)/pch_ex/precompiled_$(PRJNAME).hxx$(PCHPOST)
153 .IF "$(HAVE_BIG_TMP)"==""
154 $(COMMAND_ECHO)$(RM) $(PCHEXOUTDIR)/precompiled_$(PRJNAME).hxx$(PCHPOST)
155 $(COMMAND_ECHO)$(RMDIR) $(PCHEXOUTDIR)
156 .ENDIF # "$(HAVE_BIG_TMP)"==""
157 .ENDIF # "$(NETWORK_BUILD)"!=""
158 .ELIF "$(COM)"=="GCC" && "$(CCNUMVER)">="000300040000"
159 $(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
160 @echo "#error Tried to use wrong precompiled header" > $(SLO)/pch_ex/precompiled_$(PRJNAME).hxx
161 .ELSE # "$(COM)"=="MSC"
162 @$(TOUCH) $(SLO)/pch_ex/precompiled_$(PRJNAME).hxx$(PCHPOST)
163 .ENDIF # "$(COM)"=="MSC"
164 @echo USED_EXCEPTIONS_PCHFLAGS=$(subst,$(CFLAGSDEBUG), $(CFLAGS))$(CFLAGSCXX)$(CFLAGSCXXSLO)$(CFLAGSSLO)$(CDEFS)$(CDEFSSLO)$(CDEFSMT)$(CFLAGSEXCEPTIONS) -DEXCEPTIONS_ON$(CFLAGSAPPEND)> $(INCCOM)/pch_ex.mk
166 .INCLUDE .IGNORE : $(INCCOM)/pch.mk
167 .INCLUDE .IGNORE : $(INCCOM)/pch_ex.mk
168 .ENDIF # "$(ENABLE_PCH)"!=""
170 $(SLO)/%.obj : %.cxx
171 .IF "$(VERBOSE)" == "TRUE"
172 @echo ------------------------------
173 .ENDIF
174 @echo Compiling: $(PRJNAME)/$(PATH_IN_MODULE)/$<
175 .IF "$(ENABLE_PCH)"!="" && ( "$(PRJNAME)"!="sw" || "$(BUILD_SPECIAL)"!="TRUE" )
176 # just a helper var
177 @noop $(assign used_exc_switches=$(!eq,$(EXCEPTIONSFILES),$(subst,$@, $(EXCEPTIONSFILES)) $(LOCAL_EXCEPTIONS_FLAGS) $(GLOBAL_EXCEPTIONS_FLAGS)))
178 # cleanup first
179 @noop $(assign ACT_PCH_SWITCHES:=$(NULL))
180 # eq: first string is a copy of the compile line,
181 # second generated by pch creation
182 # use pch with exception support
183 @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)))
184 # use pch without exception support
185 @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)))
186 .ENDIF # "$(ENABLE_PCH)"!=""
187 .IF "$(GUI)"=="UNX"
188 .IF "$(TEST)"!=""
189 $(COMMAND_ECHO)$(CXX) $(CFLAGS) $(INCLUDE) $(CFLAGSCXX) $(CFLAGSCXXSLO) $(CFLAGSSLO) $(CDEFS) $(CDEFSSLO) $(CDEFSMT) -E $(CFLAGSINCXX)$(PWD)/$*.cxx
190 .ELSE
191 @$(RM) $@ $(@:s/.obj/.o/)
192 $(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)
193 .IF "$(OS)"=="SOLARIS" && "$(product)"=="full" && "$(debug)"=="" && "$(CAPTURE_COMMAND)"==""
194 $(COMMAND_ECHO)$(ADJUSTVISIBILITY) -p $(@:s/.obj/.o/)
195 .ENDIF # "$(OS)"=="SOLARIS" && "$(product)"=="full" && "$(debug)"==""
196 @$(IFEXIST) $(@:s/.obj/.o/) $(THEN) $(TOUCH) $@ $(FI)
197 .ENDIF
198 .ELSE # "$(GUI)"=="UNX"
199 @@-$(RM) $@
200 .IF "$(COM)"=="GCC"
201 $(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)
202 .ELSE
203 $(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)
204 .ENDIF # "$(COM)"=="GCC"
205 .ENDIF # "$(GUI)"=="UNX"
206 .IF "$(nodep)"==""
207 # fixme: write to file
208 $(COMMAND_ECHO)$(MAKEDEPEND) @$(mktmp -f - -p$(SLO) $(MKDEPFLAGS) $(CDEFS) $(CDEFSSLO) $(CDEFSMT) $< ) > $(MISC)/s_$(@:f:s/.obj/.dpcc/)
209 @noop $(assign DEPS_MADE+:=s_$(@:f:s/.obj/.dpcc/))
210 .ENDIF # "$(nodep)"==""
212 $(SLO)/%.obj : %.cpp
213 .IF "$(VERBOSE)" == "TRUE"
214 @echo ------------------------------
215 .ENDIF
216 @echo Compiling: $(PRJNAME)/$(PATH_IN_MODULE)/$<
217 .IF "$(GUI)"=="UNX"
218 .IF "$(TEST)"!=""
219 $(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
220 .ELSE
221 @$(RM) $@ $(@:s/.obj/.o/)
222 $(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
223 .IF "$(OS)"=="SOLARIS" && "$(product)"=="full" && "$(debug)"==""
224 $(COMMAND_ECHO)$(ADJUSTVISIBILITY) -p $(@:s/.obj/.o/)
225 .ENDIF # "$(OS)"=="SOLARIS" && "$(product)"=="full" && "$(debug)"==""
226 @$(IFEXIST) $(@:s/.obj/.o/) $(THEN) $(TOUCH) $@ $(FI)
227 .ENDIF
228 .ELSE
229 @@-$(RM) $@
230 .IF "$(COM)"=="GCC"
231 $(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
232 .ELSE
233 $(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
234 .ENDIF
235 .ENDIF
236 .IF "$(nodep)"==""
237 $(COMMAND_ECHO)$(MAKEDEPEND) @$(mktmp -f - -p$(SLO) $(MKDEPFLAGS) $(CDEFS) $(CDEFSSLO) $(CDEFSMT) $< ) > $(MISC)/s_$(@:f:s/.obj/.dpcc/)
238 @noop $(assign DEPS_MADE+:=s_$(@:f:s/.obj/.dpcc/))
239 .ENDIF # "$(nodep)"==""
241 $(SLO)/%.obj : $(MISC)/%.cxx
242 .IF "$(VERBOSE)" == "TRUE"
243 @echo ------------------------------
244 .ENDIF
245 @echo Compiling: $(PRJNAME)/$(OUTPATH)/misc/$(<:f)
246 .IF "$(GUI)"=="UNX"
247 .IF "$(TEST)"!=""
248 $(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
249 .ELSE
250 @$(RM) $@ $(@:s/.obj/.o/)
251 $(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
252 .IF "$(OS)"=="SOLARIS" && "$(product)"=="full" && "$(debug)"==""
253 $(COMMAND_ECHO)$(ADJUSTVISIBILITY) -p $(@:s/.obj/.o/)
254 .ENDIF # "$(OS)"=="SOLARIS" && "$(product)"=="full" && "$(debug)"==""
255 @$(IFEXIST) $(@:s/.obj/.o/) $(THEN) $(TOUCH) $@ $(FI)
256 .ENDIF
257 .ELSE
258 .IF "$(COM)"=="GCC"
259 $(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
260 .ELSE
261 $(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
262 .ENDIF
263 .ENDIF
264 .IF "$(nodep)"==""
265 $(COMMAND_ECHO)$(MAKEDEPEND) @$(mktmp -f - -p$(SLO) $(MKDEPFLAGS) $(CDEFS) $(CDEFSSLO) $(CDEFSMT) $@ ) > $(MISC)/s_$(@:f:s/.obj/.dpcc/)
266 @noop $(assign DEPS_MADE+:=s_$(@:f:s/.obj/.dpcc/))
267 .ENDIF # "$(nodep)"==""
269 $(SLO)/%.obj : $(MISC)/%.cc
270 .IF "$(VERBOSE)" == "TRUE"
271 @echo ------------------------------
272 .ENDIF
273 @echo Compiling: $(PRJNAME)/$(OUTPATH)/misc/$(<:f)
274 .IF "$(GUI)"=="UNX"
275 .IF "$(TEST)"!=""
276 $(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
277 .ELSE
278 @$(RM) $@ $(@:s/.obj/.o/)
279 $(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
280 .IF "$(OS)"=="SOLARIS" && "$(product)"=="full" && "$(debug)"==""
281 $(COMMAND_ECHO)$(ADJUSTVISIBILITY) -p $(@:s/.obj/.o/)
282 .ENDIF # "$(OS)"=="SOLARIS" && "$(product)"=="full" && "$(debug)"==""
283 @+$(IFEXIST) $(@:s/.obj/.o/) $(THEN) $(TOUCH) $@ $(FI)
284 .ENDIF
285 .ELSE
286 $(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 )
287 .ENDIF
289 $(OBJ)/%.obj : $(MISC)/%.cxx
290 .IF "$(VERBOSE)" == "TRUE"
291 @echo ------------------------------
292 .ENDIF
293 @echo Compiling: $(PRJNAME)/$(OUTPATH)/misc/$(<:f)
294 .IF "$(GUI)"=="UNX"
295 .IF "$(TEST)"!=""
296 $(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
297 .ELSE
298 @$(RM) $@ $(@:s/.obj/.o/)
299 $(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
300 .IF "$(OS)"=="SOLARIS" && "$(product)"=="full" && "$(debug)"==""
301 $(COMMAND_ECHO)$(ADJUSTVISIBILITY) -p $(@:s/.obj/.o/)
302 .ENDIF # "$(OS)"=="SOLARIS" && "$(product)"=="full" && "$(debug)"==""
303 @$(IFEXIST) $(@:s/.obj/.o/) $(THEN) $(TOUCH) $@ $(FI)
304 .ENDIF
305 .ELSE
306 .IF "$(COM)"=="GCC"
307 $(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
308 .ELSE
309 $(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
310 .ENDIF
311 .ENDIF
312 .IF "$(nodep)"==""
313 $(COMMAND_ECHO)$(MAKEDEPEND) @$(mktmp -f - -p$(OBJ) $(MKDEPFLAGS) $(CDEFS) $(CDEFSOBJ) $(CDEFSMT) $< ) > $(MISC)/o_$(@:f:s/.obj/.dpcc/)
314 @noop $(assign DEPS_MADE+:=o_$(@:f:s/.obj/.dpcc/))
315 .ENDIF # "$(nodep)"==""
317 $(OBJ)/%.obj : %.c
318 .IF "$(VERBOSE)" == "TRUE"
319 @echo ------------------------------
320 .ENDIF
321 @echo Compiling: $(PRJNAME)/$(PATH_IN_MODULE)/$<
322 .IF "$(GUI)"=="UNX"
323 .IF "$(TEST)"!=""
324 $(COMMAND_ECHO)$(CC) $(CFLAGS) $(INCLUDE_C) $(CFLAGSCC) $(CFLAGSOBJ) $(CDEFS) $(CDEFSOBJ) -E $(CFLAGSAPPEND) $(CFLAGSOUTOBJ) $(OBJ)/$*.o $*.c
325 .ELSE
326 @$(RM) $@ $(@:s/.obj/.o/)
327 $(COMMAND_ECHO)$(CC) $(CFLAGS) $(INCLUDE_C) $(CFLAGSCC) $(CFLAGSOBJ) $(CDEFS) $(CDEFSOBJ) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ) $(OBJ)/$*.o $*.c
328 .IF "$(OS)"=="SOLARIS" && "$(product)"=="full" && "$(debug)"==""
329 .IF "$(noadjust)"==""
330 $(COMMAND_ECHO)$(ADJUSTVISIBILITY) -p $(@:s/.obj/.o/)
331 .ENDIF # "$(noadjust)"==""
332 .ENDIF # "$(OS)"=="SOLARIS" && "$(product)"=="full" && "$(debug)"==""
333 @$(IFEXIST) $(@:s/.obj/.o/) $(THEN) $(TOUCH) $@ $(FI)
334 .ENDIF
335 .ELSE
336 .IF "$(COM)"=="GCC"
337 $(COMMAND_ECHO)$(CC) $(CFLAGS) $(INCLUDE_C) $(CFLAGSCC) $(CFLAGSOBJ) $(CDEFS) $(CDEFSOBJ) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ)$(OBJ)/$*.obj $*.c
338 .ELSE
339 .IF "$(VERBOSE)" == "TRUE"
340 -@echo Cflags: $(CFLAGS) $(INCLUDE)
341 .ENDIF
342 $(COMMAND_ECHO)$(CC) $(CFLAGS) $(INCLUDE_C) $(CFLAGSCC) $(CFLAGSOBJ) $(CDEFS) $(CDEFSOBJ) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ)$(OBJ)/$*.obj $*.c
343 .ENDIF
344 .ENDIF
345 .IF "$(nodep)"==""
346 $(COMMAND_ECHO)$(MAKEDEPEND) @$(mktmp -f - -p$(OBJ) $(MKDEPFLAGS) $(CDEFS) $(CDEFSOBJ) $(CDEFSMT) $< ) > $(MISC)/o_$(@:f:s/.obj/.dpcc/)
347 @noop $(assign DEPS_MADE+:=o_$(@:f:s/.obj/.dpcc/))
348 .ENDIF # "$(nodep)"==""
350 $(OBJ)/%.obj : $(MISC)/%.c
351 .IF "$(VERBOSE)" == "TRUE"
352 @echo ------------------------------
353 .ENDIF
354 @echo Compiling: $(PRJNAME)/$(OUTPATH)/misc/$(<:f)
355 .IF "$(GUI)"=="UNX"
356 @$(RM) $@ $(@:s/.obj/.o/)
357 $(COMMAND_ECHO)$(CC) $(CFLAGS) $(INCLUDE_C) $(CFLAGSCC) $(CFLAGSOBJ) $(CDEFS) $(CDEFSOBJ) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ) $(OBJ)/$*.o $(MISC)/$*.c
358 .IF "$(OS)"=="SOLARIS" && "$(product)"=="full" && "$(debug)"==""
359 $(COMMAND_ECHO)$(ADJUSTVISIBILITY) -p $(@:s/.obj/.o/)
360 .ENDIF # "$(OS)"=="SOLARIS" && "$(product)"=="full" && "$(debug)"==""
361 @$(IFEXIST) $(@:s/.obj/.o/) $(THEN) $(TOUCH) $@ $(FI)
362 .ELSE
363 @@-$(RM) $@
364 .IF "$(COM)"=="GCC"
365 $(COMMAND_ECHO)$(CC) $(CFLAGS) $(INCLUDE_C) $(CFLAGSCC) $(CFLAGSOBJ) $(CDEFS) $(CDEFSOBJ) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ)$(OBJ)/$*.obj $(MISC)/$*.c
366 .ELSE
367 $(COMMAND_ECHO)$(CC) $(CFLAGS) $(INCLUDE_C) $(CFLAGSCC) $(CFLAGSOBJ) $(CDEFS) $(CDEFSOBJ) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ)$(OBJ)/$*.obj $(MISC)/$*.c
368 .ENDIF
369 .ENDIF
370 .IF "$(nodep)"==""
371 $(COMMAND_ECHO)$(MAKEDEPEND) @$(mktmp -f - -p$(OBJ) $(MKDEPFLAGS) $(CDEFS) $(CDEFSOBJ) $(CDEFSMT) $< ) > $(MISC)/o_$(@:f:s/.obj/.dpcc/)
372 @noop $(assign DEPS_MADE+:=o_$(@:f:s/.obj/.dpcc/))
373 .ENDIF # "$(nodep)"==""
375 $(SLO)/%.obj : $(MISC)/%.c
376 .IF "$(VERBOSE)" == "TRUE"
377 @echo ------------------------------
378 .ENDIF
379 @echo Compiling: $(PRJNAME)/$(OUTPATH)/misc/$(<:f)
380 .IF "$(GUI)"=="UNX"
381 @$(RM) $@ $(@:s/.obj/.o/)
382 $(COMMAND_ECHO)$(CC) $(CFLAGS) $(INCLUDE_C) $(CFLAGSCC) $(CFLAGSSLO) $(CDEFS) $(CDEFSSLO) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ) $(SLO)/$*.o $(MISC)/$*.c
383 .IF "$(OS)"=="SOLARIS" && "$(product)"=="full" && "$(debug)"==""
384 $(COMMAND_ECHO)$(ADJUSTVISIBILITY) -p $(@:s/.obj/.o/)
385 .ENDIF # "$(OS)"=="SOLARIS" && "$(product)"=="full" && "$(debug)"==""
386 @$(IFEXIST) $(@:s/.obj/.o/) $(THEN) $(TOUCH) $@ $(FI)
387 .ELSE
388 @@-$(RM) $@
389 .IF "$(COM)"=="GCC"
390 $(COMMAND_ECHO)$(CC) $(CFLAGS) $(INCLUDE_C) $(CFLAGSCC) $(CFLAGSSLO) $(CDEFS) $(CDEFSSLO) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ)$(SLO)/$*.obj $(MISC)/$*.c
391 .ELSE
392 $(COMMAND_ECHO)$(CC) $(CFLAGS) $(INCLUDE_C) $(CFLAGSCC) $(CFLAGSSLO) $(CDEFS) $(CDEFSSLO) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ)$(SLO)/$*.obj $(MISC)/$*.c
393 .ENDIF
394 .ENDIF
395 .IF "$(nodep)"==""
396 $(COMMAND_ECHO)$(MAKEDEPEND) @$(mktmp -f - -p$(SLO) $(MKDEPFLAGS) $(CDEFS) $(CDEFSSLO) $(CDEFSMT) $< ) > $(MISC)/s_$(@:f:s/.obj/.dpcc/)
397 # avoid _version objects (see tg_shl.mk) - quite hacky...
398 @noop $(!eq,$@,$(@:s/_version.obj/.obj/) $(NULL) $(assign DEPS_MADE+:=s_$(@:f:s/.obj/.dpcc/)))
399 .ENDIF # "$(nodep)"==""
401 $(SLO)/%.obj : %.c
402 .IF "$(VERBOSE)" == "TRUE"
403 @echo ------------------------------
404 .ENDIF
405 @echo Compiling: $(PRJNAME)/$(PATH_IN_MODULE)/$<
406 .IF "$(GUI)"=="UNX"
407 @$(RM) $@ $(@:s/.obj/.o/)
408 $(COMMAND_ECHO)$(CC) $(CFLAGS) $(INCLUDE_C) $(CFLAGSCC) $(CFLAGSSLO) $(CDEFS) $(CDEFSSLO) $(CDEFSMT) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ) $(SLO)/$*.o $*.c
409 .IF "$(OS)"=="SOLARIS" && "$(product)"=="full" && "$(debug)"==""
410 $(COMMAND_ECHO)$(ADJUSTVISIBILITY) -p $(@:s/.obj/.o/)
411 .ENDIF # "$(OS)"=="SOLARIS" && "$(product)"=="full" && "$(debug)"==""
412 @$(IFEXIST) $(@:s/.obj/.o/) $(THEN) $(TOUCH) $@ $(FI)
413 .ELSE
414 @@-$(RM) $@
415 .IF "$(COM)"=="GCC"
416 $(COMMAND_ECHO)$(CC) $(CFLAGS) $(INCLUDE_C) $(CFLAGSCC) $(CFLAGSSLO) $(CDEFS) $(CDEFSSLO) $(CDEFSMT) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ)$(SLO)/$*.obj $*.c
417 .ELSE
418 $(COMMAND_ECHO)$(CC) $(CFLAGS) $(INCLUDE_C) $(CFLAGSCC) $(CFLAGSSLO) $(CDEFS) $(CDEFSSLO) $(CDEFSMT) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ)$(SLO)/$*.obj $*.c
419 .ENDIF
420 .ENDIF
421 .IF "$(nodep)"==""
422 $(COMMAND_ECHO)$(MAKEDEPEND) @$(mktmp -f - -p$(SLO) $(MKDEPFLAGS) $(CDEFS) $(CDEFSSLO) $(CDEFSMT) $< ) > $(MISC)/s_$(@:f:s/.obj/.dpcc/)
423 @noop $(assign DEPS_MADE+:=s_$(@:f:s/.obj/.dpcc/))
424 .ENDIF # "$(nodep)"==""
426 # Objective-C files
427 $(OBJ)/%.obj : %.m
428 .IF "$(VERBOSE)" == "TRUE"
429 @echo ------------------------------
430 .ENDIF
431 @echo Compiling: $(PRJNAME)/$(PATH_IN_MODULE)/$<
432 .IF "$(OS)"=="MACOSX"
433 .IF "$(TEST)"!=""
434 $(COMMAND_ECHO)$(objc) $(CFLAGS) $(INCLUDE_C) $(CFLAGSCC) $(OBJCFLAGS) $(CFLAGSOBJ) $(CDEFS) $(CDEFSOBJ) -E $(CFLAGSAPPEND) $(CFLAGSOUTOBJ) $(OBJ)/$*.o $*.m
435 .ELSE
436 @$(RM) $@ $(@:s/.obj/.o/)
437 $(COMMAND_ECHO)$(objc) $(CFLAGS) $(INCLUDE_C) $(CFLAGSCC) $(OBJCFLAGS) $(CFLAGSOBJ) $(CDEFS) $(CDEFSOBJ) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ) $(OBJ)/$*.o $*.m
438 @$(IFEXIST) $(@:s/.obj/.o/) $(THEN) $(TOUCH) $@ $(FI)
439 .ENDIF
440 .ELSE # "$(OS)"=="MACOSX"
441 @echo "No recipe for compiling Objective-C files is available for this platform"
442 .ENDIF "$(OS)"=="MACOSX"
444 # Objective-C files
445 $(OBJ)/%.obj : $(MISC)/%.m
446 .IF "$(VERBOSE)" == "TRUE"
447 @echo ------------------------------
448 .ENDIF
449 @echo Compiling: $(PRJNAME)/$(OUTPATH)/misc/$(<:f)
450 .IF "$(OS)"=="MACOSX"
451 @$(RM) $@ $(@:s/.obj/.o/)
452 $(COMMAND_ECHO)$(objc) $(CFLAGS) $(INCLUDE_C) $(CFLAGSCC) $(OBJCFLAGS) $(CFLAGSOBJ) $(CDEFS) $(CDEFSOBJ) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ) $(OBJ)/$*.o $(MISC)/$*.m
453 @$(IFEXIST) $(@:s/.obj/.o/) $(THEN) $(TOUCH) $@ $(FI)
454 .ELSE # "$(OS)"=="MACOSX"
455 @echo "No recipe for compiling Objective-C files is available for this platform"
456 .ENDIF "$(OS)"=="MACOSX"
458 # Objective-C files
459 $(SLO)/%.obj : $(MISC)/%.m
460 .IF "$(VERBOSE)" == "TRUE"
461 @echo ------------------------------
462 .ENDIF
463 @echo Compiling: $(PRJNAME)/$(OUTPATH)/misc/$(<:f)
464 .IF "$(OS)"=="MACOSX"
465 @$(RM) $@ $(@:s/.obj/.o/)
466 $(COMMAND_ECHO)$(objc) $(CFLAGS) $(INCLUDE_C) $(CFLAGSCC) $(OBJCFLAGS) $(CFLAGSSLO) $(CDEFS) $(CDEFSSLO) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ) $(SLO)/$*.o $(MISC)/$*.m
467 @$(IFEXIST) $(@:s/.obj/.o/) $(THEN) $(TOUCH) $@ $(FI)
468 .ELSE # "$(OS)"=="MACOSX"
469 @echo "No recipe for compiling Objective-C files is available for this platform"
470 .ENDIF "$(OS)"=="MACOSX"
472 # Objective-C files
473 $(SLO)/%.obj : %.m
474 .IF "$(VERBOSE)" == "TRUE"
475 @echo ------------------------------
476 .ENDIF
477 @echo Compiling: $(PRJNAME)/$(PATH_IN_MODULE)/$<
478 .IF "$(OS)"=="MACOSX"
479 @$(RM) $@ $(@:s/.obj/.o/)
480 $(COMMAND_ECHO)$(objc) $(CFLAGS) $(INCLUDE_C) $(CFLAGSCC) $(OBJCFLAGS) $(CFLAGSSLO) $(CDEFS) $(CDEFSSLO) $(CDEFSMT) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ) $(SLO)/$*.o $*.m
481 @$(IFEXIST) $(@:s/.obj/.o/) $(THEN) $(TOUCH) $@ $(FI)
482 .ELSE # "$(OS)"=="MACOSX"
483 @echo "No recipe for compiling Objective-C files is available for this platform"
484 .ENDIF "$(OS)"=="MACOSX"
486 # dependencies c / c++
488 not_existing/s_%.dpcc : %.c;@noop $(assign all_local_slo+:=$<)
489 not_existing/o_%.dpcc : %.c;@noop $(assign all_local_obj+:=$<)
491 # Objective-C++ files
492 $(OBJ)/%.obj : %.mm
493 .IF "$(VERBOSE)" == "TRUE"
494 @echo ------------------------------
495 .ENDIF
496 @echo Compiling: $(PRJNAME)/$(PATH_IN_MODULE)/$<
497 .IF "$(OS)"=="MACOSX"
498 .IF "$(TEST)"!=""
499 $(COMMAND_ECHO)$(objcpp) $(CFLAGS) $(INCLUDE) $(CFLAGSCC) $(OBJCXXFLAGS) $(CFLAGSOBJ) $(CDEFS) $(CDEFSOBJ) -E $(CFLAGSAPPEND) $(CFLAGSOUTOBJ) $(OBJ)/$*.o $*.mm
500 .ELSE
501 @$(RM) $@ $(@:s/.obj/.o/)
502 $(COMMAND_ECHO)$(objcpp) $(CFLAGS) $(INCLUDE) $(CFLAGSCC) $(OBJCXXFLAGS) $(CFLAGSOBJ) $(CDEFS) $(CDEFSOBJ) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ) $(OBJ)/$*.o $*.mm
503 @$(IFEXIST) $(@:s/.obj/.o/) $(THEN) $(TOUCH) $@ $(FI)
504 .ENDIF
505 .IF "$(nodep)"==""
506 $(COMMAND_ECHO)$(MAKEDEPEND) @$(mktmp -f - -p$(OBJ) $(MKDEPFLAGS) $(CDEFS) $(CDEFSOBJ) $(CDEFSMT) $< ) > $(MISC)/o_$(@:f:s/.obj/.dpcc/)
507 @noop $(assign DEPS_MADE+:=o_$(@:f:s/.obj/.dpcc/))
508 .ENDIF # "$(nodep)"==""
509 .ELSE # "$(OS)"=="MACOSX"
510 @echo "No recipe for compiling Objective-C++ files is available for this platform"
511 .ENDIF # "$(OS)"=="MACOSX"
513 # Objective-C++ files
514 $(OBJ)/%.obj : $(MISC)/%.mm
515 .IF "$(VERBOSE)" == "TRUE"
516 @echo ------------------------------
517 .ENDIF
518 @echo Compiling: $(PRJNAME)/$(OUTPATH)/misc/$(<:f)
519 .IF "$(OS)"=="MACOSX"
520 @$(RM) $@ $(@:s/.obj/.o/)
521 $(COMMAND_ECHO)$(objcpp) $(CFLAGS) $(INCLUDE) $(CFLAGSCXX) $(OBJCXXFLAGS) $(CFLAGSOBJ) $(CDEFS) $(CDEFSOBJ) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ) $(OBJ)/$*.o $(MISC)/$*.mm
522 @$(IFEXIST) $(@:s/.obj/.o/) $(THEN) $(TOUCH) $@ $(FI)
523 .IF "$(nodep)"==""
524 $(COMMAND_ECHO)$(MAKEDEPEND) @$(mktmp -f - -p$(OBJ) $(MKDEPFLAGS) $(CDEFS) $(CDEFSOBJ) $(CDEFSMT) $< ) > $(MISC)/o_$(@:f:s/.obj/.dpcc/)
525 @noop $(assign DEPS_MADE+:=o_$(@:f:s/.obj/.dpcc/))
526 .ENDIF # "$(nodep)"==""
527 .ELSE # "$(OS)"=="MACOSX"
528 @echo "No recipe for compiling Objective-C++ files is available for this platform"
529 .ENDIF # "$(OS)"=="MACOSX"
531 # Objective-C++ files
532 $(SLO)/%.obj : $(MISC)/%.mm
533 .IF "$(VERBOSE)" == "TRUE"
534 @echo ------------------------------
535 .ENDIF
536 @echo Compiling: $(PRJNAME)/$(OUTPATH)/misc/$(<:f)
537 .IF "$(OS)"=="MACOSX"
538 @$(RM) $@ $(@:s/.obj/.o/)
539 $(COMMAND_ECHO)$(objcpp) $(CFLAGS) $(INCLUDE) $(CFLAGSCXX) $(OBJCXXFLAGS) $(CFLAGSSLO) $(CDEFS) $(CDEFSSLO) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ) $(SLO)/$*.o $(MISC)/$*.mm
540 @$(IFEXIST) $(@:s/.obj/.o/) $(THEN) $(TOUCH) $@ $(FI)
541 .IF "$(nodep)"==""
542 $(COMMAND_ECHO)$(MAKEDEPEND) @$(mktmp -f - -p$(SLO) $(MKDEPFLAGS) $(CDEFS) $(CDEFSSLO) $(CDEFSMT) $< ) > $(MISC)/s_$(@:f:s/.obj/.dpcc/)
543 @noop $(assign DEPS_MADE+:=s_$(@:f:s/.obj/.dpcc/))
544 .ENDIF # "$(nodep)"==""
545 .ELSE # "$(OS)"=="MACOSX"
546 @echo "No recipe for compiling Objective-C++ files is available for this platform"
547 .ENDIF # "$(OS)"=="MACOSX"
549 # Objective-C++ files
550 $(SLO)/%.obj : %.mm
551 .IF "$(VERBOSE)" == "TRUE"
552 @echo ------------------------------
553 .ENDIF
554 @echo Compiling: $(PRJNAME)/$(PATH_IN_MODULE)/$<
555 .IF "$(OS)"=="MACOSX"
556 @$(RM) $@ $(@:s/.obj/.o/)
557 $(COMMAND_ECHO)$(objcpp) $(CFLAGS) $(INCLUDE) $(CFLAGSCXX) $(OBJCXXFLAGS) $(CFLAGSSLO) $(CDEFS) $(CDEFSSLO) $(CDEFSMT) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ) $(SLO)/$*.o $*.mm
558 @$(IFEXIST) $(@:s/.obj/.o/) $(THEN) $(TOUCH) $@ $(FI)
559 .IF "$(nodep)"==""
560 $(COMMAND_ECHO)$(MAKEDEPEND) @$(mktmp -f - -p$(SLO) $(MKDEPFLAGS) $(CDEFS) $(CDEFSSLO) $(CDEFSMT) $< ) > $(MISC)/s_$(@:f:s/.obj/.dpcc/)
561 @noop $(assign DEPS_MADE+:=s_$(@:f:s/.obj/.dpcc/))
562 .ENDIF # "$(nodep)"==""
563 .ELSE # "$(OS)"=="MACOSX"
564 @echo "No recipe for compiling Objective-C++ files is available for this platform"
565 .ENDIF # "$(OS)"=="MACOSX"
567 $(MISC)/%.dpslo :
568 @echo "Making: " $(@:f)
569 @@$(RM) $@
570 @@-$(CDD) $(MISC) && $(!null,$(all_local_slo) $(TYPE:s/+//) echo #) $(foreach,i,$(all_local_slo:b:+".dpcc") s_$(i)) > $(@:f)
571 @@-$(CDD) $(MISC) && $(!null,$(all_misc_slo) $(TYPE:s/+//) echo #) $(foreach,i,$(all_misc_slo:b:+".dpcc") s_$(i)) >> $(@:f)
572 @$(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)) >> $@
573 @$(TYPE) $(mktmp $(TARGET)_known_dpcc+=$(all_local_slo:b:+".dpcc":^"s_") $(all_misc_slo:b:+".dpcc":^"s_")) >> $@
575 $(MISC)/%.dpobj :
576 @echo "Making: " $(@:f)
577 @@$(RM) $@
578 @@-$(CDD) $(MISC) && $(!null,$(all_local_obj) $(TYPE:s/+//) echo #) $(foreach,i,$(all_local_obj:b:+".dpcc") o_$(i)) > $(@:f)
579 @@-$(CDD) $(MISC) && $(!null,$(all_misc_obj) $(TYPE:s/+//) echo #) $(foreach,i,$(all_misc_obj:b:+".dpcc") o_$(i)) >> $(@:f)
580 @$(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)) >> $@
581 @$(TYPE) $(mktmp $(TARGET)_known_dpcc+=$(all_local_obj:b:+".dpcc":^"s_") $(all_misc_obj:b:+".dpcc":^"s_")) >> $@
583 # see also %.dpslo
584 not_existing/s_%.dpcc : %.cxx;@noop $(assign all_local_slo+:=$<)
585 not_existing/o_%.dpcc : %.cxx;@noop $(assign all_local_obj+:=$<)
587 not_existing/s_%.dpcc : %.cpp;@noop $(assign all_local_slo+:=$<)
588 not_existing/o_%.dpcc : %.cpp;@noop $(assign all_local_obj+:=$<)
590 not_existing/s_%.dpcc : $(MISC)/%.c;@noop $(assign all_misc_slo+:=$<)
591 not_existing/o_%.dpcc : $(MISC)/%.c;@noop $(assign all_misc_obj+:=$<)
593 not_existing/s_%.dpcc : $(MISC)/%.cxx;@noop $(assign all_misc_slo+:=$<)
594 not_existing/o_%.dpcc : $(MISC)/%.cxx;@noop $(assign all_misc_obj+:=$<)
596 not_existing/s_%.dpcc : %.mm;@noop $(assign all_local_slo+:=$<)
597 not_existing/o_%.dpcc : %.mm;@noop $(assign all_local_obj+:=$<)
599 not_existing/s_%.dpcc : $(MISC)/%.mm;@noop $(assign all_misc_slo+:=$<)
600 not_existing/o_%.dpcc : $(MISC)/%.mm;@noop $(assign all_misc_obj+:=$<)
602 # dependencies objective-c
604 $(MISC)/s_%.dpcc : %.m
605 @@-$(RM) $@
606 $(COMMAND_ECHO)$(MAKEDEPEND) -f - -p$(SLO) $(MKDEPFLAGS) $(CDEFS) $(CDEFSSLO) $(CDEFSMT) $< > $@
607 @echo $@ : $(SLO)/$(<:b).obj >> $@
609 $(MISC)/o_%.dpcc : %.m
610 @@-$(RM) $@
611 $(COMMAND_ECHO)$(MAKEDEPEND) -f - -p$(OBJ) $(MKDEPFLAGS) $(CDEFS) $(CDEFSOBJ) $(CDEFSMT) $< > $@
612 @echo $@ : $(OBJ)/$(<:b).obj >> $@
614 $(MISC)/s_%.dpcc : $(MISC)/%.m
615 @@-$(RM) $@
616 .IF "$(GUI)"=="UNX"
617 $(COMMAND_ECHO)$(MAKEDEPEND) -f - -p$(SLO) $(MKDEPFLAGS) $(CDEFS) $(CDEFSSLO) $(CDEFSMT) $< | sed s\#$(MISC)/\#\# > $@
618 .ELSE # "$(GUI)"=="UNX"
619 $(COMMAND_ECHO)$(MAKEDEPEND) -f - -p$(SLO) $(MKDEPFLAGS) $(CDEFS) $(CDEFSSLO) $(CDEFSMT) $< | $(SED) s/$(MISC:s/\/\\/)\\// > $@
620 .ENDIF # "$(GUI)"=="UNX"
621 @echo $@ : $(SLO)/$(<:b).obj >> $@
623 $(MISC)/o_%.dpcc : $(MISC)/%.m
624 @@-$(RM) $@
625 .IF "$(GUI)"=="UNX"
626 $(COMMAND_ECHO)$(MAKEDEPEND) -f - -p$(OBJ) $(MKDEPFLAGS) $(CDEFS) $(CDEFSOBJ) $(CDEFSMT) $< | sed s\#$(MISC)/\#\# > $@
627 .ELSE # "$(GUI)"=="UNX"
628 $(COMMAND_ECHO)$(MAKEDEPEND) -f - -p$(OBJ) $(MKDEPFLAGS) $(CDEFS) $(CDEFSOBJ) $(CDEFSMT) $< | $(SED) s/$(MISC:s/\/\\/)\\// > $@
629 .ENDIF # "$(GUI)"=="UNX"
630 @echo $@ : $(OBJ)/$(<:b).obj >> $@
632 # dependency dummy for *.s files
634 $(MISC)/s_%.dpcc : %.s
635 @@-$(RM) $@
636 $(COMMAND_ECHO)$(MAKEDEPEND) -f - -p$(SLO) $(MKDEPFLAGS) $(CDEFS) $(CDEFSSLO) $(CDEFSMT) $< > $@
637 @echo $@ : $(SLO)/$(<:b).obj >> $@
639 $(MISC)/s_%.dpcc : $(SLO)/%.obj
640 @noop $(assign DEPS_MISSING+:=$(@:f))
642 $(MISC)/o_%.dpcc : $(OBJ)/%.obj
643 @noop $(assign DEPS_MISSING+:=$(@:f))
645 # dependencies script files
647 $(MISC)/%.dpsc :
648 @@-$(RM) $@
649 @@-$(MKDIR) $(MISC)/{$(subst,$(@:d:d:d), $(@:d:d))}
650 $(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 > $@
651 @echo $@ : $(PAR)/{$(subst,$(@:d:d:d), $(@:d:d))}/$(*:b).par >> $@
652 @echo $(PAR)/{$(subst,$(@:d:d:d), $(@:d:d))}/$(*:b).par : $(*:b).scp >> $@
654 # dependencies rc files (native resources for windows)
656 $(MISC)/%.dprc :
657 @@-$(RM) $@
658 $(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 >> $@
659 # @echo $@ : $(RES)/{$(subst,$(@:d:d:d), $(@:d:d))}/$(*:b).res >> $@
660 @echo $@ : $(RES)/$(*:b).res >> $@
662 $(MISC)/%.dpr :
663 .IF "$(VERBOSE)" == "TRUE"
664 @echo ------------------------------
665 .ELSE
666 @echo > /dev/null
667 .ENDIF
668 .IF "$(nodep)"==""
669 @echo "Making: " $(@:f)
670 @@-$(RM) $@
671 $(COMMAND_ECHO)dmake $(MFLAGS) $(MAKEFILE) $(CALLMACROS) NO_HIDS=true make_srs_deps=true $(DEPSRSFILES)
672 $(COMMAND_ECHO)-$(TYPE) $(MISC)/$(TARGET).*.dprr >> $@
673 .ENDIF # "$(nodep)"==""
675 $(MISC)/%.dpz :
676 .IF "$(VERBOSE)" == "TRUE"
677 @echo ------------------------------
678 .ELSE
679 @echo > /dev/null
680 .ENDIF
681 .IF "$(nodep)"==""
682 @echo "Making: " $(@:f)
683 @@-$(RM) $@
684 $(COMMAND_ECHO)dmake $(MFLAGS) $(MAKEFILE) $(CALLMACROS) make_zip_deps=true $(ZIPDEPFILES)
685 $(COMMAND_ECHO)$(TYPE) $(ZIPDEPFILES) $(mktmp $(NULL)) | grep -v "CVS" | grep -v "\.svn" >> $@
686 @echo zipdep_langs=$(alllangiso) >> $@
687 @@-$(RM) $(ZIPDEPFILES)
688 .ENDIF # "$(nodep)"==""
690 # Dependencies fuer java - Files
692 $(MISC)/%.dpj :
693 @echo "Making: " $(@:f)
694 .IF "$(nodep)"!=""
695 .IF "$(GUI)"=="UNX"
696 @echo > $@
697 .ELSE
698 @$(ECHONL) > $@
699 .ENDIF
700 .ELSE # "$(ndep)"==""
701 .IF "$(GUI)"=="UNX"
702 @echo $(shell @$(STARDEP) @$(mktmp -o $@ -i $(CLASSDIR) $(foreach,i,$(JAVADEPINCLUDES:s/:/ /) -i $i) $(JAVACLASSFILES)))
703 .ELSE
704 @echo javadeps
705 @echo $(shell @$(STARDEP) @$(mktmp -o $@ -i $(CLASSDIR) $(foreach,i,$(JAVADEPINCLUDES:s/;/ /) -i $i) $(JAVACLASSFILES)))
706 .ENDIF
707 .ENDIF # "$(nodep)"==""
709 $(SLO)/%.obj : %.asm
710 .IF "$(VERBOSE)" == "TRUE"
711 @echo ------------------------------
712 .ENDIF
713 @echo Compiling: $(PRJNAME)/$(PATH_IN_MODULE)/$<
714 .IF "$(COM)"=="GCC"
715 .IF "$(ASM)"=="ml"
716 $(COMMAND_ECHO)$(ASM) $(AFLAGS) -D$(COM) /Fo$(SLO)/$*.obj $*.asm
717 @@-$(RM) $*.err
718 .ELSE # "$(ASM)"=="ml"
719 @@-$(RM) $@
720 $(COMMAND_ECHO)$(ASM) $(AFLAGS) $*.asm,$(SLO)/$*.obj;
721 .ENDIF # "$(ASM)"=="ml"
722 .ELSE
723 .IF "$(COM)"=="WTC"
724 $(COMMAND_ECHO)$(ASM) $(AFLAGS) -D$(COM) $*.asm -fo=$(SLO)/$*.obj
725 @-$(IFEXIST) $*.err $(THEN) $(RM:s/+//) $*.err $(FI)
726 .ELSE
727 .IF "$(COM)"=="MSC"
728 .IF "$(ASM)"=="ml"
729 $(COMMAND_ECHO)$(ASM) $(AFLAGS) -D$(COM) /Fo$(SLO)/$*.obj $*.asm
730 @-$(IFEXIST) $*.err $(THEN) $(RM:s/+//) $*.err $(FI)
731 .ELSE # "$(ASM)"=="ml"
732 @@-$(RM) $@
733 $(COMMAND_ECHO)$(ASM) $(AFLAGS) $*.asm,$(SLO)/$*.obj;
734 .ENDIF # "$(ASM)"=="ml"
735 .ENDIF "$(COM)"=="MSC"
736 .ENDIF
737 .ENDIF
739 $(OBJ)/%.obj : %.asm
740 .IF "$(VERBOSE)" == "TRUE"
741 @echo ------------------------------
742 .ENDIF
743 @echo Compiling: $(PRJNAME)/$(PATH_IN_MODULE)/$<
744 .IF "$(COM)"=="GCC"
745 .IF "$(ASM)"=="ml"
746 $(COMMAND_ECHO)$(ASM) $(AFLAGS) -D$(COM) /Fo$(OBJ)/$*.obj $*.asm
747 @@-$(RM) $*.err
748 .ELSE # "$(ASM)"=="ml"
749 @@-$(RM) $@
750 $(COMMAND_ECHO)$(ASM) $(AFLAGS) $*.asm,$(OBJ)/$*.obj;
751 .ENDIF # "$(ASM)"=="ml"
752 .ELSE
753 .IF "$(COM)"=="MSC"
754 .IF "$(ASM)"=="ml"
755 $(COMMAND_ECHO)$(ASM) $(AFLAGS) -D$(COM) /Fo$(SLO)/$*.obj $*.asm
756 @-$(IFEXIST) $*.err $(THEN) $(RM:s/+//) $*.err $(FI)
757 .ELSE # "$(ASM)"=="ml"
758 @$(IFEXIST) $@ $(THEN) $(RM:s/+//) $@ >& $(NULLDEV) $(FI)
759 $(COMMAND_ECHO)$(ASM) $(AFLAGS) $*.asm,$(OBJ)/$*.obj;
760 .ENDIF # "$(ASM)"=="ml"
761 .ENDIF "$(COM)"=="MSC"
762 .ENDIF
764 $(OUT)/ucr/$(IDLPACKAGE)/%.urd : %.idl
765 @noop $(assign all_outdated_idl+:=$<)
767 $(OUT)/ucrdoc/$(IDLPACKAGE)/%.urd : %.idl
768 @noop $(assign all_outdated_doc_idl+:=$<)
770 # generate hid files
771 $(SRS)/%.hid : %.src
772 .IF "$(VERBOSE)" == "TRUE"
773 @echo ------------------------------
774 .ENDIF
775 @echo Compiling: $(PRJNAME)/$(PATH_IN_MODULE)/$(*:f).src
776 $(COMMAND_ECHO)$(AUGMENT_LIBRARY_PATH) $(PERL) $(SOLARENV)/bin/mhids.pl $*.src $(SRS) $(PRJNAME) $(CDEFS) $(INCLUDE)
778 # make *.xml descriptions available in $(MISC)
779 $(MISC)/%$($(WINVERSIONNAMES)_MAJOR).xml : %.xml
780 $(COMMAND_ECHO)$(COPY) $< $@
782 # dummy rule to make sure xml file is in place when used in settings.mk
783 $(MISC)/%.mk : $(MISC)/%$($(WINVERSIONNAMES)_MAJOR).xml
784 @$(TOUCH) $@
785 @echo XML2MK_FILES += $(@:b) >> $@
787 #generate descriptions from xml
788 $(MISC)/%$($(WINVERSIONNAMES)_MAJOR)_description.cxx : $(MISC)/%$($(WINVERSIONNAMES)_MAJOR).xml
789 xml2cmp -func $(MISC)/$*$($(WINVERSIONNAMES)_MAJOR)_description.cxx $<
791 #generate private rdb
792 $(BIN)/%.rdb: $(MISC)/%$($(WINVERSIONNAMES)_MAJOR).xml
793 $(COMMAND_ECHO)$(RDBMAKER) -BUCR -O$(BIN)/$*.rdb @$(mktmp $(foreach,i,$($(@:b)_XML2CMPTYPES) -T$i ) $(COMPRDB))
795 #strip dos lineends
796 $(MISC)/%.sh : %.sh
797 @@-$(RM) -f $@
798 @tr -d "\015" < $< > $@
800 # merge targets
801 .IF "$(WITH_LANG)"!=""
802 $(COMMONMISC)/$(TARGET)/%.ulf : %.ulf
803 @echo "Making: " $(@:f)
804 $(COMMAND_ECHO)-$(MKDIR) $(@:d)
805 $(COMMAND_ECHO)-$(RM) $@
806 $(COMMAND_ECHO)$(ULFEX) $(ULFEX_VERBOSITY) -p $(PRJNAME) -i $(@:f) -o $(@).$(INPATH) -m $(LOCALIZESDF) -l all
807 $(COMMAND_ECHO)$(RENAME) $@.$(INPATH) $@
808 $(COMMAND_ECHO)-$(RM) $@.$(INPATH)
810 $(COMMONMISC)/$(TARGET)/%.xrb : %.xrb
811 $(COMMAND_ECHO)-$(MKDIR) $(@:d)
812 $(COMMAND_ECHO)-$(RM) $@
813 $(COMMAND_ECHO)$(XMLEX) -t xrb -p $(PRJNAME) -i $(@:f) -o $(@).$(INPATH) -m $(LOCALIZESDF) -l all
814 $(COMMAND_ECHO)$(RENAME) $@.$(INPATH) $@
815 $(COMMAND_ECHO)-$(RM) $@.$(INPATH)
817 $(COMMONMISC)/$(MYPATH)/%.xrm : %.xrm
818 $(COMMAND_ECHO)-$(MKDIRHIER) $(@:d)
819 $(COMMAND_ECHO)-$(RM) $@
820 @echo trysdf = $(TRYSDF)
821 $(COMMAND_ECHO)$(XRMEX) -p $(PRJNAME) -i $(@:f) -o $(@).$(INPATH) -m $(LOCALIZESDF) -l all
822 $(COMMAND_ECHO)$(RENAME) $@.$(INPATH) $@
823 $(COMMAND_ECHO)-$(RM) $@.$(INPATH)
825 #$(COMMONMISC)/$(TARGET)/%.xrm : %.xrm
826 # -$(MKDIRHIER) $(@:d)
827 # -$(RM) $@
828 # $(XRMEX) -p $(PRJNAME) -i $(@:f) -o $(@).$(INPATH) -m $(LOCALIZESDF) -l all
829 # $(RENAME) $@.$(INPATH) $@
830 # -$(RM) $@.$(INPATH)
832 #$(COMMONMISC)/%.xrm : %.xrm
833 # -$(MKDIR) $(@:d)
834 # -$(RM) $@
835 # $(XRMEX) -p $(PRJNAME) -i $(@:f) -o $(@).$(INPATH) -m $(LOCALIZESDF) -l all
836 # $(RENAME) $@.$(INPATH) $@
837 # -$(RM) $@.$(INPATH)
838 .ENDIF # "$(WITH_LANG)"!=""
840 .IF "$(WITH_LANG)"!=""
841 $(COMMONMISC)/$(TARGET)/%.jlf : $$(@:db).ulf
842 .ELSE # "$(WITH_LANG)"!=""
843 $(COMMONMISC)/$(TARGET)/%.jlf : $$(@:b).ulf
844 .ENDIF # "$(WITH_LANG)"!=""
845 @-$(MKDIRHIER) $(@:d)
846 $(COMMAND_ECHO)-$(RM) $@
847 $(COMMAND_ECHO)$(ULFCONV) -o $@.$(INPATH) $<
848 $(COMMAND_ECHO)$(RENAME) $@.$(INPATH) $@
849 $(COMMAND_ECHO)-$(RM) $@.$(INPATH)
851 .IF "$(WITH_LANG)"!=""
852 $(COMMONMISC)/$(TARGET)/%.mlf : $$(@:db).ulf
853 .ELSE # "$(WITH_LANG)"!=""
854 $(COMMONMISC)/$(TARGET)/%.mlf : $$(@:b).ulf
855 .ENDIF # "$(WITH_LANG)"!=""
856 @-$(MKDIRHIER) $(@:d)
857 @-$(RM) $@
858 @$(ULFCONV) -o $@.$(INPATH) -t $(SOLARBINDIR)/msi-encodinglist.txt $<
859 @$(RENAME) $@.$(INPATH) $@
860 @-$(RM) $@.$(INPATH)
862 .IF "$(WITH_LANG)"!=""
863 $(COMMONMISC)/$(TARGET)/%.uulf : $$(@:db).ulf
864 .ELSE # "$(WITH_LANG)"!=""
865 $(COMMONMISC)/$(TARGET)/%.uulf : $$(@:b).ulf
866 .ENDIF # "$(WITH_LANG)"!=""
867 @-$(MKDIRHIER) $(@:d)
868 $(COMMAND_ECHO)-$(RM) $@
869 @$(COPY) $< $@.$(INPATH)
870 @$(RENAME) $@.$(INPATH) $@
871 @-$(RM) $@.$(INPATH)
873 # This is still needed?????
874 $(COMMONMISC)/$(TARGET)/%.xrm : %.xrm
875 $(COMMAND_ECHO)-$(MKDIR) $(@:d)
876 $(COMMAND_ECHO)-$(RM) $@
877 $(COMMAND_ECHO)$(XRMEX) -p $(PRJNAME) -i $(@:f) -o $(@).$(INPATH) -m $(LOCALIZESDF) -l all
878 $(COMMAND_ECHO)$(RENAME) $@.$(INPATH) $@
879 $(COMMAND_ECHO)-$(RM) $@.$(INPATH)
881 # dirty hack
882 # if local *.sdf file is missing
883 #%.sdf:
884 # echo > $@