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