VirtualBox

Changeset 2071 in kBuild


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

MASM600 tool (OS/2).

File:
1 copied

Legend:

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

    r2065 r2071  
    11# $Id$
    22## @file
    3 # kBuild Tool Config - MASM v5.10
     3# kBuild Tool Config - MASM v6.00
    44#
    55
     
    3232#
    3333
    34 TOOL_MASM510 := Microsoft Macro Assembler v5.10
     34TOOL_MASM600 := Microsoft Macro Assembler v5.00
    3535
    3636# Tool Specific Properties
    37 ifndef TOOL_MASM510_AS
    38  TOOL_MASM510_AS := $(firstword $(rsort $(wildcard $(PATH_DEVTOOLS_BLD)/masm/v5.10*/masm$(HOSTSUFF_EXE))))
    39  ifeq ($(TOOL_MASM510_AS),)
    40   TOOL_MASM510_AS := $(firstword $(rsort $(wildcard $(PATH_DEVTOOLS_TRG)/masm/v5.10*/masm$(HOSTSUFF_EXE))))
     37ifndef 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))))
    4141 endif
    42  ifeq ($(TOOL_MASM510_AS),)
    43   TOOL_MASM510_AS := $(firstword $(rsort $(wildcard $(PATH_DEVTOOLS)/os2.x86/ddk/*/base/tools/masm$(HOSTSUFF_EXE))))
     42 ifeq ($(TOOL_MASM600_AS),)
     43  TOOL_MASM600_AS := $(firstword $(rsort $(wildcard $(PATH_DEVTOOLS)/os2.x86/ddk/*/toolkits/masm60/binp/ml$(HOSTSUFF_EXE))))
    4444 endif
    45  ifeq ($(TOOL_MASM510_AS),)
    46   TOOL_MASM510_AS := $(firstword $(rsort $(wildcard \
    47         $(PATH_DEVTOOLS)/os2.x86/ddk/*/video/tools/os2.386/lx.386/bin/masm$(HOSTSUFF_EXE) \
    48         $(PATH_DEVTOOLS)/os2.x86/ddk/*/base32/tools/os2.386/bin/masm$(HOSTSUFF_EXE) \
    49         $(PATH_DEVTOOLS)/os2.x86/ddk/*/base32/tools/os2.386/lx.386/bin/masm$(HOSTSUFF_EXE) \
    50         $(PATH_DEVTOOLS)/os2.x86/ddk/*/print/tools/os2.386/lx.386/bin/masm$(HOSTSUFF_EXE) \
    51         $(PATH_DEVTOOLS)/os2.x86/ddk/*/wpshell/tools/os2.386/lx.386/bin/masm$(HOSTSUFF_EXE) \
    52         $(PATH_DEVTOOLS)/os2.x86/ddk/*/mme/tools/os2.386/lx.386/bin/masm$(HOSTSUFF_EXE) \
    53         )))
     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
    5449 endif
    55  ifneq ($(TOOL_MASM510_AS),)
    56   TOOL_MASM510_AS := $(TOOL_MASM510_AS)
     50 ifneq ($(TOOL_MASM600_AS),)
     51  TOOL_MASM600_AS := $(TOOL_MASM600_AS)
    5752 endif
    5853endif
    59 ifeq ($(TOOL_MASM510_AS),)
    60  TOOL_MASM510_AS := $(firstword $(which masm$(HOSTSUFF_EXE)) path/notfound/masm$(HOSTSUFF_EXE))
     54ifeq ($(TOOL_MASM600_AS),)
     55 TOOL_MASM600_AS := $(firstword $(which ml$(HOSTSUFF_EXE)) path/notfound/ml$(HOSTSUFF_EXE))
    6156endif
    6257
    6358# General Properties used by kBuild
    64 TOOL_MASM510_ASFLAGS ?= -t -z -Zd -Zi -t
     59TOOL_MASM600_ASFLAGS ?= /nologo
    6560
    6661
     
    7974# @param    $(objsuff)  Object suffix.
    8075#
    81 # @remarks  MASM v5.10 has severe length limitations in several places and will respond with
    82 #           crashing when these are exceeded. Thus, we use MASM and INCLUDE to avoid exceeding
    83 #           the command line length (and the MASM length).
    84 #           The closing of file handles and zapping of environment is to make sure it doesn't
    85 #           mess up due handles left behind by some device init or because the env is too big.
    86 TOOL_MASM510_COMPILE_AS_OUTPUT = $(outbase).lst
    87 TOOL_MASM510_COMPILE_AS_DEPEND =
    88 TOOL_MASM510_COMPILE_AS_DEPORD =
    89 define TOOL_MASM510_COMPILE_AS_CMDS
     76# @remarks  MASM v5.10 has serious trouble, so play safe with v6.00 as well.
     77#           See MASM510.kmk for details.
     78TOOL_MASM600_COMPILE_AS_OUTPUT = $(outbase).lst
     79TOOL_MASM600_COMPILE_AS_DEPEND =
     80TOOL_MASM600_COMPILE_AS_DEPORD =
     81define TOOL_MASM600_COMPILE_AS_CMDS
    9082        $(QUIET)$(REDIRECT) \
    9183                -c3 -c4 -c5 -c6 -c7 -c8 -c9 -c10 -c11 -c12 -c13 -c14 -c15 -c16 -c17 -c18 -c19 -Z \
    92                 -E 'MASM=$(addprefix -D, $(subst /,\,$(defs)))' \
    9384                -E 'INCLUDE=$(subst $(SP),,$(addsuffix ;,$(subst /,\,$(incs))))' \
    9485                -- \
    95                 $(subst /,\\,$(TOOL_MASM510_AS)) $(strip $(flags)) '$(subst /,\,$(source),$(obj),$(outbase).lst);'
     86                $(subst /,\\,$(TOOL_MASM600_AS)) -c \
     87                        $(strip $(flags)) \
     88                        $(addprefix -D,$(defs)) \
     89                        -Fo$(subst /,\\,$(obj)) \
     90                        -Fl$(subst /,\\,$(outbase).lst) \
     91                        $(subst /,\\,$(source))
    9692endef
    9793
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