Ignore:
Timestamp:
Nov 17, 2008, 3:27:44 AM (17 years ago)
Author:
bird
Message:

Watcom librarian commands.

File:
1 edited

Legend:

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

    r2068 r2069  
    4141TOOL_OPENWATCOM-16_LDFLAGS.win  ?= -bt=windows
    4242
    43                                                        
     43
     44TOOL_OPENWATCOM-16_COMPILE_AS_DEPEND =
     45TOOL_OPENWATCOM-16_COMPILE_AS_DEPORD =
     46TOOL_OPENWATCOM-16_COMPILE_AS_OUTPUT = $(obj).err
     47define 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   
     57endef
     58
    4459TOOL_OPENWATCOM-16_COMPILE_C_DEPEND =
    4560TOOL_OPENWATCOM-16_COMPILE_C_DEPORD =
     
    85100endef
    86101
    87 TOOL_OPENWATCOM-16_LINK_LIBRARY_OUTPUT = ## @todo $(outbase).rsp
     102TOOL_OPENWATCOM-16_LINK_LIBRARY_OUTPUT = $(outbase).rsp
    88103TOOL_OPENWATCOM-16_LINK_LIBRARY_DEPEND = $(othersrc)
    89104TOOL_OPENWATCOM-16_LINK_LIBRARY_DEPORD =
    90105define TOOL_OPENWATCOM-16_LINK_LIBRARY_CMDS
    91         $(if $(strip $(othersrc)),\
    92                 $(QUIET)$(TOOL_OPENWATCOM_ENV_SETUP) \
    93                 $(TOOL_OPENWATCOM_IMP) $(TOOL_OPENWATCOM_IMPFLAGS) $(subst /,\\,$(out)) $(subst /,\\,$(othersrc)) )
    94         $(if $(strip $(objs)),$(QUIET)$(TOOL_OPENWATCOM_ENV_SETUP) \
    95                 $(QUIET)$(TOOL_OPENWATCOM_ENV_SETUP) \
    96                 $(TOOL_OPENWATCOM_AR) $(flags) $(subst /,\\,$(out)) $(foreach obj,$(subst /,\\,$(objs)),+"$(obj)") ";" )
     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
    97108endef
    98109
Note: See TracChangeset for help on using the changeset viewer.