Changeset 145 in kBuild
- Timestamp:
- Sep 7, 2004 3:26:23 PM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kBuild/footer.kmk
r140 r145 623 623 # @param $(target) Normalized library (target) name. 624 624 define def_lib 625 # source -> object 626 $(eval $(def_target_sources)) 627 628 # library 625 # library basics 629 626 $(eval tool := $(call _TARGET_TOOL,$(target),AR)) 630 627 ifeq ($(tool),) … … 634 631 $(eval outbase := $(call _TARGET_BASE,$(target),$(target))) 635 632 $(eval PATH_$(target) := $(patsubst %/,%,$(dir $(outbase)))) 633 $(eval PATH2_$(target) := $(subst :, ,$(PATH_$(target)))) 634 $(eval PATH2_$(target) := $(word $(words $(PATH2_$(target))),$(PATH2_$(target)))) 636 635 $(eval libsuff := $(firstword\ 637 636 $($(target)_LIBSUFF.$(BUILD_TARGET))\ … … 642 641 )) 643 642 $(eval lib := $(outbase)$(libsuff)) 643 644 # source -> object 645 $(eval $(def_target_sources)) 646 647 # library linking 648 $(eval tool := $(call _TARGET_TOOL,$(target),AR)) 644 649 $(eval flags :=\ 645 650 $(TOOL_$(tool)_ARFLAGS)\ … … 685 690 # @param $(target) Normalized target (program) name. 686 691 define def_program 687 # source -> object 688 $(eval $(def_target_sources)) 689 690 # library 692 # basics 691 693 $(eval tool := $(call _TARGET_TOOL,$(target),LD)) 692 694 $(eval outbase := $(call _TARGET_BASE,$(target),$(target))) 693 695 $(eval PATH_$(target) := $(patsubst %/,%,$(dir $(outbase)))) 696 $(eval PATH2_$(target) := $(subst :, ,$(PATH_$(target)))) 697 $(eval PATH2_$(target) := $(word $(words $(PATH2_$(target))),$(PATH2_$(target)))) 694 698 $(eval exesuff := $(firstword $($(target)_EXESUFF) $($(target)_EXESUFF) $(TOOL_$(tool)_LDEXESUFF) $(SUFF_EXE))) 695 699 $(eval exe := $(outbase)$(exesuff)) 700 701 # source -> object 702 $(eval $(def_target_sources)) 703 704 # more library stuff. 705 $(eval tool := $(call _TARGET_TOOL,$(target),LD)) 696 706 $(eval objs = $(_OBJS_$(target))) 697 707 $(eval flags :=\ … … 832 842 # @param $(target) Normalized target (program) name. 833 843 define def_dll 834 # source -> object 835 $(eval $(def_target_sources)) 836 837 # dllmod 844 # dllmod basics 838 845 $(eval tool := $(call _TARGET_TOOL,$(target),LD)) 839 846 $(eval outbase := $(call _TARGET_BASE,$(target),$(target))) 840 847 $(eval PATH_$(target) := $(patsubst %/,%,$(dir $(outbase)))) 848 $(eval PATH2_$(target) := $(subst :, ,$(PATH_$(target)))) 849 $(eval PATH2_$(target) := $(word $(words $(PATH2_$(target))),$(PATH2_$(target)))) 841 850 $(eval dllsuff := $(firstword $($(target)_DLLSUFF) $($(target)_DLLSUFF) $(TOOL_$(tool)_LDDLLSUFF) $(SUFF_DLL))) 842 851 $(eval dll := $(outbase)$(dllsuff)) 852 853 # source -> object 854 $(eval $(def_target_sources)) 855 856 # dllmod linking. 857 $(eval tool := $(call _TARGET_TOOL,$(target),LD)) 843 858 $(eval objs = $(_OBJS_$(target))) 844 859 $(eval flags :=\ … … 993 1008 # @param $(target) Normalized target (program) name. 994 1009 define def_sysmod 995 # source -> object 996 $(eval $(def_target_sources)) 997 998 # sysmod 1010 # sysmod basics 999 1011 $(eval tool := $(call _TARGET_TOOL,$(target),LD)) 1000 1012 $(eval outbase := $(call _TARGET_BASE,$(target),$(target))) 1001 1013 $(eval PATH_$(target) := $(patsubst %/,%,$(dir $(outbase)))) 1014 $(eval PATH2_$(target) := $(subst :, ,$(PATH_$(target)))) 1015 $(eval PATH2_$(target) := $(word $(words $(PATH2_$(target))),$(PATH2_$(target)))) 1002 1016 $(eval syssuff := $(firstword $($(target)_SYSSUFF) $($(target)_SYSSUFF) $(TOOL_$(tool)_LDSYSSUFF) $(SUFF_SYS))) 1003 1017 $(eval sys := $(outbase)$(syssuff)) 1018 1019 # source -> object 1020 $(eval $(def_target_sources)) 1021 1022 # sysmod linking 1023 $(eval tool := $(call _TARGET_TOOL,$(target),LD)) 1004 1024 $(eval objs = $(_OBJS_$(target))) 1005 1025 $(eval flags :=\
Note:
See TracChangeset
for help on using the changeset viewer.