VirtualBox

Changeset 272 in kBuild for trunk


Ignore:
Timestamp:
May 6, 2005 4:05:32 AM (20 years ago)
Author:
bird
Message:

installing stuff.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kBuild/footer.kmk

    r251 r272  
    259259# @param    $(target)    Target name.
    260260define def_inherit_template
    261 $$(foreach prop, TOOL ARTOOL CTOOL CXXTOOL ASTOOL LDTOOL\
     261$$(foreach prop, TOOL ARTOOL CTOOL CXXTOOL ASTOOL LDTOOL INST NOINST\
    262262        ,$$(eval $$(def_inherit_template_one)))
    263263$$(foreach prop,SDKS DEFS INCS COPTS CFLAGS CDEFS CINCS CXXOPTS CXXFLAGS CXXDEFS CXXINCS ASOPTS ASFLAGS ASDEFS ASINCS LDFLAGS LIBS LIBPATH \
     
    813813
    814814$(eval $(TOOL_$(tool)_LINK_PROGRAM))
    815 # publish rule (still need work)
     815
     816# installing
    816817ifdef $(target)_INST
     818ifndef KBUILD_NEW_STUFF
    817819$(eval pubexe := $(PATH_BIN)/$(notdir $(exe)))
    818820$(pubexe) : $(exe) $(dir $(pubexe)).dir_created
    819821        $(RM) -f $(pubexe)
    820822        $(CP) $(exe) $(pubexe)
     823else
     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) $$@
     829endif   
    821830
    822831_BLDPROGS  += $(pubexe)
     
    886895$(eval $(TOOL_$(tool)_LINK_LIBRARY))
    887896
    888 # publish rule (still need work)
     897# installing
    889898ifndef $(target)_NOINST
     899ifndef KBUILD_NEW_STUFF
    890900$(eval publib := $(PATH_LIB)/$(notdir $(lib)))
    891901$(publib) : $(lib) $(dir $(publib)).dir_created
    892902        $(RM) -f $(publib)
    893903        $(CP) $(lib) $(publib)
     904else
     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) $$@
     910endif   
    894911       
    895912_LIBS      += $(publib)
     
    10601077
    10611078
    1062 # publish rule (still need work)
     1079# installing
    10631080ifndef $(target)_NOINST
     1081ifndef KBUILD_NEW_STUFF
    10641082$(eval pubdll := $(PATH_BIN)/$(notdir $(dll)))
    10651083$(pubdll) : $(dll) $(dir $(pubdll)).dir_created
    10661084        $(RM) -f $(pubdll)
    10671085        $(CP) $(dll) $(pubdll)
     1086else
     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) $$@
     1092endif   
    10681093
    10691094$(eval TARGET_PUB_$(target) := $(pubdll))
     
    10951120$(foreach target, $(IMPORT_LIBS) $(IMPORT_LIBS.$(BUILD_TARGET)), $(eval _IMPORT_LIBS += $(firstword $(TARGET_PUB_$(target)) $(TARGET_$(target)))))
    10961121
    1097    
     1122
    10981123
    10991124#
     
    12341259
    12351260$(eval $(TOOL_$(tool)_LINK_PROGRAM))
    1236 # publish rule (still need work)
     1261
     1262# installing
    12371263ifndef $(target)_NOINST
     1264ifndef KBUILD_NEW_STUFF
    12381265$(eval pubexe := $(PATH_BIN)/$(notdir $(exe)))
    12391266$(pubexe) : $(exe) $(dir $(pubexe)).dir_created
    12401267        $(RM) -f $(pubexe)
    12411268        $(CP) $(exe) $(pubexe)
     1269else
     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) $$@
     1275endif   
    12421276
    12431277_PROGRAMS  += $(pubexe)
     
    14071441$(eval $(TOOL_$(tool)_LINK_SYSMOD))
    14081442
    1409 # publish rule (still need work)
     1443# installing
    14101444ifndef $(target)_NOINST
     1445ifndef KBUILD_NEW_STUFF
    14111446$(eval pubsys := $(PATH_BIN)/$(notdir $(sys)))
    14121447$(pubsys): $(sys) $(dir $(pubsys)).dir_created
    14131448        $(RM) -f $(pubsys)
    14141449        $(CP) $(sys) $(pubsys)
     1450else
     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) $$@
     1456endif   
    14151457
    14161458$(eval _SYSMODS += $(pubsys))
     
    15181560.NOTPARALLEL: pass_$(pass)_before pass_$(pass)_after
    15191561.PHONY: pass_$(pass) pass_$(pass)_before pass_$(pass)_doit pass_$(pass)_after
    1520 pass_$(pass)_this:      pass_$(pass)_before 
     1562pass_$(pass)_this:      pass_$(pass)_before
    15211563        + $(QUIET)$$(MAKE) -f $$(MAKEFILE) pass_$(pass)_doit
    15221564pass_$(pass)_after::    pass_$(pass)_this
     
    16171659$(foreach pass,$(PASSES),$(eval $(def_pass_order)))
    16181660
    1619      
     1661
    16201662#
    16211663# THE MAIN RULES
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette