Changeset 2691


Ignore:
Timestamp:
Jul 22, 2013, 1:44:13 PM (12 years ago)
Author:
bird
Message:

YASM: Dependency fix for ignoring deleted header files. Produce map file (.obj.map as so it won't collide with the linker .map file).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kBuild/tools/YASM.kmk

    r2690 r2691  
    6767# @param    $(objsuff)  Object suffix.
    6868#
    69 TOOL_YASM_COMPILE_AS_OUTPUT = $(outbase).lst
     69TOOL_YASM_COMPILE_AS_OUTPUT = $(outbase).lst $(obj).map
    7070TOOL_YASM_COMPILE_AS_DEPEND =
    7171TOOL_YASM_COMPILE_AS_DEPORD =
     
    7474                $(flags) $(addsuffix /,$(addprefix -I, $(incs))) $(addprefix -D, $(defs))\
    7575                -l $(outbase).lst\
     76                --mapfile=$(obj).map\
    7677                -o $(obj)\
    7778                $(abspath $(source))
     
    8384 if1of ($(KBUILD_HOST), win nt os2)
    8485        $(QUIET)$(SED) -e 's/\\\(.\)/\/\1/g' --output "$(dep).tmp" "$(dep)"
    85         $(QUIET)$(MV) -f "$(dep).tmp" "$(dep)"
     86 else
     87        $(QUIET)$(CP) -f -- "$(dep)" "$(dep).tmp"
    8688 endif
     89        $(QUIET)$(APPEND) -n "$(dep).tmp" "" ""
     90        $(QUIET)$(SED) $(if $(intersects $(KBUILD_HOST), win nt os2), -e 's/\\\(.\)/\/\1/g',)\
     91                -e 's/^[^ ]*: / /'\
     92                -e 's/ *\\$$(DOLLAR)//'\
     93                -e 's/^ *//'\
     94                -e 's/  */\n/g'\
     95                -e 's/ *\([^ \n][^ \n]*\)/\1:\n/g'\
     96                --append "$(dep).tmp"\
     97                "$(dep)"
     98        $(QUIET)$(MV) -f -- "$(dep).tmp" "$(dep)"
    8799endef
    88100
Note: See TracChangeset for help on using the changeset viewer.