VirtualBox

Changeset 2072 in kBuild


Ignore:
Timestamp:
Nov 17, 2008 2:52:00 AM (16 years ago)
Author:
bird
Message:

Quick MASM610 hack up.

Location:
trunk/kBuild/tools
Files:
1 edited
1 copied

Legend:

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

    r2071 r2072  
    3232#
    3333
    34 TOOL_MASM600 := Microsoft Macro Assembler v5.00
     34TOOL_MASM600 := Microsoft Macro Assembler v6.00
    3535
    3636# Tool Specific Properties
     
    4848  endif
    4949 endif
    50  ifneq ($(TOOL_MASM600_AS),)
    51   TOOL_MASM600_AS := $(TOOL_MASM600_AS)
    52  endif
    5350endif
    5451ifeq ($(TOOL_MASM600_AS),)
     
    6057
    6158
    62 ## Compile Assembly source.
    63 # @param    $(target)   Normalized main target name.
    64 # @param    $(source)   Source filename (relative).
    65 # @param    $(obj)      Object file name. This shall be (re)created by the compilation.
    66 # @param    $(dep)      Dependcy file. This shall be (re)created by the compilation.
    67 # @param    $(flags)    Flags.
    68 # @param    $(defs)     Definitions. No -D or something.
    69 # @param    $(incs)     Includes. No -I or something.
    70 # @param    $(dirdep)   Directory creation dependency.
    71 # @param    $(deps)     Other dependencies.
    72 #
    73 # @param    $(outbase)  Output basename (full). Use this for list files and such.
    74 # @param    $(objsuff)  Object suffix.
    75 #
     59##
    7660# @remarks  MASM v5.10 has serious trouble, so play safe with v6.00 as well.
    7761#           See MASM510.kmk for details.
  • trunk/kBuild/tools/MASM610.kmk

    r2071 r2072  
    11# $Id$
    22## @file
    3 # kBuild Tool Config - MASM v6.00
     3# kBuild Tool Config - MASM v6.10
    44#
    55
     
    3232#
    3333
    34 TOOL_MASM600 := Microsoft Macro Assembler v5.00
     34TOOL_MASM610 := Microsoft Macro Assembler v6.10
    3535
    3636# Tool Specific Properties
    37 ifndef TOOL_MASM600_AS
    38  TOOL_MASM600_AS := $(firstword $(rsort $(wildcard $(PATH_DEVTOOLS_BLD)/masm/v6.00*/binp/ml$(HOSTSUFF_EXE))))
    39  ifeq ($(TOOL_MASM600_AS),)
    40   TOOL_MASM600_AS := $(firstword $(rsort $(wildcard $(PATH_DEVTOOLS_TRG)/masm/v6.00*/binp/ml$(HOSTSUFF_EXE))))
    41  endif
    42  ifeq ($(TOOL_MASM600_AS),)
    43   TOOL_MASM600_AS := $(firstword $(rsort $(wildcard $(PATH_DEVTOOLS)/os2.x86/ddk/*/toolkits/masm60/binp/ml$(HOSTSUFF_EXE))))
    44  endif
    45  ifeq ($(TOOL_MASM600_AS),)
    46   if1of ($(USER) $(USERNAME) $(LOGNAME), bird)
    47    TOOL_MASM600_AS := $(wildcard D:/dev/DDK/*/toolkits/masm60/binp/ML.EXE)
    48   endif
    49  endif
    50  ifneq ($(TOOL_MASM600_AS),)
    51   TOOL_MASM600_AS := $(TOOL_MASM600_AS)
     37ifndef TOOL_MASM610_AS
     38 TOOL_MASM610_AS := $(firstword $(rsort $(wildcard $(PATH_DEVTOOLS_BLD)/masm/v6.10*/binp/ml$(HOSTSUFF_EXE))))
     39 ifeq ($(TOOL_MASM610_AS),)
     40  TOOL_MASM610_AS := $(firstword $(rsort $(wildcard $(PATH_DEVTOOLS_TRG)/masm/v6.10*/binp/ml$(HOSTSUFF_EXE))))
    5241 endif
    5342endif
    54 ifeq ($(TOOL_MASM600_AS),)
    55  TOOL_MASM600_AS := $(firstword $(which ml$(HOSTSUFF_EXE)) path/notfound/ml$(HOSTSUFF_EXE))
     43ifeq ($(TOOL_MASM610_AS),)
     44 TOOL_MASM610_AS := $(firstword $(which ml$(HOSTSUFF_EXE)) path/notfound/ml$(HOSTSUFF_EXE))
    5645endif
    5746
    5847# General Properties used by kBuild
    59 TOOL_MASM600_ASFLAGS ?= /nologo
     48TOOL_MASM610_ASFLAGS ?= /nologo
    6049
    6150
    62 ## Compile Assembly source.
    63 # @param    $(target)   Normalized main target name.
    64 # @param    $(source)   Source filename (relative).
    65 # @param    $(obj)      Object file name. This shall be (re)created by the compilation.
    66 # @param    $(dep)      Dependcy file. This shall be (re)created by the compilation.
    67 # @param    $(flags)    Flags.
    68 # @param    $(defs)     Definitions. No -D or something.
    69 # @param    $(incs)     Includes. No -I or something.
    70 # @param    $(dirdep)   Directory creation dependency.
    71 # @param    $(deps)     Other dependencies.
    72 #
    73 # @param    $(outbase)  Output basename (full). Use this for list files and such.
    74 # @param    $(objsuff)  Object suffix.
    75 #
    76 # @remarks  MASM v5.10 has serious trouble, so play safe with v6.00 as well.
    77 #           See MASM510.kmk for details.
    78 TOOL_MASM600_COMPILE_AS_OUTPUT = $(outbase).lst
    79 TOOL_MASM600_COMPILE_AS_DEPEND =
    80 TOOL_MASM600_COMPILE_AS_DEPORD =
    81 define TOOL_MASM600_COMPILE_AS_CMDS
     51TOOL_MASM610_COMPILE_AS_OUTPUT = $(outbase).lst
     52TOOL_MASM610_COMPILE_AS_DEPEND =
     53TOOL_MASM610_COMPILE_AS_DEPORD =
     54define TOOL_MASM610_COMPILE_AS_CMDS
    8255        $(QUIET)$(REDIRECT) \
    83                 -c3 -c4 -c5 -c6 -c7 -c8 -c9 -c10 -c11 -c12 -c13 -c14 -c15 -c16 -c17 -c18 -c19 -Z \
    8456                -E 'INCLUDE=$(subst $(SP),,$(addsuffix ;,$(subst /,\,$(incs))))' \
     57                -E 'MASM=' -E 'ML=' \
    8558                -- \
    86                 $(subst /,\\,$(TOOL_MASM600_AS)) -c \
     59                $(subst /,\\,$(TOOL_MASM610_AS)) -c \
    8760                        $(strip $(flags)) \
    8861                        $(addprefix -D,$(defs)) \
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