Changeset 749 for trunk/kBuild


Ignore:
Timestamp:
Dec 28, 2006, 4:13:36 AM (19 years ago)
Author:
bird
Message:

Don't use recursion for the .o/.obj aliases.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kBuild/footer.kmk

    r747 r749  
    910910
    911911# Define the aliases here (doesn't work if defined in def_fetch_rules, just like includedep).
    912 $(target):: $(out)
    913 $(target)_unfetch:: $(out)_unfetched
     912$(target): $(out)
     913$(target)_unfetch: $(out)_unfetched
    914914
    915915_FETCHES += $(out)
     
    969969endif
    970970
    971 ## Generates the rules for building a specific object, and the '::' aliases
     971## Generates the rules for building a specific object, and the aliases
    972972# for building a source file.
    973973# @param    $(obj)    The object file.
     
    992992endif
    993993
    994 $(basename $(notdir $(obj))).o::
    995         + $$(MAKE) -f $$(MAKEFILE) $(obj)
    996 $(basename $(notdir $(obj))).obj::
    997         + $$(MAKE) -f $$(MAKEFILE) $(obj)
     994$(basename $(notdir $(obj))).o: $(obj)
     995$(basename $(notdir $(obj))).obj: $(obj)
    998996endef
    999997
     
    10351033endif
    10361034
    1037 $(basename $(notdir $(out)))::
    1038         + $$(MAKE) -f $$(MAKEFILE) $(out)
     1035$(basename $(notdir $(out))): $(out)
    10391036
    10401037endef
     
    10521049
    10531050ifdef KBUILD_DO_AUTO_INSTALL
    1054 $(basename $(notdir $(out)))::
    1055         + $$(MAKE) -f $$(MAKEFILE) $(INSTARGET_$(target))
     1051$(basename $(notdir $(out))): $(INSTARGET_$(target))
    10561052endif
    10571053endef
Note: See TracChangeset for help on using the changeset viewer.