source: trunk/kBuild/tools/WATCOMC11C-16.kmk@ 2066

Last change on this file since 2066 was 2065, checked in by bird, 17 years ago

VAC308 hacking, Watcom C v11.0c, MASM v5.10 and MS Link v5.10 (OS/2 related).

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 5.6 KB
Line 
1# $Id: WATCOMC11C-16.kmk 2065 2008-11-17 00:47:59Z bird $
2## @file
3# kBuild Tool Config - Watcom C v11.0c, 16-bit targets.
4#
5# @remarks wrc is untested, so are DLLs, and programs.
6
7#
8# Copyright (c) 2008 knut st. osmundsen <bird-kBuild-spam@anduin.net>
9#
10# This file is part of kBuild.
11#
12# kBuild is free software; you can redistribute it and/or modify
13# it under the terms of the GNU General Public License as published by
14# the Free Software Foundation; either version 2 of the License, or
15# (at your option) any later version.
16#
17# kBuild is distributed in the hope that it will be useful,
18# but WITHOUT ANY WARRANTY; without even the implied warranty of
19# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20# GNU General Public License for more details.
21#
22# You should have received a copy of the GNU General Public License
23# along with kBuild; if not, write to the Free Software
24# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
25#
26#
27# As a special exception you are granted permission to include this file, via
28# the kmk include directive, as you wish without this in itself causing the
29# resulting makefile, program or whatever to be covered by the GPL license.
30# This exception does not however invalidate any other reasons why the makefile,
31# program, whatever should not be covered the GPL.
32#
33#
34
35TOOL_WATCOMC11C-16 = Watcom C/C++ v11.0c - 16-bit targets.
36TOOL_WATCOMC11C-16_EXTENDS = WATCOMC11C
37
38TOOL_WATCOMC11C-16_COMPILE_C_DEPEND =
39TOOL_WATCOMC11C-16_COMPILE_C_DEPORD =
40TOOL_WATCOMC11C-16_COMPILE_C_OUTPUT = $(obj).err
41define TOOL_WATCOMC11C-16_COMPILE_C_CMDS
42 $(QUIET) $(call TOOL_WATCOMC11C_ENV_SETUP) $(TOOL_WATCOMC11C_CC16) \
43 $(flags) \
44 $(addsuffix , $(addprefix -i=, $(subst /,\\,$(incs)))) \
45 $(addprefix -d, $(defs)) \
46 -fo=$(subst /,\\,$(obj)) \
47 -fr=$(subst /,\\,$(obj)).err \
48 $(subst /,\\,$(abspath $(source)))
49 $(QUIET)$(APPEND) -n $(obj).err
50## @todo dependencies
51endef
52
53TOOL_WATCOMC11C-16_COMPILE_CXX_DEPEND =
54TOOL_WATCOMC11C-16_COMPILE_CXX_DEPORD =
55TOOL_WATCOMC11C-16_COMPILE_CXX_OUTPUT = $(obj).err
56define TOOL_WATCOMC11C-16_COMPILE_CXX_CMDS
57 $(QUIET) $(call TOOL_WATCOMC11C_ENV_SETUP) $(TOOL_WATCOMC11C_CXX16) \
58 $(flags) \
59 $(addsuffix , $(addprefix -i=, $(subst /,\\,$(incs)))) \
60 $(addprefix -d, $(defs)) \
61 -fo=$(subst /,\\,$(obj)) \
62 -fr=$(subst /,\\,$(obj)).err \
63 $(subst /,\\,$(abspath $(source)))
64 $(QUIET)$(APPEND) -n $(obj).err
65## @todo dependencies
66endef
67
68TOOL_WATCOMC11C-16_COMPILE_RC_OUTPUT =
69TOOL_WATCOMC11C-16_COMPILE_RC_DEPEND =
70TOOL_WATCOMC11C-16_COMPILE_RC_DEPORD =
71define TOOL_WATCOMC11C-16_COMPILE_RC_CMDS
72 $(QUIET) $(call TOOL_WATCOMC11C_ENV_SETUP) \
73 $(TOOL_WATCOMC11C_RC) -r\
74 $(flags) \
75 $(addprefix -i=, $(subst /,\\,$(incs))) \
76 $(addprefix -d, $(defs))\
77 -fo=$(subst /,\\,obj) \
78 $(subst /,\\,$(abspath $(source)))
79endef
80
81TOOL_WATCOMC11C-16_LINK_LIBRARY_OUTPUT = ## @todo $(outbase).rsp
82TOOL_WATCOMC11C-16_LINK_LIBRARY_DEPEND = $(othersrc)
83TOOL_WATCOMC11C-16_LINK_LIBRARY_DEPORD =
84define TOOL_WATCOMC11C-16_LINK_LIBRARY_CMDS
85 $(if $(strip $(othersrc)),\
86 $(QUIET)$(TOOL_WATCOMC11C_ENV_SETUP) \
87 $(TOOL_WATCOMC11C_IMP) $(TOOL_WATCOMC11C_IMPFLAGS) $(subst /,\\,$(out)) $(subst /,\\,$(othersrc)) )
88 $(if $(strip $(objs)),$(QUIET)$(TOOL_WATCOMC11C_ENV_SETUP) \
89 $(QUIET)$(TOOL_WATCOMC11C_ENV_SETUP) \
90 $(TOOL_WATCOMC11C_AR) $(flags) $(subst /,\\,$(out)) $(foreach obj,$(subst /,\\,$(objs)),+"$(obj)") ";" )
91endef
92
93TOOL_WATCOMC11C-16_LINK_PROGRAM_OUTPUT = $(outbase).map
94TOOL_WATCOMC11C-16_LINK_PROGRAM_DEPEND = $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) $(othersrc)
95TOOL_WATCOMC11C-16_LINK_PROGRAM_DEPORD =
96define TOOL_WATCOMC11C-16_LINK_PROGRAM_CMDS
97 $(QUIET)$(call TOOL_WATCOMC11C_ENV_SETUP,$(subst $(SP),,$(addsuffix ;,$(libpath)))) \
98 $(TOOL_WATCOMC11C_LD16) \
99 $(flags) \
100 -fe=$(subst /,\\,$(out)) \
101 -fm=$(subst /,\\,$(outbase).map) \
102 $(subst /,\\,$(filter-out %.res,$(objs))) \
103 $(subst /,\\,$(libs)) \
104 $(subst /,\\,$(othersrc))
105 $(if $(filter %.res,$(objs)), $(QUIET)$(call TOOL_WATCOMC11C_ENV_SETUP) \
106 $(TOOL_WATCOMC11C_RC) \
107 $(filter -bt=%,$(flags)) \
108 /fe=$(subst /,\\,$(out)) \
109 $(subst /,\\,$(filter %.res,$(objs))))
110endef
111
112TOOL_WATCOMC11C-16_LINK_DLL_OUTPUT = $(outbase).map
113TOOL_WATCOMC11C-16_LINK_DLL_DEPEND = $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) $(othersrc)
114TOOL_WATCOMC11C-16_LINK_DLL_DEPORD =
115define TOOL_WATCOMC11C-16_LINK_DLL_CMDS
116 $(QUIET)$(call TOOL_WATCOMC11C_ENV_SETUP,$(subst $(SP),,$(addsuffix ;,$(libpath)))) \
117 $(TOOL_WATCOMC11C_LD16) \
118 $(flags) \
119 -fe=$(subst /,\\,$(out)) \
120 -fm=$(subst /,\\,$(outbase).map) \
121 $(subst /,\\,$(filter-out %.res,$(objs))) \
122 $(subst /,\\,$(libs)) \
123 $(subst /,\\,$(othersrc))
124 $(if $(filter %.res,$(objs)), $(QUIET)$(call TOOL_WATCOMC11C_ENV_SETUP) \
125 $(TOOL_WATCOMC11C_RC) \
126 $(filter -bt=%,$(flags)) \
127 /fe=$(subst /,\\,$(out)) \
128 $(subst /,\\,$(filter %.res,$(objs))))
129endef
130
131TOOL_WATCOMC11C-16_LINK_SYSMOD_OUTPUT = $(outbase).map
132TOOL_WATCOMC11C-16_LINK_SYSMOD_DEPEND = $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) $(othersrc)
133TOOL_WATCOMC11C-16_LINK_SYSMOD_DEPORD =
134define TOOL_WATCOMC11C-16_LINK_SYSMOD_CMDS
135 $(QUIET)$(call TOOL_WATCOMC11C_ENV_SETUP,$(subst $(SP),,$(addsuffix ;,$(libpath)))) \
136 $(TOOL_WATCOMC11C_LD16) \
137 $(flags) \
138 -fe=$(subst /,\\,$(out)) \
139 -fm=$(subst /,\\,$(outbase).map) \
140 $(subst /,\\,$(filter-out %.res,$(objs))) \
141 $(subst /,\\,$(libs)) \
142 $(subst /,\\,$(othersrc))
143 $(if $(filter %.res,$(objs)), $(QUIET)$(call TOOL_WATCOMC11C_ENV_SETUP) \
144 $(TOOL_WATCOMC11C_RC) \
145 $(filter -bt=%,$(flags)) \
146 /fe=$(subst /,\\,$(out)) \
147 $(subst /,\\,$(filter %.res,$(objs))))
148endef
149
Note: See TracBrowser for help on using the repository browser.