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 |
|
---|
35 | TOOL_WATCOMC11C-16 = Watcom C/C++ v11.0c - 16-bit targets.
|
---|
36 | TOOL_WATCOMC11C-16_EXTENDS = WATCOMC11C
|
---|
37 |
|
---|
38 | TOOL_WATCOMC11C-16_COMPILE_C_DEPEND =
|
---|
39 | TOOL_WATCOMC11C-16_COMPILE_C_DEPORD =
|
---|
40 | TOOL_WATCOMC11C-16_COMPILE_C_OUTPUT = $(obj).err
|
---|
41 | define 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
|
---|
51 | endef
|
---|
52 |
|
---|
53 | TOOL_WATCOMC11C-16_COMPILE_CXX_DEPEND =
|
---|
54 | TOOL_WATCOMC11C-16_COMPILE_CXX_DEPORD =
|
---|
55 | TOOL_WATCOMC11C-16_COMPILE_CXX_OUTPUT = $(obj).err
|
---|
56 | define 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
|
---|
66 | endef
|
---|
67 |
|
---|
68 | TOOL_WATCOMC11C-16_COMPILE_RC_OUTPUT =
|
---|
69 | TOOL_WATCOMC11C-16_COMPILE_RC_DEPEND =
|
---|
70 | TOOL_WATCOMC11C-16_COMPILE_RC_DEPORD =
|
---|
71 | define 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)))
|
---|
79 | endef
|
---|
80 |
|
---|
81 | TOOL_WATCOMC11C-16_LINK_LIBRARY_OUTPUT = ## @todo $(outbase).rsp
|
---|
82 | TOOL_WATCOMC11C-16_LINK_LIBRARY_DEPEND = $(othersrc)
|
---|
83 | TOOL_WATCOMC11C-16_LINK_LIBRARY_DEPORD =
|
---|
84 | define 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)") ";" )
|
---|
91 | endef
|
---|
92 |
|
---|
93 | TOOL_WATCOMC11C-16_LINK_PROGRAM_OUTPUT = $(outbase).map
|
---|
94 | TOOL_WATCOMC11C-16_LINK_PROGRAM_DEPEND = $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) $(othersrc)
|
---|
95 | TOOL_WATCOMC11C-16_LINK_PROGRAM_DEPORD =
|
---|
96 | define 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))))
|
---|
110 | endef
|
---|
111 |
|
---|
112 | TOOL_WATCOMC11C-16_LINK_DLL_OUTPUT = $(outbase).map
|
---|
113 | TOOL_WATCOMC11C-16_LINK_DLL_DEPEND = $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) $(othersrc)
|
---|
114 | TOOL_WATCOMC11C-16_LINK_DLL_DEPORD =
|
---|
115 | define 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))))
|
---|
129 | endef
|
---|
130 |
|
---|
131 | TOOL_WATCOMC11C-16_LINK_SYSMOD_OUTPUT = $(outbase).map
|
---|
132 | TOOL_WATCOMC11C-16_LINK_SYSMOD_DEPEND = $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) $(othersrc)
|
---|
133 | TOOL_WATCOMC11C-16_LINK_SYSMOD_DEPORD =
|
---|
134 | define 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))))
|
---|
148 | endef
|
---|
149 |
|
---|