Changeset 206 for trunk/kBuild/tools/GCC3OMF.kmk
- Timestamp:
- Dec 29, 2004, 8:43:09 PM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kBuild/tools/GCC3OMF.kmk
r187 r206 130 130 # @param $(dirdep) Directory creation dependency. 131 131 # @param $(deps) Other dependencies. 132 # @param $(othersrc) Unhandled sources. 132 133 # 133 134 # @param $(outbase) Output basename (full). Use this for list files and such. 134 135 define TOOL_GCC3OMF_LINK_LIBRARY 135 #$ (warning dbg: TOOL_GCC3OMF_LINK_LIBRARY: target=$(target) lib=$(lib) objs=$(objs) deps=$(deps) flags=$(flags) dirdep=$(dirdep) o utbase=$(outbase))136 $(lib): $(dirdep) $(objs) $(deps) 136 #$ (warning dbg: TOOL_GCC3OMF_LINK_LIBRARY: target=$(target) lib=$(lib) objs=$(objs) deps=$(deps) flags=$(flags) dirdep=$(dirdep) othersrc=$(othersrc) outbase=$(outbase)) 137 $(lib): $(dirdep) $(objs) $(deps) $(filter %.a %.lib,$(othersrc)) 137 138 $(call MSG_L1,Creating Library $$@) 138 139 $(RM) -f $$@ 139 $(TOOL_GCC3OMF_AR) $(flags) $$@ $(objs) 140 $(TOOL_GCC3OMF_AR) $(flags) $$@ $(objs) $(filter %.a %.lib,$(othersrc)) 140 141 141 142 endef … … 158 159 define TOOL_GCC3OMF_LINK_PROGRAM 159 160 #$ (warning dbg: TOOL_GCC3OMF_LINK_PROGRAM: target=$(target) exe=$(exe) objs=$(objs) libs=$(libs) deps=$(deps) flags=$(flags) dirdep=$(dirdep) deffile=$(deffile) outbase=$(outbase)) 160 $(exe): $(dirdep) $(objs) $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) $(deps) 161 $(exe): $(dirdep) $(objs) $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) $(deps) $(filter %.def, $(othersrc)) 161 162 $(call MSG_L1,Creating Program $$@) 162 163 ifneq ($(custom_pre),) … … 164 165 endif 165 166 $(TOOL_GCC3OMF_LD) $(flags) -o $$@ $(objs) \ 166 $(foreach p,$(libpath), -L$(p)) \ 167 $(foreach lib,$(libs), $(if $(findstring $(lib),$(subst /,x,$(lib))), -l$(patsubst lib%,%,$(basename $(lib))), $(lib))) 167 $(filter %.def, $(othersrc)) \ 168 $(foreach p,$(libpath), -L$(p)) \ 169 $(foreach lib,$(libs), $(if $(findstring $(lib),$(subst /,x,$(lib))), -l$(patsubst lib%,%,$(basename $(lib))), $(lib))) 168 170 ifneq ($(custom_post),) 169 171 $(eval $(custom_post)) … … 220 222 define TOOL_GCC3OMF_LINK_SYSMOD 221 223 #$ (warning dbg: TOOL_GCC3OMF_LINK_SYSMOD: target=$(target) sys=$(sys) objs=$(objs) libs=$(libs) deps=$(deps) flags=$(flags) dirdep=$(dirdep) othersrc=$(othersrc) outbase=$(outbase)) 222 $(sys): $(dirdep) $(objs) $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) $(deps) 224 $(sys): $(dirdep) $(objs) $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) $(deps) $(filter %.def, $(othersrc)) 223 225 $(call MSG_L1,Creating Program $$@) 224 226 ifneq ($(custom_pre),) … … 226 228 endif 227 229 $(TOOL_GCC3OMF_LD_SYSMOD) $(TOOL_GCC3OMF_LDFLAGS.sysmod) $(flags) -o $$@ $(objs) \ 230 $(filter %.def, $(othersrc)) \ 228 231 $(foreach p,$(libpath), -L$(p)) \ 229 232 $(foreach lib,$(libs), $(if $(findstring $(lib),$(subst /,x,$(lib))), -l$(patsubst lib%,%,$(basename $(lib))), $(lib)))
Note:
See TracChangeset
for help on using the changeset viewer.