Changeset 2071 in kBuild
- Timestamp:
- Nov 17, 2008 2:49:02 AM (16 years ago)
- File:
-
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/kBuild/tools/MASM600.kmk
r2065 r2071 1 1 # $Id$ 2 2 ## @file 3 # kBuild Tool Config - MASM v 5.103 # kBuild Tool Config - MASM v6.00 4 4 # 5 5 … … 32 32 # 33 33 34 TOOL_MASM 510 := Microsoft Macro Assembler v5.1034 TOOL_MASM600 := Microsoft Macro Assembler v5.00 35 35 36 36 # Tool Specific Properties 37 ifndef TOOL_MASM 510_AS38 TOOL_MASM 510_AS := $(firstword $(rsort $(wildcard $(PATH_DEVTOOLS_BLD)/masm/v5.10*/masm$(HOSTSUFF_EXE))))39 ifeq ($(TOOL_MASM 510_AS),)40 TOOL_MASM 510_AS := $(firstword $(rsort $(wildcard $(PATH_DEVTOOLS_TRG)/masm/v5.10*/masm$(HOSTSUFF_EXE))))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 41 endif 42 ifeq ($(TOOL_MASM 510_AS),)43 TOOL_MASM 510_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)))) 44 44 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 54 49 endif 55 ifneq ($(TOOL_MASM 510_AS),)56 TOOL_MASM 510_AS := $(TOOL_MASM510_AS)50 ifneq ($(TOOL_MASM600_AS),) 51 TOOL_MASM600_AS := $(TOOL_MASM600_AS) 57 52 endif 58 53 endif 59 ifeq ($(TOOL_MASM 510_AS),)60 TOOL_MASM 510_AS := $(firstword $(which masm$(HOSTSUFF_EXE)) path/notfound/masm$(HOSTSUFF_EXE))54 ifeq ($(TOOL_MASM600_AS),) 55 TOOL_MASM600_AS := $(firstword $(which ml$(HOSTSUFF_EXE)) path/notfound/ml$(HOSTSUFF_EXE)) 61 56 endif 62 57 63 58 # General Properties used by kBuild 64 TOOL_MASM 510_ASFLAGS ?= -t -z -Zd -Zi -t59 TOOL_MASM600_ASFLAGS ?= /nologo 65 60 66 61 … … 79 74 # @param $(objsuff) Object suffix. 80 75 # 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. 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 90 82 $(QUIET)$(REDIRECT) \ 91 83 -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)))' \93 84 -E 'INCLUDE=$(subst $(SP),,$(addsuffix ;,$(subst /,\,$(incs))))' \ 94 85 -- \ 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)) 96 92 endef 97 93
Note:
See TracChangeset
for help on using the changeset viewer.