Changeset 83 for trunk/kBuild/tools/VCC70.kmk
- Timestamp:
- Jun 1, 2004, 4:36:56 PM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kBuild/tools/VCC70.kmk
r82 r83 50 50 TOOL_VCC70_ASOBJSUFF := .obj 51 51 52 TOOL_VCC70_AR := $(EXEC_X86_WIN32) $(PATH_TOOL_VCC70)/bin/ ar$(HOSTSUFF_EXE)52 TOOL_VCC70_AR := $(EXEC_X86_WIN32) $(PATH_TOOL_VCC70)/bin/lib.exe 53 53 TOOL_VCC70_ARFLAGS := -nologo 54 54 TOOL_VCC70_ARLIBSUFF := .lib … … 78 78 $(TOOL_VCC70_CC) -c\ 79 79 $(flags) $(addprefix -I, $(incs)) $(addprefix -D, $(defs))\ 80 -Fo :$$@\80 -Fo$$@\ 81 81 $(PATH_CURRENT)/$(source) 82 82 … … 102 102 $(TOOL_VCC70_CXX) -c\ 103 103 $(flags) $(addprefix -I, $(incs)) $(addprefix -D, $(defs))\ 104 -Fo :$$@\104 -Fo$$@\ 105 105 $(PATH_CURRENT)/$(source) 106 106 … … 156 156 endef 157 157 158 159 ## Link system module (windows aka driver, linux aka kernel module) 160 # @param $(target) Normalized main target name. 161 # @param $(sys) System module name. 162 # @param $(objs) Object files to link together. 163 # @param $(libs) Libraries to search. 164 # @param $(libpath) Library search paths. 165 # @param $(flags) Flags. 166 # @param $(dirdep) Directory creation dependency. 167 # @param $(deps) Other dependencies. 168 # @param $(deffile) Definition file. (optional, PC only) 169 # @param $(custom_pre) Custom step invoked before linking. 170 # @param $(custom_post) Custom step invoked after linking. 171 # 172 # @param $(outbase) Output basename (full). Use this for list files and such. 173 define TOOL_VCC70_LINK_SYSMOD 174 $(warning dbg: TOOL_VCC70_LINK_SYSMOD: target=$(target) sys=$(sys) objs=$(objs) libs=$(libs) deps=$(deps) flags=$(flags) dirdep=$(dirdep) deffile=$(deffile) outbase=$(outbase)) 175 $(sys): $(dirdep) $(objs) $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) $(deps) 176 $(call MSG_L1,Creating Program $$@) 177 ifneq ($(custom_pre),) 178 $(eval $(custom_pre)) 179 endif 180 $(TOOL_VCC70_LD) $(flags) \ 181 /OUT:$$@ $(objs) \ 182 $(foreach lib,$(libs), $(if $(findstring $(lib),$(subst /,x,$(lib))), -l$(patsubst lib%,%,$(basename $(lib))), $(lib))) 183 ifneq ($(custom_post),) 184 $(eval $(custom_post)) 185 endif 186 187 endef 188
Note:
See TracChangeset
for help on using the changeset viewer.