Subversion Repositories DevTools

Rev

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

Rev 335 Rev 6177
Line 282... Line 282...
282
		$(subst $(spacealt),$(space),$(patsubst %,"-I%",$(subst /,\,$(cc_includes)))) \
282
		$(subst $(spacealt),$(space),$(patsubst %,"-I%",$(subst /,\,$(cc_includes)))) \
283
		$(subst $(spacealt),$(space),$(patsubst %,"-I%",$(subst /,\,$(vc_includes))))
283
		$(subst $(spacealt),$(space),$(patsubst %,"-I%",$(subst /,\,$(vc_includes))))
284
cc_term		=
284
cc_term		=
285
 
285
 
286
define cc_pre
286
define cc_pre
287
	@$(echo) [$<] Compiling..
287
	@$(echo) '[$<] Compiling..'
288
endef
288
endef
289
 
289
 
290
cc_filter	:= "$(notdir $(wildcard $(GBE_ROOT)/warnings.visualc))"
290
cc_filter	:= "$(notdir $(wildcard $(GBE_ROOT)/warnings.visualc))"
291
ifeq ($(strip $(cc_filter)), "warnings.visualc")
291
ifeq ($(strip $(cc_filter)), "warnings.visualc")
292
cc_filter	= $(GBE_ROOT)/warnings.visualc
292
cc_filter	= $(GBE_ROOT)/warnings.visualc
Line 362... Line 362...
362
		$(subst $(spacealt),$(space),$(patsubst %,-I"%",$(subst /,\,$(cxx_includes)))) \
362
		$(subst $(spacealt),$(space),$(patsubst %,-I"%",$(subst /,\,$(cxx_includes)))) \
363
		$(subst $(spacealt),$(space),$(patsubst %,-I"%",$(subst /,\,$(vc_includes))))
363
		$(subst $(spacealt),$(space),$(patsubst %,-I"%",$(subst /,\,$(vc_includes))))
364
cxx_term	=
364
cxx_term	=
365
 
365
 
366
define cxx_pre
366
define cxx_pre
367
	@echo [$<] compiling..
367
	@echo '[$<] compiling..'
368
endef
368
endef
369
 
369
 
370
define cxx_post
370
define cxx_post
371
endef
371
endef
372
 
372
 
Line 439... Line 439...
439
ar_flags	+= $(patsubst %,-name:%,$(LIBNAME))
439
ar_flags	+= $(patsubst %,-name:%,$(LIBNAME))
440
ar_o_switch	= -out:$(subst /,\\,$@) $(subst /,\\,$(filter %.obj,$^)) $(subst /,\\,$(filter %.res,$^))
440
ar_o_switch	= -out:$(subst /,\\,$@) $(subst /,\\,$(filter %.obj,$^)) $(subst /,\\,$(filter %.res,$^))
441
ar_term		=
441
ar_term		=
442
 
442
 
443
define ar_pre
443
define ar_pre
444
	echo [$@] Building library ..;
444
	echo '[$@] Building library ..';
445
endef
445
endef
446
 
446
 
447
define ar_post
447
define ar_post
448
endef
448
endef
449
 
449
 
Line 455... Line 455...
455
armerge_cmdfile =
455
armerge_cmdfile =
456
armerge_flags	= -d $(MLIBDIR) -t MSVC
456
armerge_flags	= -d $(MLIBDIR) -t MSVC
457
armerge_o_switch= $(subst /,\\,$@) $(subst /,\\,$^)
457
armerge_o_switch= $(subst /,\\,$@) $(subst /,\\,$^)
458
 
458
 
459
define armerge_pre
459
define armerge_pre
460
	-echo [$@] Merging library ..; $(rm) -f $@
460
	-echo '[$@] Merging library ..'; $(rm) -f $@
461
endef
461
endef
462
armerge_post	=
462
armerge_post	=
463
 
463
 
464
###############################################################################
464
###############################################################################
465
#..     Linker
465
#..     Linker
Line 483... Line 483...
483
ld_term		=
483
ld_term		=
484
 
484
 
485
define ld_pre
485
define ld_pre
486
	@$(cmdfile) -wkWeo$(ld_cmdfile) \
486
	@$(cmdfile) -wkWeo$(ld_cmdfile) \
487
		"$(vc_ldflags) $($(notdir $(basename $@))_ld)"; \
487
		"$(vc_ldflags) $($(notdir $(basename $@))_ld)"; \
488
	echo [$@] Linking application ..
488
	echo '[$@] Linking application ..'
489
endef
489
endef
490
 
490
 
491
ifndef LEAVETMP
491
ifndef LEAVETMP
492
define ld_post
492
define ld_post
493
	@$(rm) -f $(ld_cmdfile)
493
	@$(rm) -f $(ld_cmdfile)
Line 516... Line 516...
516
rc_dirs += $(vc_includes)
516
rc_dirs += $(vc_includes)
517
rc_include = $(subst $(spacealt),$(space),$(subst $(space),$(empty),$(patsubst %,%;,$(subst /,\,$(rc_dirs)))))
517
rc_include = $(subst $(spacealt),$(space),$(subst $(space),$(empty),$(patsubst %,%;,$(subst /,\,$(rc_dirs)))))
518
rc_include1 = $(subst \;,;,$(rc_include))
518
rc_include1 = $(subst \;,;,$(rc_include))
519
 
519
 
520
define RC
520
define RC
521
	@$(echo) [$@] Compile Resource File ..
521
	@$(echo) '[$@] Compile Resource File ..'
522
	@$(show_environment)
522
	@$(show_environment)
523
	$(XX_PRE) export INCLUDE; INCLUDE="$(rc_include1)"; \
523
	$(XX_PRE) export INCLUDE; INCLUDE="$(rc_include1)"; \
524
	RC /l 0xC09 $(rc_defines) /fo $(subst /,\\,$@) $(subst /,\\,$<)
524
	RC /l 0xC09 $(rc_defines) /fo $(subst /,\\,$@) $(subst /,\\,$<)
525
endef
525
endef
526
 
526
 
527
#.. Browser Information
527
#.. Browser Information
528
#   Create a .BSC file from many .SBR files
528
#   Create a .BSC file from many .SBR files
529
#   Filter out non .SBR files to assist in rule creation
529
#   Filter out non .SBR files to assist in rule creation
530
#
530
#
531
define BSCMAKE
531
define BSCMAKE
532
	@$(echo) [$@] Create Source Browser Information ..
532
	@$(echo) '[$@] Create Source Browser Information ..'
533
	@$(show_environment)
533
	@$(show_environment)
534
	$(XX_PRE) bscmake -nologo -n -o $(subst /,\\,$@) $(subst /,\\,$(filter %.sbr,$^))
534
	$(XX_PRE) bscmake -nologo -n -o $(subst /,\\,$@) $(subst /,\\,$(filter %.sbr,$^))
535
endef
535
endef
536
 
536
 
537
#
537
#