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