VirtualBox

Changeset 2082 in kBuild


Ignore:
Timestamp:
Nov 19, 2008 2:14:40 AM (16 years ago)
Author:
bird
Message:

OPENWATCOM-WL tool.

File:
1 copied

Legend:

Unmodified
Added
Removed
  • trunk/kBuild/tools/OPENWATCOM-WL.kmk

    r2079 r2082  
    11# $Id$
    22## @file
    3 # kBuild Tool Config - Open Watcom v1.4 and later, 16-bit targets.
     3# kBuild Tool Config - Open Watcom v1.4 and later, using wlink.
    44#
    55# @remarks wrc is untested, so are DLLs, and programs.
     
    3333#
    3434
    35 TOOL_OPENWATCOM-16 = Open Watcom v1.4 and later - 16-bit targets.
    36 TOOL_OPENWATCOM-16_EXTENDS = OPENWATCOM
    37 TOOL_OPENWATCOM-16_ASFLAGS.win  ?= -bt=windows
    38 TOOL_OPENWATCOM-16_CFLAGS.win   ?= -bt=windows
    39 TOOL_OPENWATCOM-16_CXXFLAGS.win ?= -bt=windows
    40 TOOL_OPENWATCOM-16_RCFLAGS.win  ?= -bt=windows
    41 TOOL_OPENWATCOM-16_LDFLAGS.win  ?= -bt=windows
     35TOOL_OPENWATCOM-WL = Open Watcom v1.4 and later, using wlink.
     36TOOL_OPENWATCOM-WL_EXTENDS = OPENWATCOM
     37TOOL_OPENWATCOM-WL_LDFLAGS.dos   ?= $(NO_SUCH_VARIABLE)
     38TOOL_OPENWATCOM-WL_LDFLAGS.linux ?= $(NO_SUCH_VARIABLE)
     39TOOL_OPENWATCOM-WL_LDFLAGS.nt    ?= $(NO_SUCH_VARIABLE)
     40TOOL_OPENWATCOM-WL_LDFLAGS.os2   ?= $(NO_SUCH_VARIABLE)
     41TOOL_OPENWATCOM-WL_LDFLAGS.win   ?= $(NO_SUCH_VARIABLE)
    4242
    4343
    44 TOOL_OPENWATCOM-16_COMPILE_AS_DEPEND =
    45 TOOL_OPENWATCOM-16_COMPILE_AS_DEPORD =
    46 TOOL_OPENWATCOM-16_COMPILE_AS_OUTPUT = $(obj).err
    47 define TOOL_OPENWATCOM-16_COMPILE_AS_CMDS
    48         $(QUIET) $(call TOOL_OPENWATCOM_ENV_SETUP) $(TOOL_OPENWATCOM_CC16) \
    49                 $(flags) \
    50                 $(addsuffix , $(addprefix -i=, $(subst /,\\,$(incs)))) \
    51                 $(addprefix -d, $(defs)) \
    52                 -fo=$(subst /,\\,$(obj)) \
    53                 -fr=$(subst /,\\,$(obj)).err \
    54                 $(subst /,\\,$(abspath $(source)))
    55         $(QUIET)$(APPEND) -n $(obj).err
    56 ## @todo dependencies
    57 endef
    58 
    59 TOOL_OPENWATCOM-16_COMPILE_C_DEPEND =
    60 TOOL_OPENWATCOM-16_COMPILE_C_DEPORD =
    61 TOOL_OPENWATCOM-16_COMPILE_C_OUTPUT = $(obj).err
    62 define TOOL_OPENWATCOM-16_COMPILE_C_CMDS
    63         $(QUIET) $(call TOOL_OPENWATCOM_ENV_SETUP) $(TOOL_OPENWATCOM_CC16) \
    64                 $(flags) \
    65                 $(addsuffix , $(addprefix -i=, $(subst /,\\,$(incs)))) \
    66                 $(addprefix -d, $(defs)) \
    67                 -fo=$(subst /,\\,$(obj)) \
    68                 -fr=$(subst /,\\,$(obj)).err \
    69                 $(subst /,\\,$(abspath $(source)))
    70         $(QUIET)$(APPEND) -n $(obj).err
    71 ## @todo dependencies
    72 endef
    73 
    74 TOOL_OPENWATCOM-16_COMPILE_CXX_DEPEND =
    75 TOOL_OPENWATCOM-16_COMPILE_CXX_DEPORD =
    76 TOOL_OPENWATCOM-16_COMPILE_CXX_OUTPUT = $(obj).err
    77 define TOOL_OPENWATCOM-16_COMPILE_CXX_CMDS
    78         $(QUIET) $(call TOOL_OPENWATCOM_ENV_SETUP) $(TOOL_OPENWATCOM_CXX16) \
    79                 $(flags) \
    80                 $(addsuffix , $(addprefix -i=, $(subst /,\\,$(incs)))) \
    81                 $(addprefix -d, $(defs)) \
    82                 -fo=$(subst /,\\,$(obj)) \
    83                 -fr=$(subst /,\\,$(obj)).err \
    84                 $(subst /,\\,$(abspath $(source)))
    85         $(QUIET)$(APPEND) -n $(obj).err
    86 ## @todo dependencies
    87 endef
    88 
    89 TOOL_OPENWATCOM-16_COMPILE_RC_OUTPUT =
    90 TOOL_OPENWATCOM-16_COMPILE_RC_DEPEND =
    91 TOOL_OPENWATCOM-16_COMPILE_RC_DEPORD =
    92 define TOOL_OPENWATCOM-16_COMPILE_RC_CMDS
    93         $(QUIET) $(call TOOL_OPENWATCOM_ENV_SETUP) \
    94                 $(TOOL_OPENWATCOM_RC) -r\
    95                 $(flags) \
    96                 $(addprefix -i=, $(subst /,\\,$(incs))) \
    97                 $(addprefix -d, $(defs))\
    98                 -fo=$(subst /,\\,obj) \
    99                 $(subst /,\\,$(abspath $(source)))
    100 endef
    101 
    102 TOOL_OPENWATCOM-16_LINK_LIBRARY_OUTPUT = $(outbase).rsp
    103 TOOL_OPENWATCOM-16_LINK_LIBRARY_DEPEND = $(othersrc)
    104 TOOL_OPENWATCOM-16_LINK_LIBRARY_DEPORD =
    105 define TOOL_OPENWATCOM-16_LINK_LIBRARY_CMDS
    106         $(QUIET)$(APPEND) -tn $(outbase).rsp $(foreach obj,$(subst /,\,$(objs) $(othersrc)),'+"$(obj)"')
    107         $(QUIET)$(TOOL_OPENWATCOM_ENV_SETUP) $(TOOL_OPENWATCOM_AR) $(flags) $(subst /,\\,$(out)) @$(outbase).rsp
    108 endef
    109 
    110 TOOL_OPENWATCOM-16_LINK_PROGRAM_OUTPUT = $(outbase).map
    111 TOOL_OPENWATCOM-16_LINK_PROGRAM_DEPEND = $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) $(othersrc)
    112 TOOL_OPENWATCOM-16_LINK_PROGRAM_DEPORD =
    113 define TOOL_OPENWATCOM-16_LINK_PROGRAM_CMDS
    114         $(QUIET)$(call TOOL_OPENWATCOM_ENV_SETUP,$(subst $(SP),,$(addsuffix ;,$(libpath)))) \
    115                 $(TOOL_OPENWATCOM_LD16) \
    116                 $(flags) \
    117                 -fe=$(subst /,\\,$(out)) \
    118                 -fm=$(subst /,\\,$(outbase).map) \
    119                 $(subst /,\\,$(filter-out %.res,$(objs))) \
    120                 $(subst /,\\,$(libs)) \
    121                 $(subst /,\\,$(othersrc))
     44TOOL_OPENWATCOM-WL_LINK_PROGRAM_OUTPUT = $(outbase).map $(outbase).rsp
     45TOOL_OPENWATCOM-WL_LINK_PROGRAM_DEPEND = $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) $(othersrc)
     46TOOL_OPENWATCOM-WL_LINK_PROGRAM_DEPORD =
     47define TOOL_OPENWATCOM-WL_LINK_PROGRAM_CMDS
     48        $(QUIET)$(APPEND) -t $(outbase).rsp '$(flags)'
     49        $(if $(libpath),$(QUIET)$(APPEND) -n $(outbase).rsp $(foreach p,$(subst /,\,$(libpath))\
     50                ,'LIBPath $p'),)
     51        $(if $(objs),$(QUIET)$(APPEND) -n $(outbase).rsp $(foreach o,$(subst /,\,$(filter-out %.res,$(objs)) $(othersrc))\
     52                ,'$(if $(filter %.lib %.a,$l),LIB,)File $o'),)
     53        $(if $(libs),$(QUIET)$(APPEND) -n $(outbase).rsp $(foreach l,$(subst /,\,$(libs))\
     54                ,'Library $l'),)
     55        $(QUIET)$(APPEND) -n $(outbase).rsp 'Map=$(outbase).map'
     56        $(QUIET)$(call TOOL_OPENWATCOM_ENV_SETUP) \
     57                $(TOOL_OPENWATCOM_WLINK) @$(outbase).rsp
    12258        $(if $(filter %.res,$(objs)), $(QUIET)$(call TOOL_OPENWATCOM_ENV_SETUP) \
    12359                $(TOOL_OPENWATCOM_RC) \
     
    12763endef
    12864
    129 TOOL_OPENWATCOM-16_LINK_DLL_OUTPUT = $(outbase).map
    130 TOOL_OPENWATCOM-16_LINK_DLL_DEPEND = $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) $(othersrc)
    131 TOOL_OPENWATCOM-16_LINK_DLL_DEPORD =
    132 define TOOL_OPENWATCOM-16_LINK_DLL_CMDS
    133         $(QUIET)$(call TOOL_OPENWATCOM_ENV_SETUP,$(subst $(SP),,$(addsuffix ;,$(libpath)))) \
    134                 $(TOOL_OPENWATCOM_LD16) \
    135                 $(flags) \
    136                 -fe=$(subst /,\\,$(out)) \
    137                 -fm=$(subst /,\\,$(outbase).map) \
    138                 $(subst /,\\,$(filter-out %.res,$(objs))) \
    139                 $(subst /,\\,$(libs)) \
    140                 $(subst /,\\,$(othersrc))
    141         $(if $(filter %.res,$(objs)), $(QUIET)$(call TOOL_OPENWATCOM_ENV_SETUP) \
    142                 $(TOOL_OPENWATCOM_RC) \
    143                         $(filter -bt=%,$(flags)) \
    144                         /fe=$(subst /,\\,$(out)) \
    145                         $(subst /,\\,$(filter %.res,$(objs))))
    146 endef
     65TOOL_OPENWATCOM-WL_LINK_DLL_OUTPUT     = $(TOOL_OPENWATCOM-WL_LINK_PROGRAM_OUTPUT)
     66TOOL_OPENWATCOM-WL_LINK_DLL_DEPEND     = $(TOOL_OPENWATCOM-WL_LINK_PROGRAM_DEPEND)
     67TOOL_OPENWATCOM-WL_LINK_DLL_DEPORD     = $(TOOL_OPENWATCOM-WL_LINK_PROGRAM_DEPORD)
     68TOOL_OPENWATCOM-WL_LINK_DLL_CMDS       = $(TOOL_OPENWATCOM-WL_LINK_PROGRAM_CMDS)
    14769
    148 TOOL_OPENWATCOM-16_LINK_SYSMOD_OUTPUT = $(outbase).map
    149 TOOL_OPENWATCOM-16_LINK_SYSMOD_DEPEND = $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) $(othersrc)
    150 TOOL_OPENWATCOM-16_LINK_SYSMOD_DEPORD =
    151 define TOOL_OPENWATCOM-16_LINK_SYSMOD_CMDS
    152         $(QUIET)$(call TOOL_OPENWATCOM_ENV_SETUP,$(subst $(SP),,$(addsuffix ;,$(libpath)))) \
    153                 $(TOOL_OPENWATCOM_LD16) \
    154                 $(flags) \
    155                 -fe=$(subst /,\\,$(out)) \
    156                 -fm=$(subst /,\\,$(outbase).map) \
    157                 $(subst /,\\,$(filter-out %.res,$(objs))) \
    158                 $(subst /,\\,$(libs)) \
    159                 $(subst /,\\,$(othersrc))
    160         $(if $(filter %.res,$(objs)), $(QUIET)$(call TOOL_OPENWATCOM_ENV_SETUP) \
    161                 $(TOOL_OPENWATCOM_RC) \
    162                         $(filter -bt=%,$(flags)) \
    163                         /fe=$(subst /,\\,$(out)) \
    164                         $(subst /,\\,$(filter %.res,$(objs))))
    165 endef
     70TOOL_OPENWATCOM-WL_LINK_SYSMOD_OUTPUT  = $(TOOL_OPENWATCOM-WL_LINK_PROGRAM_OUTPUT)
     71TOOL_OPENWATCOM-WL_LINK_SYSMOD_DEPEND  = $(TOOL_OPENWATCOM-WL_LINK_PROGRAM_DEPEND)
     72TOOL_OPENWATCOM-WL_LINK_SYSMOD_DEPORD  = $(TOOL_OPENWATCOM-WL_LINK_PROGRAM_DEPORD)
     73TOOL_OPENWATCOM-WL_LINK_SYSMOD_CMDS    = $(TOOL_OPENWATCOM-WL_LINK_PROGRAM_CMDS)
    16674
     75TOOL_OPENWATCOM-WL_LINK_MISCBIN_OUTPUT = $(TOOL_OPENWATCOM-WL_LINK_PROGRAM_OUTPUT)
     76TOOL_OPENWATCOM-WL_LINK_MISCBIN_DEPEND = $(TOOL_OPENWATCOM-WL_LINK_PROGRAM_DEPEND)
     77TOOL_OPENWATCOM-WL_LINK_MISCBIN_DEPORD = $(TOOL_OPENWATCOM-WL_LINK_PROGRAM_DEPORD)
     78TOOL_OPENWATCOM-WL_LINK_MISCBIN_CMDS   = $(TOOL_OPENWATCOM-WL_LINK_PROGRAM_CMDS)
     79
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