Ignore:
Timestamp:
Apr 27, 2012, 3:19:55 PM (13 years ago)
Author:
bird
Message:

tools/OPENWATCOM*: Assembler fix. Only windows and os/2 needs the slashes switched.

File:
1 edited

Legend:

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

    r2413 r2572  
    4646TOOL_OPENWATCOM-16_COMPILE_AS_OUTPUT = $(obj).err
    4747define TOOL_OPENWATCOM-16_COMPILE_AS_CMDS
    48         $(QUIET) $(call TOOL_OPENWATCOM_ENV_SETUP) $(TOOL_OPENWATCOM_CC16) \
     48        $(QUIET) $(call TOOL_OPENWATCOM_ENV_SETUP) $(TOOL_OPENWATCOM_AS) \
    4949                $(flags) \
    50                 $(addsuffix , $(addprefix -i=, $(subst /,\\,$(incs)))) \
     50                $(addsuffix , $(addprefix -i=, $(call TOOL_OPENWATCOM_FIX_SLASHES,$(incs)))) \
    5151                $(addprefix -d, $(defs)) \
    52                 -fo=$(subst /,\\,$(obj)) \
    53                 -fr=$(subst /,\\,$(obj)).err \
    54                 $(subst /,\\,$(abspath $(source)))
     52                -fo=$(call TOOL_OPENWATCOM_FIX_SLASHES,$(obj)) \
     53                -fr=$(call TOOL_OPENWATCOM_FIX_SLASHES,$(obj)).err \
     54                $(call TOOL_OPENWATCOM_FIX_SLASHES,$(abspath $(source)))
    5555        $(QUIET)$(APPEND) -n $(obj).err
    5656## @todo dependencies
     
    6363        $(QUIET) $(call TOOL_OPENWATCOM_ENV_SETUP) $(TOOL_OPENWATCOM_CC16) \
    6464                $(flags) \
    65                 $(addsuffix , $(addprefix -i=, $(subst /,\\,$(incs)))) \
     65                $(addsuffix , $(addprefix -i=, $(call TOOL_OPENWATCOM_FIX_SLASHES,$(incs)))) \
    6666                $(addprefix -d, $(defs)) \
    67                 -fo=$(subst /,\\,$(obj)) \
    68                 -fr=$(subst /,\\,$(obj)).err \
    69                 $(subst /,\\,$(abspath $(source)))
     67                -fo=$(call TOOL_OPENWATCOM_FIX_SLASHES,$(obj)) \
     68                -fr=$(call TOOL_OPENWATCOM_FIX_SLASHES,$(obj)).err \
     69                $(call TOOL_OPENWATCOM_FIX_SLASHES,$(abspath $(source)))
    7070        $(QUIET)$(APPEND) -n $(obj).err
    7171## @todo dependencies
     
    7878        $(QUIET) $(call TOOL_OPENWATCOM_ENV_SETUP) $(TOOL_OPENWATCOM_CXX16) \
    7979                $(flags) \
    80                 $(addsuffix , $(addprefix -i=, $(subst /,\\,$(incs)))) \
     80                $(addsuffix , $(addprefix -i=, $(call TOOL_OPENWATCOM_FIX_SLASHES,$(incs)))) \
    8181                $(addprefix -d, $(defs)) \
    82                 -fo=$(subst /,\\,$(obj)) \
    83                 -fr=$(subst /,\\,$(obj)).err \
    84                 $(subst /,\\,$(abspath $(source)))
     82                -fo=$(call TOOL_OPENWATCOM_FIX_SLASHES,$(obj)) \
     83                -fr=$(call TOOL_OPENWATCOM_FIX_SLASHES,$(obj)).err \
     84                $(call TOOL_OPENWATCOM_FIX_SLASHES,$(abspath $(source)))
    8585        $(QUIET)$(APPEND) -n $(obj).err
    8686## @todo dependencies
     
    9494                $(TOOL_OPENWATCOM_RC) -r\
    9595                $(flags) \
    96                 $(addprefix -i=, $(subst /,\\,$(incs))) \
     96                $(addprefix -i=, $(call TOOL_OPENWATCOM_FIX_SLASHES,$(incs))) \
    9797                $(addprefix -d, $(defs))\
    98                 -fo=$(subst /,\\,$(obj)) \
    99                 $(subst /,\\,$(abspath $(source)))
     98                -fo=$(call TOOL_OPENWATCOM_FIX_SLASHES,$(obj)) \
     99                $(call TOOL_OPENWATCOM_FIX_SLASHES,$(abspath $(source)))
    100100endef
    101101
     
    104104TOOL_OPENWATCOM-16_LINK_LIBRARY_DEPORD =
    105105define 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
     106        $(QUIET)$(APPEND) -tn $(outbase).rsp $(foreach obj,$(call TOOL_OPENWATCOM_FIX_SLASHES,$(objs) $(othersrc)),'+"$(obj)"')
     107        $(QUIET)$(TOOL_OPENWATCOM_ENV_SETUP) $(TOOL_OPENWATCOM_AR) $(flags) $(call TOOL_OPENWATCOM_FIX_SLASHES,$(out)) @$(outbase).rsp
    108108endef
    109109
    110110TOOL_OPENWATCOM-16_LINK_PROGRAM_OUTPUT = $(outbase).map
     111TOOL_OPENWATCOM-16_LINK_PROGRAM_OUTPUT_MAYBE = $(outbase).sym
    111112TOOL_OPENWATCOM-16_LINK_PROGRAM_DEPEND = $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) $(othersrc)
    112113TOOL_OPENWATCOM-16_LINK_PROGRAM_DEPORD =
     
    115116                $(TOOL_OPENWATCOM_LD16) \
    116117                $(flags) \
    117                 -fe=$(subst /,\\,$(out)) \
    118                 -fm=$(subst /,\\,$(outbase).map) \
    119                 $(subst /,\\,$(filter-out %.res,$(objs))) \
    120                 $(subst /,\\,$(libs)) \
    121                 $(subst /,\\,$(othersrc))
     118                -fe=$(call TOOL_OPENWATCOM_FIX_SLASHES,$(out)) \
     119                -fm=$(call TOOL_OPENWATCOM_FIX_SLASHES,$(outbase).map) \
     120                $(call TOOL_OPENWATCOM_FIX_SLASHES,$(filter-out %.res,$(objs))) \
     121                $(call TOOL_OPENWATCOM_FIX_SLASHES,$(libs)) \
     122                $(call TOOL_OPENWATCOM_FIX_SLASHES,$(othersrc))
    122123        $(if $(filter %.res,$(objs)), $(QUIET)$(call TOOL_OPENWATCOM_ENV_SETUP) \
    123124                $(TOOL_OPENWATCOM_RC) \
    124125                        $(filter -bt=%,$(flags)) \
    125                         /fe=$(subst /,\\,$(out)) \
    126                         $(subst /,\\,$(filter %.res,$(objs))))
     126                        /fe=$(call TOOL_OPENWATCOM_FIX_SLASHES,$(out)) \
     127                        $(call TOOL_OPENWATCOM_FIX_SLASHES,$(filter %.res,$(objs))))
    127128endef
    128129
    129130TOOL_OPENWATCOM-16_LINK_DLL_OUTPUT = $(outbase).map
     131TOOL_OPENWATCOM-16_LINK_DLL_OUTPUT_MAYBE = $(outbase).sym
    130132TOOL_OPENWATCOM-16_LINK_DLL_DEPEND = $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) $(othersrc)
    131133TOOL_OPENWATCOM-16_LINK_DLL_DEPORD =
     
    134136                $(TOOL_OPENWATCOM_LD16) \
    135137                $(flags) \
    136                 -fe=$(subst /,\\,$(out)) \
    137                 -fm=$(subst /,\\,$(outbase).map) \
    138                 $(subst /,\\,$(filter-out %.res,$(objs))) \
    139                 $(subst /,\\,$(libs)) \
    140                 $(subst /,\\,$(othersrc))
     138                -fe=$(call TOOL_OPENWATCOM_FIX_SLASHES,$(out)) \
     139                -fm=$(call TOOL_OPENWATCOM_FIX_SLASHES,$(outbase).map) \
     140                $(call TOOL_OPENWATCOM_FIX_SLASHES,$(filter-out %.res,$(objs))) \
     141                $(call TOOL_OPENWATCOM_FIX_SLASHES,$(libs)) \
     142                $(call TOOL_OPENWATCOM_FIX_SLASHES,$(othersrc))
    141143        $(if $(filter %.res,$(objs)), $(QUIET)$(call TOOL_OPENWATCOM_ENV_SETUP) \
    142144                $(TOOL_OPENWATCOM_RC) \
    143145                        $(filter -bt=%,$(flags)) \
    144                         /fe=$(subst /,\\,$(out)) \
    145                         $(subst /,\\,$(filter %.res,$(objs))))
     146                        /fe=$(call TOOL_OPENWATCOM_FIX_SLASHES,$(out)) \
     147                        $(call TOOL_OPENWATCOM_FIX_SLASHES,$(filter %.res,$(objs))))
    146148endef
    147149
    148150TOOL_OPENWATCOM-16_LINK_SYSMOD_OUTPUT = $(outbase).map
     151TOOL_OPENWATCOM-16_LINK_SYSMOD_OUTPUT_MAYBE = $(outbase).sym
    149152TOOL_OPENWATCOM-16_LINK_SYSMOD_DEPEND = $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) $(othersrc)
    150153TOOL_OPENWATCOM-16_LINK_SYSMOD_DEPORD =
     
    153156                $(TOOL_OPENWATCOM_LD16) \
    154157                $(flags) \
    155                 -fe=$(subst /,\\,$(out)) \
    156                 -fm=$(subst /,\\,$(outbase).map) \
    157                 $(subst /,\\,$(filter-out %.res,$(objs))) \
    158                 $(subst /,\\,$(libs)) \
    159                 $(subst /,\\,$(othersrc))
     158                -fe=$(call TOOL_OPENWATCOM_FIX_SLASHES,$(out)) \
     159                -fm=$(call TOOL_OPENWATCOM_FIX_SLASHES,$(outbase).map) \
     160                $(call TOOL_OPENWATCOM_FIX_SLASHES,$(filter-out %.res,$(objs))) \
     161                $(call TOOL_OPENWATCOM_FIX_SLASHES,$(libs)) \
     162                $(call TOOL_OPENWATCOM_FIX_SLASHES,$(othersrc))
    160163        $(if $(filter %.res,$(objs)), $(QUIET)$(call TOOL_OPENWATCOM_ENV_SETUP) \
    161164                $(TOOL_OPENWATCOM_RC) \
    162165                        $(filter -bt=%,$(flags)) \
    163                         /fe=$(subst /,\\,$(out)) \
    164                         $(subst /,\\,$(filter %.res,$(objs))))
     166                        /fe=$(call TOOL_OPENWATCOM_FIX_SLASHES,$(out)) \
     167                        $(call TOOL_OPENWATCOM_FIX_SLASHES,$(filter %.res,$(objs))))
    165168endef
    166169
Note: See TracChangeset for help on using the changeset viewer.