Changeset 353 for trunk/kBuild/tools/MINGW32.kmk
- Timestamp:
- Dec 12, 2005, 4:36:07 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kBuild/tools/MINGW32.kmk
r300 r353 4 4 # kBuild Tool Config - MINGW32 GCC. 5 5 # 6 # Copyright (c) 2004 knut st. osmundsen <bird-srcspam@anduin.net>6 # Copyright (c) 2004-2005 knut st. osmundsen <bird-srcspam@anduin.net> 7 7 # 8 8 # … … 150 150 ## Link library 151 151 # @param $(target) Normalized main target name. 152 # @param $(lib) 152 # @param $(lib) Library name. 153 153 # @param $(objs) Object files to put in the library. 154 154 # @param $(flags) Flags. 155 155 # @param $(dirdep) Directory creation dependency. 156 # @param $(deps) 156 # @param $(deps) Other dependencies. 157 157 # 158 158 # @param $(outbase) Output basename (full). Use this for list files and such. … … 169 169 ## Link program 170 170 # @param $(target) Normalized main target name. 171 # @param $( exe)Program name.171 # @param $(out) Program name. 172 172 # @param $(objs) Object files to link together. 173 173 # @param $(libs) Libraries to search. … … 175 175 # @param $(flags) Flags. 176 176 # @param $(dirdep) Directory creation dependency. 177 # @param $(deps) 178 # @param $(othersrc) Unhandled sources.177 # @param $(deps) Other dependencies. 178 # @param $(othersrc) Unhandled sources. 179 179 # @param $(custom_pre) Custom step invoked before linking. 180 180 # @param $(custom_post) Custom step invoked after linking. … … 182 182 # @param $(outbase) Output basename (full). Use this for list files and such. 183 183 define TOOL_MINGW32_LINK_PROGRAM 184 #$ (warning dbg: TOOL_MINGW32_LINK_PROGRAM: target=$(target) exe=$(exe) objs=$(objs) libs=$(libs) deps=$(deps) flags=$(flags) dirdep=$(dirdep) deffile=$(deffile) outbase=$(outbase))185 $( exe): $(deps) $(objs) $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) | $(dirdep)184 #$ (warning dbg: TOOL_MINGW32_LINK_PROGRAM: target=$(target) out=$(out) objs=$(objs) libs=$(libs) deps=$(deps) flags=$(flags) dirdep=$(dirdep) deffile=$(deffile) outbase=$(outbase)) 185 $(out): $(deps) $(objs) $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) | $(dirdep) 186 186 $(call MSG_L1,Creating Program $$@) 187 187 ifneq ($(custom_pre),) … … 198 198 199 199 200 ## Link system module (windows aka driver, linux aka kernel module)201 # @param $(target) Normalized main target name. 202 # @param $( dll) System modulename.200 ## Link DLL. 201 # @param $(target) Normalized main target name. 202 # @param $(out) DLL name. 203 203 # @param $(objs) Object files to link together. 204 204 # @param $(libs) Libraries to search. … … 206 206 # @param $(flags) Flags. 207 207 # @param $(dirdep) Directory creation dependency. 208 # @param $(deps) 209 # @param $(othersrc) Unhandled sources.208 # @param $(deps) Other dependencies. 209 # @param $(othersrc) Unhandled sources. 210 210 # @param $(custom_pre) Custom step invoked before linking. 211 211 # @param $(custom_post) Custom step invoked after linking. … … 213 213 # @param $(outbase) Output basename (full). Use this for list files and such. 214 214 define TOOL_MINGW32_LINK_DLL 215 #$ (warning dbg: TOOL_MINGW32_LINK_DLL: target=$(target) dll=$(dll) objs=$(objs) libs=$(libs) deps=$(deps) flags=$(flags) dirdep=$(dirdep) othersrc=$(othersrc) outbase=$(outbase)) 216 $(dll): $(deps) $(call DIRDEP,$(PATH_LIB)) $(objs) $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) | $(dirdep) 215 #$ (warning dbg: TOOL_MINGW32_LINK_DLL: target=$(target) out=$(out) objs=$(objs) libs=$(libs) deps=$(deps) flags=$(flags) dirdep=$(dirdep) othersrc=$(othersrc) outbase=$(outbase)) 216 $(out) $(outbase).a $(outbase).exp: \ 217 $(deps) $(call DIRDEP,$(PATH_LIB)) $(objs) $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) | $(dirdep) 217 218 $(call MSG_L1,Creating Program $$@) 218 219 ifneq ($(custom_pre),) … … 220 221 endif 221 222 $(TOOL_MINGW32_DLLWRAP) $(flags) \ 222 --dllname=$( dll) \223 --dllname=$(out) \ 223 224 --output-exp=$(outbase).exp \ 224 225 --output-lib=$(outbase).a \ … … 234 235 $(eval $(custom_post)) 235 236 endif 236 _OUT_FILES += $(outbase). map $(outbase).a $(outbase).exp237 238 endef 239 237 _OUT_FILES += $(outbase).a $(outbase).exp 238 239 endef 240
Note:
See TracChangeset
for help on using the changeset viewer.