- Timestamp:
- May 6, 2005 4:05:32 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kBuild/footer.kmk
r251 r272 259 259 # @param $(target) Target name. 260 260 define def_inherit_template 261 $$(foreach prop, TOOL ARTOOL CTOOL CXXTOOL ASTOOL LDTOOL \261 $$(foreach prop, TOOL ARTOOL CTOOL CXXTOOL ASTOOL LDTOOL INST NOINST\ 262 262 ,$$(eval $$(def_inherit_template_one))) 263 263 $$(foreach prop,SDKS DEFS INCS COPTS CFLAGS CDEFS CINCS CXXOPTS CXXFLAGS CXXDEFS CXXINCS ASOPTS ASFLAGS ASDEFS ASINCS LDFLAGS LIBS LIBPATH \ … … 813 813 814 814 $(eval $(TOOL_$(tool)_LINK_PROGRAM)) 815 # publish rule (still need work) 815 816 # installing 816 817 ifdef $(target)_INST 818 ifndef KBUILD_NEW_STUFF 817 819 $(eval pubexe := $(PATH_BIN)/$(notdir $(exe))) 818 820 $(pubexe) : $(exe) $(dir $(pubexe)).dir_created 819 821 $(RM) -f $(pubexe) 820 822 $(CP) $(exe) $(pubexe) 823 else 824 $(eval pubexe := $(patsubst %/,%/$(notdir $(exe)), \ 825 $(if $($(target)_INST), $(addprefix $(PATH_INS)/,$($(target)_INST)), $(PATH_BIN)/))) 826 $(pubexe) : $(exe) $(addsuffix .dir_created, $(dir $(pubexe))) 827 $(RM) -f $$@ 828 $(CP) $(exe) $$@ 829 endif 821 830 822 831 _BLDPROGS += $(pubexe) … … 886 895 $(eval $(TOOL_$(tool)_LINK_LIBRARY)) 887 896 888 # publish rule (still need work)897 # installing 889 898 ifndef $(target)_NOINST 899 ifndef KBUILD_NEW_STUFF 890 900 $(eval publib := $(PATH_LIB)/$(notdir $(lib))) 891 901 $(publib) : $(lib) $(dir $(publib)).dir_created 892 902 $(RM) -f $(publib) 893 903 $(CP) $(lib) $(publib) 904 else 905 $(eval publib := $(patsubst %/,%/$(notdir $(lib)), \ 906 $(if $($(target)_INST), $(addprefix $(PATH_INS)/,$($(target)_INST)), $(PATH_LIB)/))) 907 $(publib) : $(lib) $(addsuffix .dir_created, $(dir $(publib))) 908 $(RM) -f $$@ 909 $(CP) $(lib) $$@ 910 endif 894 911 895 912 _LIBS += $(publib) … … 1060 1077 1061 1078 1062 # publish rule (still need work)1079 # installing 1063 1080 ifndef $(target)_NOINST 1081 ifndef KBUILD_NEW_STUFF 1064 1082 $(eval pubdll := $(PATH_BIN)/$(notdir $(dll))) 1065 1083 $(pubdll) : $(dll) $(dir $(pubdll)).dir_created 1066 1084 $(RM) -f $(pubdll) 1067 1085 $(CP) $(dll) $(pubdll) 1086 else 1087 $(eval pubdll := $(patsubst %/,%/$(notdir $(dll)), \ 1088 $(if $($(target)_INST), $(addprefix $(PATH_INS)/,$($(target)_INST)), $(PATH_DLL)/))) 1089 $(pubdll) : $(dll) $(addsuffix .dir_created, $(dir $(publib))) 1090 $(RM) -f $$@ 1091 $(CP) $(dll) $$@ 1092 endif 1068 1093 1069 1094 $(eval TARGET_PUB_$(target) := $(pubdll)) … … 1095 1120 $(foreach target, $(IMPORT_LIBS) $(IMPORT_LIBS.$(BUILD_TARGET)), $(eval _IMPORT_LIBS += $(firstword $(TARGET_PUB_$(target)) $(TARGET_$(target))))) 1096 1121 1097 1122 1098 1123 1099 1124 # … … 1234 1259 1235 1260 $(eval $(TOOL_$(tool)_LINK_PROGRAM)) 1236 # publish rule (still need work) 1261 1262 # installing 1237 1263 ifndef $(target)_NOINST 1264 ifndef KBUILD_NEW_STUFF 1238 1265 $(eval pubexe := $(PATH_BIN)/$(notdir $(exe))) 1239 1266 $(pubexe) : $(exe) $(dir $(pubexe)).dir_created 1240 1267 $(RM) -f $(pubexe) 1241 1268 $(CP) $(exe) $(pubexe) 1269 else 1270 $(eval pubexe := $(patsubst %/,%/$(notdir $(exe)), \ 1271 $(if $($(target)_INST), $(addprefix $(PATH_INS)/,$($(target)_INST)), $(PATH_BIN)/))) 1272 $(pubexe) : $(exe) $(addsuffix .dir_created, $(dir $(pubexe))) 1273 $(RM) -f $$@ 1274 $(CP) $(exe) $$@ 1275 endif 1242 1276 1243 1277 _PROGRAMS += $(pubexe) … … 1407 1441 $(eval $(TOOL_$(tool)_LINK_SYSMOD)) 1408 1442 1409 # publish rule (still need work)1443 # installing 1410 1444 ifndef $(target)_NOINST 1445 ifndef KBUILD_NEW_STUFF 1411 1446 $(eval pubsys := $(PATH_BIN)/$(notdir $(sys))) 1412 1447 $(pubsys): $(sys) $(dir $(pubsys)).dir_created 1413 1448 $(RM) -f $(pubsys) 1414 1449 $(CP) $(sys) $(pubsys) 1450 else 1451 $(eval pubsys := $(patsubst %/,%/$(notdir $(sys)), \ 1452 $(if $($(target)_INST), $(addprefix $(PATH_INS)/,$($(target)_INST)), $(PATH_SYS)/))) 1453 $(pubsys) : $(sys) $(addsuffix .dir_created, $(dir $(pubsys))) 1454 $(RM) -f $$@ 1455 $(CP) $(sys) $$@ 1456 endif 1415 1457 1416 1458 $(eval _SYSMODS += $(pubsys)) … … 1518 1560 .NOTPARALLEL: pass_$(pass)_before pass_$(pass)_after 1519 1561 .PHONY: pass_$(pass) pass_$(pass)_before pass_$(pass)_doit pass_$(pass)_after 1520 pass_$(pass)_this: pass_$(pass)_before 1562 pass_$(pass)_this: pass_$(pass)_before 1521 1563 + $(QUIET)$$(MAKE) -f $$(MAKEFILE) pass_$(pass)_doit 1522 1564 pass_$(pass)_after:: pass_$(pass)_this … … 1617 1659 $(foreach pass,$(PASSES),$(eval $(def_pass_order))) 1618 1660 1619 1661 1620 1662 # 1621 1663 # THE MAIN RULES
Note:
See TracChangeset
for help on using the changeset viewer.