Changeset 772 for trunk/kBuild/tools/GCC3.kmk
- Timestamp:
- Jan 19, 2007, 6:00:33 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kBuild/tools/GCC3.kmk
r697 r772 60 60 # General Properties used by kBuild 61 61 TOOL_GCC3_COBJSUFF ?= .o 62 TOOL_GCC3_CFLAGS ?= 62 TOOL_GCC3_CFLAGS ?= 63 63 TOOL_GCC3_CFLAGS.debug ?= -g 64 64 TOOL_GCC3_CFLAGS.profile ?= -g -O2 #-pg … … 69 69 TOOL_GCC3_CXXOBJSUFF ?= .o 70 70 TOOL_GCC3_CXXOBJSUFF ?= .o 71 TOOL_GCC3_CXXFLAGS ?= 71 TOOL_GCC3_CXXFLAGS ?= 72 72 TOOL_GCC3_CXXFLAGS.debug ?= -g 73 73 TOOL_GCC3_CXXFLAGS.profile ?= -g -O2 #-pg … … 172 172 # @param $(othersrc) Unhandled sources. 173 173 # @param $(outbase) Output basename (full). Use this for list files and such. 174 TOOL_GCC3_LINK_LIBRARY_OUTPUT = $(out).ar-script 175 TOOL_GCC3_LINK_LIBRARY_DEPEND = $( filter %.a %.lib %.def %.imp,$(othersrc))174 TOOL_GCC3_LINK_LIBRARY_OUTPUT = $(out).ar-script $(outbase).imp.a 175 TOOL_GCC3_LINK_LIBRARY_DEPEND = $(othersrc) 176 176 TOOL_GCC3_LINK_LIBRARY_DEPORD = 177 ifeq ($(filter append-dash-n,$(KMK_FEATURES)),append-dash-n) 178 define TOOL_GCC3_LINK_LIBRARY_CMDS 179 $(QUIET)$(APPEND) $(out).ar-script 'CREATE $(out)' 180 $(QUIET)$(APPEND) -n $(out).ar-script \ 181 $(foreach o,$(objs), 'ADDMOD $(o)') \ 182 $(foreach o,$(filter-out %.def %.imp,$(othersrc)), 'ADDLIB $(o)') 183 $(if $(filter %.def %.imp,$(othersrc))\ 184 ,$(TOOL_GCC3_AR_IMP) -o $(outbase).imp.a $(filter %.def %.imp,$(othersrc))\ 185 $(NL)$(TAB)$(QUIET)$(APPEND) $(out).ar-script 'ADDLIB $(outbase).imp.a') 186 $(QUIET)$(APPEND) $(out).ar-script 'SAVE' 187 $(QUIET)$(APPEND) $(out).ar-script 'END' 188 $(QUIET)$(TOOL_GCC3_AR) -M < $(out).ar-script 189 endef 190 else 177 191 define TOOL_GCC3_LINK_LIBRARY_CMDS 178 192 $(QUIET)$(APPEND) $(out).ar-script "CREATE $(out)" 179 193 $(foreach o, $(objs)\ 180 194 ,$(NL)$(TAB)$(QUIET)$(APPEND) $(out).ar-script "ADDMOD $(o)") 181 $(foreach srclib, $(filter %.a %.lib,$(othersrc))\195 $(foreach srclib, $(filter-out %.def %.imp,$(othersrc))\ 182 196 ,$(NL)$(TAB)$(QUIET)$(APPEND) $(out).ar-script "ADDLIB $(srclib)") 183 197 $(if $(filter %.def %.imp,$(othersrc))\ … … 188 202 $(QUIET)$(TOOL_GCC3_AR) -M < $(out).ar-script 189 203 endef 204 endif 190 205 191 206
Note:
See TracChangeset
for help on using the changeset viewer.