Ignore:
Timestamp:
Jul 15, 2006, 6:33:50 AM (19 years ago)
Author:
bird
Message:

New feature: Sub-Makefile.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kBuild/footer.kmk

    r460 r472  
    147147# @remark There are two major hacks here:
    148148#           1. Source files in the output directory are translated into a gen/ subdir.
    149 #               2. Catch anyone specifying $(PATH_CURRENT)/sourcefile.c.
     149#               2. Catch anyone specifying $(PATH_SUB_CURRENT)/sourcefile.c.
    150150_OBJECT_BASE = $(PATH_TARGET)/$(2)/$(call no-root-slash,$(call no-drive,$(basename \
    151         $(patsubst $(PATH_ROOT)/%,%,$(patsubst $(PATH_CURRENT)/%,%,$(patsubst $(PATH_TARGET)/$(2)/%,gen/%,$(1)))))))
     151        $(patsubst $(PATH_ROOT)/%,%,$(patsubst $(PATH_SUB_CURRENT)/%,%,$(patsubst $(PATH_TARGET)/$(2)/%,gen/%,$(1)))))))
    152152
    153153## Figure out where to put object files.
     
    457457                $($(target)_$(source)_DEPORD_)
    458458        $(call MSG_L1,Creating $$@)
    459         $(RM) -f $(dep) $(out) $($(target)_$(source)_OUTPUT_)
     459        $(RM) -f $(dep) $(obj) $($(target)_$(source)_OUTPUT_)
    460460        $(custom_pre)
    461461
Note: See TracChangeset for help on using the changeset viewer.