Changeset 2077 for trunk/kBuild/tools


Ignore:
Timestamp:
Nov 18, 2008, 1:50:43 AM (17 years ago)
Author:
bird
Message:

MASM6PLUS.

File:
1 copied

Legend:

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

    r2076 r2077  
    11# $Id$
    22## @file
    3 # kBuild Tool Config - MASM v7.10
     3# kBuild Tool Config - MASM v6 and later.
    44#
    55
     
    3232#
    3333
    34 TOOL_MASM710 := Microsoft Macro Assembler v7.10
     34TOOL_MASM6PLUS := Microsoft Macro Assembler v6 and later.
    3535
    3636# Tool Specific Properties
    37 ifndef TOOL_MASM710_AS
    38  TOOL_MASM710_AS := $(firstword $(rsort $(wildcard $(PATH_DEVTOOLS_BLD)/masm/v7.10*/binp/ml$(HOSTSUFF_EXE))))
    39  ifeq ($(TOOL_MASM710_AS),)
    40   TOOL_MASM710_AS := $(firstword $(rsort $(wildcard $(PATH_DEVTOOLS_TRG)/masm/v7.10*/binp/ml$(HOSTSUFF_EXE))))
     37ifndef TOOL_MASM6PLUS_AS
     38 TOOL_MASM6PLUS_AS := $(firstword $(rsort $(wildcard \
     39        $(PATH_DEVTOOLS_BLD)/masm/*/bin$(if $(eq $(KBUILD_HOST),os2),p,)/ml$(HOSTSUFF_EXE)\
     40        )))
     41 ifeq ($(TOOL_MASM6PLUS_AS),)
     42  TOOL_MASM6PLUS_AS := $(firstword $(rsort $(wildcard \
     43        $(PATH_DEVTOOLS_BLD)/vcc/*/bin/ml$(HOSTSUFF_EXE) \
     44        )))
    4145 endif
    42  ifeq ($(TOOL_MASM710_AS),)
    43   TOOL_MASM710_AS := $(firstword $(rsort $(wildcard $(PATH_DEVTOOLS)/win.x86/vcc/v7*/bin/ml$(HOSTSUFF_EXE))))
     46 ifeq ($(TOOL_MASM6PLUS_AS),)
     47  TOOL_MASM6PLUS_AS := $(firstword $(rsort $(wildcard \
     48        $(PATH_DEVTOOLS)/win.x86/vcc/*/bin/ml$(HOSTSUFF_EXE) \
     49        )))
    4450 endif
    4551endif
    46 ifeq ($(TOOL_MASM710_AS),)
    47  TOOL_MASM710_AS := $(firstword $(which ml$(HOSTSUFF_EXE)) path/notfound/ml$(HOSTSUFF_EXE))
     52ifeq ($(TOOL_MASM6PLUS_AS),)
     53 TOOL_MASM6PLUS_AS := $(firstword $(which ml$(HOSTSUFF_EXE)) path/notfound/ml$(HOSTSUFF_EXE))
    4854endif
    4955
    5056# General Properties used by kBuild
    51 TOOL_MASM710_ASFLAGS ?= /nologo
     57TOOL_MASM6PLUS_ASFLAGS ?= /nologo
    5258
    5359
    54 TOOL_MASM710_COMPILE_AS_OUTPUT = $(outbase).lst
    55 TOOL_MASM710_COMPILE_AS_DEPEND =
    56 TOOL_MASM710_COMPILE_AS_DEPORD =
    57 define TOOL_MASM710_COMPILE_AS_CMDS
     60TOOL_MASM6PLUS_COMPILE_AS_OUTPUT = $(outbase).lst
     61TOOL_MASM6PLUS_COMPILE_AS_DEPEND =
     62TOOL_MASM6PLUS_COMPILE_AS_DEPORD =
     63define TOOL_MASM6PLUS_COMPILE_AS_CMDS
    5864        $(QUIET)$(REDIRECT) \
    5965                -E 'INCLUDE=$(subst $(SP),,$(addsuffix ;,$(subst /,\,$(incs))))' \
    6066                -E 'MASM=' -E 'ML=' \
    6167                -- \
    62                 $(subst /,\\,$(TOOL_MASM710_AS)) -c \
     68                $(subst /,\\,$(TOOL_MASM6PLUS_AS)) -c \
    6369                        $(strip $(flags)) \
    6470                        $(addprefix -D,$(defs)) \
Note: See TracChangeset for help on using the changeset viewer.