VirtualBox

Changeset 2069 in kBuild


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

Watcom librarian commands.

Location:
trunk/kBuild/tools
Files:
4 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
  • 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
  • trunk/kBuild/tools/WATCOMC11C-16.kmk

    r2068 r2069  
    8888TOOL_WATCOMC11C-16_LINK_LIBRARY_DEPORD =
    8989define TOOL_WATCOMC11C-16_LINK_LIBRARY_CMDS
    90         $(if $(strip $(othersrc)),\
    91                 $(QUIET)$(TOOL_WATCOMC11C_ENV_SETUP) \
    92                 $(TOOL_WATCOMC11C_IMP) $(TOOL_WATCOMC11C_IMPFLAGS) $(subst /,\\,$(out)) $(subst /,\\,$(othersrc)) )
    93         $(if $(strip $(objs)),$(QUIET)$(TOOL_WATCOMC11C_ENV_SETUP) \
    94                 $(QUIET)$(TOOL_WATCOMC11C_ENV_SETUP) \
    95                 $(TOOL_WATCOMC11C_AR) $(flags) $(subst /,\\,$(out)) $(foreach obj,$(subst /,\\,$(objs)),+"$(obj)") ";" )
     90        $(QUIET)$(APPEND) -tn $(outbase).rsp $(foreach obj,$(subst /,\,$(objs) $(othersrc)),'+"$(obj)"')
     91        $(QUIET)$(TOOL_WATCOMC11C_ENV_SETUP) $(TOOL_WATCOMC11C_AR) $(flags) $(subst /,\\,$(out)) @$(outbase).rsp
    9692endef
    9793
  • trunk/kBuild/tools/WATCOMC11C.kmk

    r2066 r2069  
    180180endef
    181181
    182 TOOL_WATCOMC11C_LINK_LIBRARY_OUTPUT = ## @todo $(outbase).rsp
     182TOOL_WATCOMC11C_LINK_LIBRARY_OUTPUT = $(outbase).rsp
    183183TOOL_WATCOMC11C_LINK_LIBRARY_DEPEND = $(othersrc)
    184184TOOL_WATCOMC11C_LINK_LIBRARY_DEPORD =
    185185define TOOL_WATCOMC11C_LINK_LIBRARY_CMDS
    186         $(if $(strip $(othersrc)),\
    187                 $(QUIET)$(TOOL_WATCOMC11C_ENV_SETUP) \
    188                 $(TOOL_WATCOMC11C_IMP) $(TOOL_WATCOMC11C_IMPFLAGS) $(subst /,\\,$(out)) $(subst /,\\,$(othersrc)) )
    189         $(if $(strip $(objs)),$(QUIET)$(TOOL_WATCOMC11C_ENV_SETUP) \
    190                 $(QUIET)$(TOOL_WATCOMC11C_ENV_SETUP) \
    191                 $(TOOL_WATCOMC11C_AR) $(flags) $(subst /,\\,$(out)) $(foreach obj,$(subst /,\\,$(objs)),+"$(obj)") ";" )
     186        $(QUIET)$(APPEND) -tn $(outbase).rsp $(foreach obj,$(subst /,\,$(objs) $(othersrc)),'+"$(obj)"')
     187        $(QUIET)$(TOOL_WATCOMC11C_ENV_SETUP) $(TOOL_WATCOMC11C_AR) $(flags) $(subst /,\\,$(out)) @$(outbase).rsp
    192188endef
    193189
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