Ignore:
Timestamp:
Jun 28, 2014, 6:02:41 PM (11 years ago)
Author:
bird
Message:

OPENWATCOM.kmk: Added support for basic emximp .imp-files.

File:
1 edited

Legend:

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

    r2731 r2732  
    262262TOOL_OPENWATCOM_LINK_LIBRARY_DEPORD =
    263263define TOOL_OPENWATCOM_LINK_LIBRARY_CMDS
    264         $(QUIET)$(APPEND) -tn $(outbase).rsp $(foreach obj,$(call TOOL_OPENWATCOM_FIX_SLASHES,$(objs) $(othersrc)),'+"$(obj)"')
     264        $(QUIET)$(APPEND) -tn $(outbase).rsp $(foreach obj,$(call TOOL_OPENWATCOM_FIX_SLASHES,$(objs) $(filter-out %.imp,$(othersrc))),'+"$(obj)"')
     265        $(if $(filter %.imp,$(othersrc)),$(SED) \
     266                -e 's/;.*$(DOLLAR)$(DOLLAR)//g' \
     267                -e 's/^[[:space:]][[:space:]]*//g' \
     268                -e 's/[[:space:]][[:space:]]*$(DOLLAR)$(DOLLAR)//g' \
     269                -e '/^[[:space:]]*$(DOLLAR)$(DOLLAR)/d' \
     270                -e 's/[[:space:]][[:space:]]*/ /g' \
     271                -e 's/\([^ ][^ ]*\) \([^ ][^ ]*\) \([^ ][^ ]*\) \([^ ][^ ]*\).*/++\1.\2.\3/' \
     272        $(filter %.imp,$(othersrc)) \
     273               --append $(outbase).rsp \
     274        )
    265275        $(QUIET)$(TOOL_OPENWATCOM_ENV_SETUP) $(TOOL_OPENWATCOM_AR) $(flags) $(call TOOL_OPENWATCOM_FIX_SLASHES,$(out)) @$(outbase).rsp
    266276endef
Note: See TracChangeset for help on using the changeset viewer.