]> git.saurik.com Git - wxWidgets.git/blob - utils/wxrc/makefile.wat
using scan-line polygon conversion for constructing wxregion
[wxWidgets.git] / utils / wxrc / makefile.wat
1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.2.9 (http://www.bakefile.org)
4 # Do not modify, all changes will be overwritten!
5 # =========================================================================
6
7 !include ../../build/msw/config.wat
8
9 # -------------------------------------------------------------------------
10 # Do not modify the rest of this file!
11 # -------------------------------------------------------------------------
12
13 # Speed up compilation a bit:
14 !ifdef __LOADDLL__
15 ! loaddll wcc wccd
16 ! loaddll wccaxp wccdaxp
17 ! loaddll wcc386 wccd386
18 ! loaddll wpp wppdi86
19 ! loaddll wppaxp wppdaxp
20 ! loaddll wpp386 wppd386
21 ! if $(__VERSION__) >= 1280
22 ! loaddll wlink wlinkd
23 ! else
24 ! loaddll wlink wlink
25 ! endif
26 ! loaddll wlib wlibd
27 !endif
28
29 # We need these variables in some bakefile-made rules:
30 WATCOM_CWD = $+ $(%cdrive):$(%cwd) $-
31
32 ### Conditionally set variables: ###
33
34 WIN32_TOOLKIT_LOWERCASE =
35 !ifeq TOOLKIT GTK
36 WIN32_TOOLKIT_LOWERCASE = gtk
37 !endif
38 !ifeq TOOLKIT MSW
39 WIN32_TOOLKIT_LOWERCASE = msw
40 !endif
41 PORTNAME =
42 !ifeq USE_GUI 0
43 PORTNAME = base
44 !endif
45 !ifeq USE_GUI 1
46 PORTNAME = $(WIN32_TOOLKIT_LOWERCASE)$(TOOLKIT_VERSION)
47 !endif
48 WXBASEPORT =
49 !ifeq TOOLKIT MAC
50 WXBASEPORT = _carbon
51 !endif
52 COMPILER_VERSION =
53 !ifeq OFFICIAL_BUILD 1
54 COMPILER_VERSION = ERROR-COMPILER-VERSION-MUST-BE-SET-FOR-OFFICIAL-BUILD
55 !endif
56 WXDEBUGFLAG =
57 !ifeq BUILD debug
58 WXDEBUGFLAG = d
59 !endif
60 WXUNICODEFLAG =
61 !ifeq UNICODE 1
62 WXUNICODEFLAG = u
63 !endif
64 WXUNIVNAME =
65 !ifeq WXUNIV 1
66 WXUNIVNAME = univ
67 !endif
68 WXDLLFLAG =
69 !ifeq SHARED 1
70 WXDLLFLAG = dll
71 !endif
72 LIBTYPE_SUFFIX =
73 !ifeq SHARED 0
74 LIBTYPE_SUFFIX = lib
75 !endif
76 !ifeq SHARED 1
77 LIBTYPE_SUFFIX = dll
78 !endif
79 EXTRALIBS_FOR_BASE =
80 !ifeq MONOLITHIC 0
81 EXTRALIBS_FOR_BASE =
82 !endif
83 !ifeq MONOLITHIC 1
84 EXTRALIBS_FOR_BASE =
85 !endif
86 __wxrc___depname =
87 !ifeq USE_XRC 1
88 __wxrc___depname = $(OBJS)\wxrc.exe
89 !endif
90 __DEBUGINFO_0 =
91 !ifeq BUILD debug
92 !ifeq DEBUG_INFO default
93 __DEBUGINFO_0 = -d2
94 !endif
95 !endif
96 !ifeq BUILD release
97 !ifeq DEBUG_INFO default
98 __DEBUGINFO_0 = -d0
99 !endif
100 !endif
101 !ifeq DEBUG_INFO 0
102 __DEBUGINFO_0 = -d0
103 !endif
104 !ifeq DEBUG_INFO 1
105 __DEBUGINFO_0 = -d2
106 !endif
107 __DEBUGINFO_1 =
108 !ifeq BUILD debug
109 !ifeq DEBUG_INFO default
110 __DEBUGINFO_1 = debug all
111 !endif
112 !endif
113 !ifeq BUILD release
114 !ifeq DEBUG_INFO default
115 __DEBUGINFO_1 =
116 !endif
117 !endif
118 !ifeq DEBUG_INFO 0
119 __DEBUGINFO_1 =
120 !endif
121 !ifeq DEBUG_INFO 1
122 __DEBUGINFO_1 = debug all
123 !endif
124 __OPTIMIZEFLAG_2 =
125 !ifeq BUILD debug
126 __OPTIMIZEFLAG_2 = -od
127 !endif
128 !ifeq BUILD release
129 __OPTIMIZEFLAG_2 = -ot -ox
130 !endif
131 __THREADSFLAG_5 =
132 !ifeq USE_THREADS 0
133 __THREADSFLAG_5 =
134 !endif
135 !ifeq USE_THREADS 1
136 __THREADSFLAG_5 = -bm
137 !endif
138 __RUNTIME_LIBS_6 =
139 !ifeq RUNTIME_LIBS dynamic
140 __RUNTIME_LIBS_6 = -br
141 !endif
142 !ifeq RUNTIME_LIBS static
143 __RUNTIME_LIBS_6 =
144 !endif
145 __RTTIFLAG_7 =
146 !ifeq USE_RTTI 0
147 __RTTIFLAG_7 =
148 !endif
149 !ifeq USE_RTTI 1
150 __RTTIFLAG_7 = -xr
151 !endif
152 __EXCEPTIONSFLAG_8 =
153 !ifeq USE_EXCEPTIONS 0
154 __EXCEPTIONSFLAG_8 =
155 !endif
156 !ifeq USE_EXCEPTIONS 1
157 __EXCEPTIONSFLAG_8 = -xs
158 !endif
159 __WXUNIV_DEFINE_p =
160 !ifeq WXUNIV 1
161 __WXUNIV_DEFINE_p = -d__WXUNIVERSAL__
162 !endif
163 __DEBUG_DEFINE_p =
164 !ifeq DEBUG_FLAG 0
165 __DEBUG_DEFINE_p = -dwxDEBUG_LEVEL=0
166 !endif
167 __NDEBUG_DEFINE_p =
168 !ifeq BUILD release
169 __NDEBUG_DEFINE_p = -dNDEBUG
170 !endif
171 __EXCEPTIONS_DEFINE_p =
172 !ifeq USE_EXCEPTIONS 0
173 __EXCEPTIONS_DEFINE_p = -dwxNO_EXCEPTIONS
174 !endif
175 __RTTI_DEFINE_p =
176 !ifeq USE_RTTI 0
177 __RTTI_DEFINE_p = -dwxNO_RTTI
178 !endif
179 __THREAD_DEFINE_p =
180 !ifeq USE_THREADS 0
181 __THREAD_DEFINE_p = -dwxNO_THREADS
182 !endif
183 __UNICODE_DEFINE_p =
184 !ifeq UNICODE 0
185 __UNICODE_DEFINE_p = -dwxUSE_UNICODE=0
186 !endif
187 !ifeq UNICODE 1
188 __UNICODE_DEFINE_p = -d_UNICODE
189 !endif
190 ____CAIRO_INCLUDEDIR_FILENAMES_p =
191 !ifeq USE_CAIRO 1
192 ____CAIRO_INCLUDEDIR_FILENAMES_p = -i=$(CAIRO_ROOT)\include\cairo
193 !endif
194 __DLLFLAG_p =
195 !ifeq SHARED 1
196 __DLLFLAG_p = -dWXUSINGDLL
197 !endif
198 __WXLIB_XML_p =
199 !ifeq MONOLITHIC 0
200 __WXLIB_XML_p = &
201 wxbase$(WXBASEPORT)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_xml.lib
202 !endif
203 __WXLIB_BASE_p =
204 !ifeq MONOLITHIC 0
205 __WXLIB_BASE_p = &
206 wxbase$(WXBASEPORT)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
207 !endif
208 __WXLIB_MONO_p =
209 !ifeq MONOLITHIC 1
210 __WXLIB_MONO_p = &
211 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
212 !endif
213 __LIB_PNG_IF_MONO_p =
214 !ifeq MONOLITHIC 1
215 __LIB_PNG_IF_MONO_p = $(__LIB_PNG_p)
216 !endif
217 __LIB_PNG_p =
218 !ifeq USE_GUI 1
219 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
220 !endif
221 __CAIRO_LIB_p =
222 !ifeq USE_CAIRO 1
223 __CAIRO_LIB_p = cairo.lib
224 !endif
225 ____CAIRO_LIBDIR_FILENAMES_p =
226 !ifeq USE_CAIRO 1
227 ____CAIRO_LIBDIR_FILENAMES_p = libpath $(CAIRO_ROOT)\lib
228 !endif
229
230 ### Variables: ###
231
232 WX_RELEASE_NODOT = 29
233 COMPILER_PREFIX = wat
234 OBJS = &
235 $(COMPILER_PREFIX)$(COMPILER_VERSION)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
236 LIBDIRNAME = &
237 .\..\..\lib\$(COMPILER_PREFIX)$(COMPILER_VERSION)_$(LIBTYPE_SUFFIX)$(CFG)
238 SETUPHDIR = &
239 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
240 WXRC_CXXFLAGS = $(__DEBUGINFO_0) $(__OPTIMIZEFLAG_2) $(__THREADSFLAG_5) &
241 $(__RUNTIME_LIBS_6) -d__WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p) &
242 $(__DEBUG_DEFINE_p) $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) &
243 $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) &
244 -i=$(SETUPHDIR) -i=.\..\..\include $(____CAIRO_INCLUDEDIR_FILENAMES_p) -wx &
245 -wcd=549 -wcd=656 -wcd=657 -wcd=667 -i=. $(__DLLFLAG_p) -dwxUSE_GUI=0 &
246 $(__RTTIFLAG_7) $(__EXCEPTIONSFLAG_8) $(CPPFLAGS) $(CXXFLAGS)
247 WXRC_OBJECTS = &
248 $(OBJS)\wxrc_wxrc.obj
249
250
251 all : $(OBJS)
252 $(OBJS) :
253 -if not exist $(OBJS) mkdir $(OBJS)
254
255 ### Targets: ###
256
257 all : .SYMBOLIC $(__wxrc___depname)
258
259 clean : .SYMBOLIC
260 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
261 -if exist $(OBJS)\*.res del $(OBJS)\*.res
262 -if exist $(OBJS)\*.lbc del $(OBJS)\*.lbc
263 -if exist $(OBJS)\*.ilk del $(OBJS)\*.ilk
264 -if exist $(OBJS)\*.pch del $(OBJS)\*.pch
265 -if exist $(OBJS)\wxrc.exe del $(OBJS)\wxrc.exe
266
267 !ifeq USE_XRC 1
268 $(OBJS)\wxrc.exe : $(WXRC_OBJECTS)
269 @%create $(OBJS)\wxrc.lbc
270 @%append $(OBJS)\wxrc.lbc option quiet
271 @%append $(OBJS)\wxrc.lbc name $^@
272 @%append $(OBJS)\wxrc.lbc option caseexact
273 @%append $(OBJS)\wxrc.lbc $(__DEBUGINFO_1) libpath $(LIBDIRNAME) system nt ref 'main_' $(____CAIRO_LIBDIR_FILENAMES_p) $(LDFLAGS)
274 @for %i in ($(WXRC_OBJECTS)) do @%append $(OBJS)\wxrc.lbc file %i
275 @for %i in ( $(__WXLIB_XML_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_PNG_IF_MONO_p) wxzlib$(WXDEBUGFLAG).lib wxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib wxexpat$(WXDEBUGFLAG).lib $(EXTRALIBS_FOR_BASE) $(__CAIRO_LIB_p) kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib wininet.lib) do @%append $(OBJS)\wxrc.lbc library %i
276 @%append $(OBJS)\wxrc.lbc
277 @for %i in () do @%append $(OBJS)\wxrc.lbc option stack=%i
278 wlink @$(OBJS)\wxrc.lbc
279 !endif
280
281 $(OBJS)\wxrc_wxrc.obj : .AUTODEPEND .\wxrc.cpp
282 $(CXX) -bt=nt -zq -fo=$^@ $(WXRC_CXXFLAGS) $<
283