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.kmk

    r2068 r2069  
    103103                                                       
    104104# General Properties used by kBuild
     105TOOL_OPENWATCOM_ASOBJSUFF         ?= .obj
     106TOOL_OPENWATCOM_ASFLAGS           ?= -zq
     107TOOL_OPENWATCOM_ASFLAGS.os2       ?= -bt=os2
     108TOOL_OPENWATCOM_ASFLAGS.win       ?= -bt=nt
     109
    105110TOOL_OPENWATCOM_COBJSUFF         ?= .obj
    106111TOOL_OPENWATCOM_CFLAGS           ?= -zq
    107112TOOL_OPENWATCOM_CFLAGS.os2       ?= -bt=os2
    108113TOOL_OPENWATCOM_CFLAGS.win       ?= -bt=nt
    109 TOOL_OPENWATCOM_CFLAGS.debug     ?=
    110 TOOL_OPENWATCOM_CFLAGS.release   ?=
    111114TOOL_OPENWATCOM_CINCS            ?= $(PATH_TOOL_OPENWATCOM)/h
    112 TOOL_OPENWATCOM_CDEFS            ?=
    113115
    114116TOOL_OPENWATCOM_CXXOBJSUFF       ?= .obj
     
    116118TOOL_OPENWATCOM_CXXFLAGS.os2     ?= -bt=os2
    117119TOOL_OPENWATCOM_CXXFLAGS.win     ?= -bt=nt
    118 TOOL_OPENWATCOM_CXXFLAGS.debug   ?=
    119 TOOL_OPENWATCOM_CXXFLAGS.release ?=
    120120TOOL_OPENWATCOM_CXXINCS          ?= $(PATH_TOOL_OPENWATCOM)/h
    121 TOOL_OPENWATCOM_CXXDEFS          ?=
    122121
    123122TOOL_OPENWATCOM_RCOBJSUFF        ?= .res
     
    126125TOOL_OPENWATCOM_RCFLAGS.win      ?= -bt=nt
    127126TOOL_OPENWATCOM_RCINCS           ?= $(PATH_TOOL_OPENWATCOM)/h
    128 TOOL_OPENWATCOM_RCDEFS           ?=
    129127
    130128TOOL_OPENWATCOM_ARFLAGS          ?=
     
    134132TOOL_OPENWATCOM_LDFLAGS.os2      ?= -bt=os2
    135133TOOL_OPENWATCOM_LDFLAGS.win      ?= -bt=nt
    136 TOOL_OPENWATCOM_LDFLAGS.debug    ?=
    137 
    138 
     134
     135
     136TOOL_OPENWATCOM_COMPILE_AS_DEPEND =
     137TOOL_OPENWATCOM_COMPILE_AS_DEPORD =
     138TOOL_OPENWATCOM_COMPILE_AS_OUTPUT = $(obj).err
     139define TOOL_OPENWATCOM_COMPILE_AS_CMDS
     140        $(QUIET) $(call TOOL_OPENWATCOM_ENV_SETUP) $(TOOL_OPENWATCOM_AS) \
     141                $(flags) \
     142                $(addsuffix , $(addprefix -i=, $(subst /,\\,$(incs)))) \
     143                $(addprefix -d, $(defs)) \
     144                -fo=$(subst /,\\,$(obj)) \
     145                -fr=$(subst /,\\,$(obj)).err \
     146                $(subst /,\\,$(abspath $(source)))
     147        $(QUIET)$(APPEND) -n $(obj).err
     148## @todo dependencies   
     149endef
     150
     151                                                                                 
    139152TOOL_OPENWATCOM_COMPILE_C_DEPEND =
    140153TOOL_OPENWATCOM_COMPILE_C_DEPORD =
     
    184197TOOL_OPENWATCOM_LINK_LIBRARY_DEPORD =
    185198define TOOL_OPENWATCOM_LINK_LIBRARY_CMDS
    186         $(if $(strip $(othersrc)),\
    187                 $(QUIET)$(TOOL_OPENWATCOM_ENV_SETUP) \
    188                 $(TOOL_OPENWATCOM_IMP) $(TOOL_OPENWATCOM_IMPFLAGS) $(subst /,\\,$(out)) $(subst /,\\,$(othersrc)) )
    189         $(if $(strip $(objs)),$(QUIET)$(TOOL_OPENWATCOM_ENV_SETUP) \
    190                 $(QUIET)$(TOOL_OPENWATCOM_ENV_SETUP) \
    191                 $(TOOL_OPENWATCOM_AR) $(flags) $(subst /,\\,$(out)) $(foreach obj,$(subst /,\\,$(objs)),+"$(obj)") ";" )
     199        $(QUIET)$(APPEND) -tn $(outbase).rsp $(foreach obj,$(subst /,\,$(objs) $(othersrc)),'+"$(obj)"')
     200        $(QUIET)$(TOOL_OPENWATCOM_ENV_SETUP) $(TOOL_OPENWATCOM_AR) $(flags) $(subst /,\\,$(out)) @$(outbase).rsp
    192201endef
    193202
Note: See TracChangeset for help on using the changeset viewer.