Subversion Repositories DevTools

Rev

Rev 335 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 335 Rev 6177
Line 145... Line 145...
145
		$(patsubst %,-I %,$(cc_includes)) \
145
		$(patsubst %,-I %,$(cc_includes)) \
146
		$(patsubst %,-I %,$(arm_includes))
146
		$(patsubst %,-I %,$(arm_includes))
147
cc_term		=
147
cc_term		=
148
 
148
 
149
define cc_pre
149
define cc_pre
150
	@echo [$<] compiling..
150
	@echo '[$<] compiling..'
151
endef
151
endef
152
 
152
 
153
cc_post =
153
cc_post =
154
 
154
 
155
###############################################################################
155
###############################################################################
Line 167... Line 167...
167
		$(patsubst %,-I %,$(INCDIRS)) \
167
		$(patsubst %,-I %,$(INCDIRS)) \
168
		$(patsubst %,-I %,$(cxx_includes)) \
168
		$(patsubst %,-I %,$(cxx_includes)) \
169
		$(patsubst %,-I %,$(arm_includes))
169
		$(patsubst %,-I %,$(arm_includes))
170
 
170
 
171
define cxx_pre
171
define cxx_pre
172
	@echo [$<] compiling..
172
	@echo '[$<] compiling..'
173
endef
173
endef
174
 
174
 
175
define cxx_post
175
define cxx_post
176
endef
176
endef
177
 
177
 
Line 213... Line 213...
213
                --libpath=$(subst $(space),$(comma),$(KEIL_LIBS) ) \
213
                --libpath=$(subst $(space),$(comma),$(KEIL_LIBS) ) \
214
                --diag_suppress L6373 \
214
                --diag_suppress L6373 \
215
		--summary_stderr 
215
		--summary_stderr 
216
                
216
                
217
 
217
 
218
ld_pre   	= @echo [$@] Linking..;
218
ld_pre   	= @echo '[$@] Linking..';
219
ld_post		=
219
ld_post		=
220
 
220
 
221
################################################################################
221
################################################################################
222
#	Library dependency file generation
222
#	Library dependency file generation
223
#	Use cmdfile to create a file that will be included in this makefile
223
#	Use cmdfile to create a file that will be included in this makefile
Line 238... Line 238...
238
ar_cmdfile      = $(basename $@).ar
238
ar_cmdfile      = $(basename $@).ar
239
ar_flags        =
239
ar_flags        =
240
ar_o_switch     = --via $(ar_cmdfile)
240
ar_o_switch     = --via $(ar_cmdfile)
241
 
241
 
242
define ar_pre
242
define ar_pre
243
        @$(echo) [\$@] Creating library archive.. ; \
243
        @$(echo) '[$@] Creating library archive..' ; \
244
        $(rm) -f $@ ;\
244
        $(rm) -f $@ ;\
245
        $(cmdfile) -ko$(ar_cmdfile) \
245
        $(cmdfile) -ko$(ar_cmdfile) \
246
                --create $@\\n\
246
                --create $@\\n\
247
                $(patsubst %,-r %\\n,$(filter %.o, $^))
247
                $(patsubst %,-r %\\n,$(filter %.o, $^))
248
endef
248
endef
Line 265... Line 265...
265
armerge_init         =
265
armerge_init         =
266
armerge_flags        = --create $@ -r $^
266
armerge_flags        = --create $@ -r $^
267
armerge_o_switch     =
267
armerge_o_switch     =
268
 
268
 
269
define armerge_pre
269
define armerge_pre
270
        @$(echo) [\$@] Creating a Merged library.. ; \
270
        @$(echo) '[$@] Creating a Merged library..' ; \
271
        $(rm) -f $@
271
        $(rm) -f $@
272
endef
272
endef
273
 
273
 
274
armerge_post 	     =
274
armerge_post 	     =
275
 
275
 
Line 320... Line 320...
320
as_flags 	+= --diag_suppress $(subst $(comma),\$(comma),$(NOWARNLIST))
320
as_flags 	+= --diag_suppress $(subst $(comma),\$(comma),$(NOWARNLIST))
321
endif
321
endif
322
endif
322
endif
323
 
323
 
324
define as_pre
324
define as_pre
325
    @$(echo) [$<] Assembling file..
325
    @$(echo) '[$<] Assembling file..'
326
endef
326
endef
327
 
327
 
328
define as_post
328
define as_post
329
endef
329
endef
330
 
330
 
331
###############################################################################
331
###############################################################################
332
#..     Elf Conversion
332
#..     Elf Conversion
333
#
333
#
334
#
334
#
335
define FROMELF
335
define FROMELF
336
	@echo [$@] Convert from ELF..;
336
	@echo '[$@] Convert from ELF..';
337
	$(XX_PRE)$(fromelf) --bin --output $@ $<
337
	$(XX_PRE)$(fromelf) --bin --output $@ $<
338
endef
338
endef
339
 
339