VirtualBox

Changeset 316 in kBuild for trunk


Ignore:
Timestamp:
Aug 11, 2005 10:31:35 PM (19 years ago)
Author:
bird
Message:

Enh. the _OBJECT_BASE hack.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kBuild/footer.kmk

    r276 r316  
    124124# @param    $1      source file
    125125# @param    $2      normalized main target
    126 _OBJECT_BASE = $(PATH_TARGET)/$(2)/$(call no-root-slash,$(call no-drive,$(basename $(patsubst $(PATH_TARGET)/$(2)/%,gen/%,$(1)))))
     126# @remark There are two major hacks here:
     127#           1. Source files in the output directory are translated into a gen/ subdir.
     128#               2. Catch anyone specifying $(PATH_CURRENT)/sourcefile.c.
     129_OBJECT_BASE = $(PATH_TARGET)/$(2)/$(call no-root-slash,$(call no-drive,$(basename \
     130        $(patsubst $(PATH_ROOT)/%,%,$(patsubst $(PATH_CURRENT)/%,%,$(patsubst $(PATH_TARGET)/$(2)/%,gen/%,$(1)))))))
    127131
    128132## Figure out where to put object files.
     
    827831#       $ (RM) -f $$@
    828832#       $ (CP) $(exe) $$@
    829 #endif 
     833#endif
    830834
    831835_BLDPROGS  += $(pubexe)
     
    908912#       $ ( RM) -f $$@
    909913#       $ ( CP) $(lib) $$@
    910 #endif 
    911        
     914#endif
     915
    912916_LIBS      += $(publib)
    913917_OUT_FILES += $(lib) $(publib)
     
    10901094#       $(RM) -f $$@
    10911095#       $(CP) $(dll) $$@
    1092 #endif 
     1096#endif
    10931097
    10941098$(eval TARGET_PUB_$(target) := $(pubdll))
     
    12731277#       $(RM) -f $$@
    12741278#       $(CP) $(exe) $$@
    1275 #endif 
     1279#endif
    12761280
    12771281_PROGRAMS  += $(pubexe)
     
    14541458#       $(RM) -f $$@
    14551459#       $(CP) $(sys) $$@
    1456 #endif 
     1460#endif
    14571461
    14581462$(eval _SYSMODS += $(pubsys))
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