- Timestamp:
- Jun 2, 2004 1:09:58 PM (21 years ago)
- Location:
- trunk/kBuild
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kBuild/header.kmk
r83 r85 132 132 BUILD_TARGET_CPU := i586 133 133 134 # 135 # Cygwin kludge. 136 # 137 ifneq ($(patsubst /cygdrive/%,%,$(CURDIR)),$(CURDIR)) 138 CYGPATHMIXED = $(foreach path,$(1)\ 139 ,$(if $(patsubst /cygdrive/%,,$(path)),$(path),$(patsubst $(strip $(firstword $(subst /, ,$(patsubst /cygdrive/%,%,$(path)))))/%,$(strip $(firstword $(subst /, ,$(patsubst /cygdrive/%,%,$(path))))):/%,$(patsubst /cygdrive/%,%,$(path))))) 140 else 141 CYGPATHMIXED = $(1) 142 endif 134 143 135 144 # … … 138 147 PATH_CURRENT := $(CURDIR) 139 148 # Get the real root path. 140 PATH_ROOT := $( CURDIR)149 PATH_ROOT := $(PATH_CURRENT) 141 150 ifneq ($(DEPTH),.) 142 151 $(foreach d,$(subst /, ,$(DEPTH)), $(eval PATH_ROOT := $(patsubst %/,%,$(dir $(PATH_ROOT)))) ) -
trunk/kBuild/tools/VCC70.kmk
r84 r85 28 28 TOOL_VCC70 := Visual C++ 7.0 29 29 PATH_TOOL_VCC70 ?= $(PATH_DEV)/x86.win32/vcc70 30 PATH_TOOL_VCC70_LIB ?= $(PATH_DEV)/x86.win32/vcc70/lib 30 31 31 32 TOOL_VCC70_CC := $(EXEC_X86_WIN32) $(PATH_TOOL_VCC70)/bin/cl.exe … … 54 55 TOOL_VCC70_ARLIBSUFF := .lib 55 56 56 TOOL_VCC70_LD := $(EXEC_X86_WIN32) $(PATH_TOOL_VCC70)/bin/link.exe57 TOOL_VCC70_LD := echo $(EXEC_X86_WIN32) $(PATH_TOOL_VCC70)/bin/link.exe 57 58 TOOL_VCC70_LDFLAGS := -nologo 58 TOOL_VCC70_LDFLAGS.debug := 59 TOOL_VCC70_LDFLAGS.debug := -debug 59 60 TOOL_VCC70_LDFLAGS.release := 60 61 … … 78 79 $(TOOL_VCC70_CC) -c\ 79 80 $(flags) $(addprefix -I, $(incs)) $(addprefix -D, $(defs))\ 80 -Fo$$@\ 81 -Fd$(outbase).pdb \ 82 -Fo$$@ \ 81 83 $(PATH_CURRENT)/$(source) 84 _OUT_FILES += $(outbase).pdb 82 85 83 86 endef … … 101 104 $(call MSG_L2,Compiling $$@ using GCC) 102 105 $(TOOL_VCC70_CXX) -c\ 103 $(flags) $(addprefix -I, $(incs)) $(addprefix -D, $(defs))\ 104 -Fo$$@\ 105 $(PATH_CURRENT)/$(source) 106 $(flags) $(addprefix -I, $(call CYGPATHMIXED,$(incs))) $(addprefix -D, $(defs))\ 107 -Fd$(call CYGPATHMIXED,$(outbase).pdb) \ 108 -Fo$(call CYGPATHMIXED,$(obj))\ 109 $(call CYGPATHMIXED,$(PATH_CURRENT)/$(source)) 110 _OUT_FILES += $(outbase).pdb 106 111 107 112 endef … … 122 127 $(call MSG_L1,Creating Library $$@) 123 128 $(RM) -f $$@ 124 $(TOOL_VCC70_AR) $(flags) /OUT:$ $@ $(objs)129 $(TOOL_VCC70_AR) $(flags) /OUT:$(call CYGPATHMIXED,$(lib)) $(call CYGPATHMIXED,$(objs)) 125 130 126 131 endef … … 148 153 $(eval $(custom_pre)) 149 154 endif 150 $(TOOL_VCC70_LD) $(flags) /OUT:$$@ $(objs) \ 151 $(foreach lib,$(libs), $(if $(findstring $(lib),$(subst /,x,$(lib))), -l$(patsubst lib%,%,$(basename $(lib))), $(lib))) 155 $(TOOL_VCC70_LD) $(flags) \ 156 /OUT:$(call CYGPATHMIXED,$(exe)) \ 157 /MAP:$(call CYGPATHMIXED,$(outbase).map) \ 158 $(call CYGPATHMIXED,$(objs)) \ 159 $(call CYGPATHMIXED,$(libs)) 152 160 ifneq ($(custom_post),) 153 161 $(eval $(custom_post)) 154 162 endif 155 163 _OUT_FILES += $(outbase).map 164 156 165 endef 157 166 … … 179 188 endif 180 189 $(TOOL_VCC70_LD) $(flags) \ 181 /OUT:$$@ $(objs) \ 182 $(foreach lib,$(libs), $(if $(findstring $(lib),$(subst /,x,$(lib))), -l$(patsubst lib%,%,$(basename $(lib))), $(lib))) 190 /OUT:$(call CYGPATHMIXED,$(exe)) \ 191 /MAP:$(call CYGPATHMIXED,$(outbase).map) \ 192 $(call CYGPATHMIXED,$(objs)) \ 193 $(call CYGPATHMIXED,$(libs)) 183 194 ifneq ($(custom_post),) 184 195 $(eval $(custom_post)) 185 196 endif 186 187 endef 188 197 _OUT_FILES += $(outbase).map 198 199 endef 200
Note:
See TracChangeset
for help on using the changeset viewer.