Subversion Repositories DevTools

Rev

Rev 4309 | Rev 4538 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4309 Rev 4518
Line 473... Line 473...
473
ifeq "$(DEBUG)" "1"
473
ifeq "$(DEBUG)" "1"
474
shld_flags	+= -g
474
shld_flags	+= -g
475
endif
475
endif
476
shld_flags	+= \
476
shld_flags	+= \
477
		$(patsubst %,%,$(LDFLAGS)) \
477
		$(patsubst %,%,$(LDFLAGS)) \
478
		$(patsubst %,-L%,$(LIBDIRS)) \
478
		$(patsubst %,-L%,$(wildcard $(LIBDIRS))) \
479
		$($(notdir $(SHBASE))_shld)
479
		$($(notdir $(SHBASE))_shld)
480
 
480
 
481
define shld_pre
481
define shld_pre
482
	@echo [$@] Linking shared library..; \
482
	@echo [$@] Linking shared library..; \
483
	$(touch) $(LIBDIR)/$(SHBASE).map
483
	$(touch) $(LIBDIR)/$(SHBASE).map
Line 486... Line 486...
486
define shld_post
486
define shld_post
487
endef
487
endef
488
 
488
 
489
define SHLDDEPEND
489
define SHLDDEPEND
490
	$(AA_PRE)export GCC_LIB; \
490
	$(AA_PRE)export GCC_LIB; \
491
		GCC_LIB="$(subst $(space),;,$(LIBDIRS))"; \
491
		GCC_LIB="$(subst $(space),;,$(wildcard $(LIBDIRS)))"; \
492
	$(cmdfile) -wo$@ "@(vlibgcc,$(GCC_CC))$($(DPLIST))"
492
	$(cmdfile) -wo$@ "@(vlibgcc,$(GCC_CC))$($(DPLIST))"
493
endef
493
endef
494
 
494
 
495
 
495
 
496
#..     Linker
496
#..     Linker
Line 512... Line 512...
512
ld_flags	+= -pg
512
ld_flags	+= -pg
513
endif
513
endif
514
 
514
 
515
ld_flags	+= \
515
ld_flags	+= \
516
		$(patsubst %,%,$(LDFLAGS)) \
516
		$(patsubst %,%,$(LDFLAGS)) \
517
		$(patsubst %,-L%,$(LIBDIRS)) \
517
		$(patsubst %,-L%,$(wildcard $(LIBDIRS))) \
-
 
518
		$(patsubst %,-Xlinker -rpath-link %,$(wildcard $(LIBDIRS))) \
518
		$($(notdir $(basename $@))_ld)
519
		$($(notdir $(basename $@))_ld)
519
 
520
 
520
define ld_pre
521
define ld_pre
521
	@echo [$@] Linking..; \
522
	@echo [$@] Linking..; \
522
	$(touch) $(basename $@).map
523
	$(touch) $(basename $@).map
Line 525... Line 526...
525
define ld_post
526
define ld_post
526
endef
527
endef
527
 
528
 
528
define LDDEPEND
529
define LDDEPEND
529
	$(AA_PRE)export GCC_LIB; \
530
	$(AA_PRE)export GCC_LIB; \
530
		GCC_LIB="$(subst $(space),;,$(LIBDIRS))"; \
531
		GCC_LIB="$(subst $(space),;,$(wildcard $(LIBDIRS)))"; \
531
	$(cmdfile) -wo$@ "@(vlibgcc,$(GCC_CC))$($(DPLIST))"
532
	$(cmdfile) -wo$@ "@(vlibgcc,$(GCC_CC))$($(DPLIST))"
532
endef
533
endef
533
 
534
 
534
 
535
 
535
#
536
#