]> git.saurik.com Git - wxWidgets.git/blame - samples/dll/makefile.wat
wxMessageBox off the main thread lost result code.
[wxWidgets.git] / samples / dll / makefile.wat
CommitLineData
61aba460
VS
1# =========================================================================\r
2# This makefile was generated by\r
00eef16d 3# Bakefile 0.2.9 (http://www.bakefile.org)\r
61aba460
VS
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
34PORTNAME =\r
35!ifeq USE_GUI 0\r
36PORTNAME = base\r
37!endif\r
38!ifeq USE_GUI 1\r
bed99c22 39PORTNAME = msw$(TOOLKIT_VERSION)\r
4863951a
VS
40!endif\r
41COMPILER_VERSION =\r
42!ifeq OFFICIAL_BUILD 1\r
43COMPILER_VERSION = ERROR-COMPILER-VERSION-MUST-BE-SET-FOR-OFFICIAL-BUILD\r
22a3b6e4 44!endif\r
61aba460
VS
45WXDEBUGFLAG =\r
46!ifeq BUILD debug\r
47WXDEBUGFLAG = d\r
48!endif\r
49WXUNICODEFLAG =\r
50!ifeq UNICODE 1\r
51WXUNICODEFLAG = u\r
52!endif\r
53WXUNIVNAME =\r
54!ifeq WXUNIV 1\r
55WXUNIVNAME = univ\r
56!endif\r
57WXDLLFLAG =\r
58!ifeq SHARED 1\r
59WXDLLFLAG = dll\r
60!endif\r
61LIBTYPE_SUFFIX =\r
62!ifeq SHARED 0\r
63LIBTYPE_SUFFIX = lib\r
64!endif\r
65!ifeq SHARED 1\r
66LIBTYPE_SUFFIX = dll\r
67!endif\r
68EXTRALIBS_FOR_BASE =\r
69!ifeq MONOLITHIC 0\r
70EXTRALIBS_FOR_BASE = \r
71!endif\r
72!ifeq MONOLITHIC 1\r
51ec29ea 73EXTRALIBS_FOR_BASE = \r
61aba460
VS
74!endif\r
75__wx_exe___depname =\r
76!ifeq SHARED 0\r
77__wx_exe___depname = $(OBJS)\wx_exe.exe\r
78!endif\r
da8b1d4b
KO
79__WXLIB_CORE_p =\r
80!ifeq MONOLITHIC 0\r
81__WXLIB_CORE_p = &\r
82 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib\r
83!endif\r
84__WXLIB_BASE_p =\r
85!ifeq MONOLITHIC 0\r
86__WXLIB_BASE_p = &\r
bed99c22 87 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib\r
da8b1d4b
KO
88!endif\r
89__WXLIB_MONO_p =\r
90!ifeq MONOLITHIC 1\r
91__WXLIB_MONO_p = &\r
92 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib\r
93!endif\r
a4830bb5
VZ
94__LIB_SCINTILLA_IF_MONO_p =\r
95!ifeq MONOLITHIC 1\r
e7bdf0ac 96!ifeq USE_STC 1\r
a4830bb5
VZ
97__LIB_SCINTILLA_IF_MONO_p = wxscintilla$(WXDEBUGFLAG).lib\r
98!endif\r
e7bdf0ac 99!endif\r
da8b1d4b
KO
100__LIB_TIFF_p =\r
101!ifeq USE_GUI 1\r
102__LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib\r
103!endif\r
104__LIB_JPEG_p =\r
105!ifeq USE_GUI 1\r
106__LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib\r
107!endif\r
108__LIB_PNG_p =\r
109!ifeq USE_GUI 1\r
110__LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib\r
111!endif\r
da8b1d4b
KO
112__CAIRO_LIB_p =\r
113!ifeq USE_CAIRO 1\r
114__CAIRO_LIB_p = cairo.lib\r
115!endif\r
116____CAIRO_LIBDIR_FILENAMES =\r
117!ifeq USE_CAIRO 1\r
118____CAIRO_LIBDIR_FILENAMES = libpath $(CAIRO_ROOT)\lib\r
119!endif\r
120__DEBUGINFO_0 =\r
61aba460
VS
121!ifeq BUILD debug\r
122!ifeq DEBUG_INFO default\r
da8b1d4b 123__DEBUGINFO_0 = -d2\r
61aba460
VS
124!endif\r
125!endif\r
126!ifeq BUILD release\r
127!ifeq DEBUG_INFO default\r
da8b1d4b 128__DEBUGINFO_0 = -d0\r
61aba460
VS
129!endif\r
130!endif\r
131!ifeq DEBUG_INFO 0\r
da8b1d4b 132__DEBUGINFO_0 = -d0\r
61aba460
VS
133!endif\r
134!ifeq DEBUG_INFO 1\r
da8b1d4b 135__DEBUGINFO_0 = -d2\r
61aba460
VS
136!endif\r
137__DEBUGINFO =\r
138!ifeq BUILD debug\r
139!ifeq DEBUG_INFO default\r
140__DEBUGINFO = debug all\r
141!endif\r
142!endif\r
143!ifeq BUILD release\r
144!ifeq DEBUG_INFO default\r
145__DEBUGINFO = \r
146!endif\r
147!endif\r
148!ifeq DEBUG_INFO 0\r
149__DEBUGINFO = \r
150!endif\r
151!ifeq DEBUG_INFO 1\r
152__DEBUGINFO = debug all\r
153!endif\r
154__OPTIMIZEFLAG =\r
155!ifeq BUILD debug\r
156__OPTIMIZEFLAG = -od\r
157!endif\r
158!ifeq BUILD release\r
159__OPTIMIZEFLAG = -ot -ox\r
160!endif\r
161__THREADSFLAG =\r
162!ifeq USE_THREADS 0\r
163__THREADSFLAG = \r
164!endif\r
165!ifeq USE_THREADS 1\r
166__THREADSFLAG = -bm\r
167!endif\r
168__RUNTIME_LIBS =\r
169!ifeq RUNTIME_LIBS dynamic\r
170__RUNTIME_LIBS = -br\r
171!endif\r
172!ifeq RUNTIME_LIBS static\r
173__RUNTIME_LIBS = \r
174!endif\r
175__RTTIFLAG =\r
176!ifeq USE_RTTI 0\r
177__RTTIFLAG = \r
178!endif\r
179!ifeq USE_RTTI 1\r
180__RTTIFLAG = -xr\r
181!endif\r
182__EXCEPTIONSFLAG =\r
183!ifeq USE_EXCEPTIONS 0\r
184__EXCEPTIONSFLAG = \r
185!endif\r
186!ifeq USE_EXCEPTIONS 1\r
187__EXCEPTIONSFLAG = -xs\r
188!endif\r
61aba460
VS
189__WXUNIV_DEFINE_p =\r
190!ifeq WXUNIV 1\r
191__WXUNIV_DEFINE_p = -d__WXUNIVERSAL__\r
192!endif\r
193__DEBUG_DEFINE_p =\r
194!ifeq DEBUG_FLAG 0\r
195__DEBUG_DEFINE_p = -dwxDEBUG_LEVEL=0\r
196!endif\r
da8b1d4b
KO
197__NDEBUG_DEFINE_p =\r
198!ifeq BUILD release\r
199__NDEBUG_DEFINE_p = -dNDEBUG\r
200!endif\r
61aba460
VS
201__EXCEPTIONS_DEFINE_p =\r
202!ifeq USE_EXCEPTIONS 0\r
203__EXCEPTIONS_DEFINE_p = -dwxNO_EXCEPTIONS\r
204!endif\r
205__RTTI_DEFINE_p =\r
206!ifeq USE_RTTI 0\r
207__RTTI_DEFINE_p = -dwxNO_RTTI\r
208!endif\r
209__THREAD_DEFINE_p =\r
210!ifeq USE_THREADS 0\r
211__THREAD_DEFINE_p = -dwxNO_THREADS\r
212!endif\r
213__UNICODE_DEFINE_p =\r
214!ifeq UNICODE 0\r
215__UNICODE_DEFINE_p = -dwxUSE_UNICODE=0\r
216!endif\r
217!ifeq UNICODE 1\r
218__UNICODE_DEFINE_p = -d_UNICODE\r
219!endif\r
61aba460
VS
220____CAIRO_INCLUDEDIR_FILENAMES =\r
221!ifeq USE_CAIRO 1\r
222____CAIRO_INCLUDEDIR_FILENAMES = -i=$(CAIRO_ROOT)\include\cairo\r
223!endif\r
224__DLLFLAG_p =\r
225!ifeq SHARED 1\r
226__DLLFLAG_p = -dWXUSINGDLL\r
227!endif\r
228\r
229### Variables: ###\r
230\r
e7bdf0ac 231WX_RELEASE_NODOT = 30\r
61aba460
VS
232COMPILER_PREFIX = wat\r
233OBJS = &\r
4863951a
VS
234 $(COMPILER_PREFIX)$(COMPILER_VERSION)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)\r
235LIBDIRNAME = &\r
236 .\..\..\lib\$(COMPILER_PREFIX)$(COMPILER_VERSION)_$(LIBTYPE_SUFFIX)$(CFG)\r
61aba460
VS
237SETUPHDIR = &\r
238 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)\r
da8b1d4b 239MY_DLL_CXXFLAGS = -bd $(__DEBUGINFO_0) $(__OPTIMIZEFLAG) $(__THREADSFLAG) &\r
bed99c22
VZ
240 $(__RUNTIME_LIBS) -d__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) &\r
241 $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) &\r
242 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) -i=$(SETUPHDIR) &\r
243 -i=.\..\..\include $(____CAIRO_INCLUDEDIR_FILENAMES) -wx -wcd=549 -wcd=656 &\r
244 -wcd=657 -wcd=667 $(__DLLFLAG_p) -dMY_DLL_BUILDING -i=. $(__RTTIFLAG) &\r
245 $(__EXCEPTIONSFLAG) $(CPPFLAGS) $(CXXFLAGS)\r
61aba460
VS
246MY_DLL_OBJECTS = &\r
247 $(OBJS)\my_dll_my_dll.obj\r
da8b1d4b 248WX_EXE_CXXFLAGS = $(__DEBUGINFO_0) $(__OPTIMIZEFLAG) $(__THREADSFLAG) &\r
bed99c22
VZ
249 $(__RUNTIME_LIBS) -d__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) &\r
250 $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) &\r
251 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) -i=$(SETUPHDIR) &\r
252 -i=.\..\..\include $(____CAIRO_INCLUDEDIR_FILENAMES) -wx -wcd=549 -wcd=656 &\r
253 -wcd=657 -wcd=667 -i=. $(__DLLFLAG_p) -i=.\..\..\samples -dNOPCH $(__RTTIFLAG) &\r
254 $(__EXCEPTIONSFLAG) $(CPPFLAGS) $(CXXFLAGS)\r
61aba460 255WX_EXE_OBJECTS = &\r
1ffe64ef 256 $(OBJS)\wx_exe_wx_exe.obj\r
da8b1d4b
KO
257SDK_EXE_CXXFLAGS = $(__DEBUGINFO_0) $(__OPTIMIZEFLAG) $(__THREADSFLAG) &\r
258 $(__RUNTIME_LIBS) $(__RTTIFLAG) $(__EXCEPTIONSFLAG) $(CPPFLAGS) $(CXXFLAGS)\r
259SDK_EXE_OBJECTS = &\r
260 $(OBJS)\sdk_exe_sdk_exe.obj\r
61aba460
VS
261\r
262\r
263all : $(OBJS)\r
264$(OBJS) :\r
265 -if not exist $(OBJS) mkdir $(OBJS)\r
266\r
267### Targets: ###\r
268\r
da8b1d4b 269all : .SYMBOLIC $(OBJS)\my_dll.dll $(__wx_exe___depname) $(OBJS)\sdk_exe.exe\r
61aba460
VS
270\r
271clean : .SYMBOLIC \r
272 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj\r
273 -if exist $(OBJS)\*.res del $(OBJS)\*.res\r
274 -if exist $(OBJS)\*.lbc del $(OBJS)\*.lbc\r
275 -if exist $(OBJS)\*.ilk del $(OBJS)\*.ilk\r
276 -if exist $(OBJS)\*.pch del $(OBJS)\*.pch\r
277 -if exist $(OBJS)\my_dll.dll del $(OBJS)\my_dll.dll\r
278 -if exist $(OBJS)\my_dll.lib del $(OBJS)\my_dll.lib\r
279 -if exist $(OBJS)\wx_exe.exe del $(OBJS)\wx_exe.exe\r
da8b1d4b 280 -if exist $(OBJS)\sdk_exe.exe del $(OBJS)\sdk_exe.exe\r
61aba460
VS
281\r
282$(OBJS)\my_dll.dll : $(MY_DLL_OBJECTS)\r
283 @%create $(OBJS)\my_dll.lbc\r
284 @%append $(OBJS)\my_dll.lbc option quiet\r
285 @%append $(OBJS)\my_dll.lbc name $^@\r
286 @%append $(OBJS)\my_dll.lbc option caseexact\r
287 @%append $(OBJS)\my_dll.lbc $(__DEBUGINFO) libpath $(LIBDIRNAME) $(____CAIRO_LIBDIR_FILENAMES) $(LDFLAGS)\r
288 @for %i in ($(MY_DLL_OBJECTS)) do @%append $(OBJS)\my_dll.lbc file %i\r
a4830bb5 289 @for %i in ( $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_SCINTILLA_IF_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_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)\my_dll.lbc library %i\r
61aba460
VS
290 @%append $(OBJS)\my_dll.lbc\r
291 @%append $(OBJS)\my_dll.lbc system nt_dll\r
292 wlink @$(OBJS)\my_dll.lbc\r
293 wlib -q -n -b $(OBJS)\my_dll.lib +$^@\r
294\r
295!ifeq SHARED 0\r
296$(OBJS)\wx_exe.exe : $(WX_EXE_OBJECTS) $(OBJS)\wx_exe_sample.res $(OBJS)\my_dll.dll\r
297 @%create $(OBJS)\wx_exe.lbc\r
298 @%append $(OBJS)\wx_exe.lbc option quiet\r
299 @%append $(OBJS)\wx_exe.lbc name $^@\r
300 @%append $(OBJS)\wx_exe.lbc option caseexact\r
301 @%append $(OBJS)\wx_exe.lbc $(__DEBUGINFO) libpath $(LIBDIRNAME) system nt_win ref '_WinMain@16' $(____CAIRO_LIBDIR_FILENAMES) $(LDFLAGS)\r
302 @for %i in ($(WX_EXE_OBJECTS)) do @%append $(OBJS)\wx_exe.lbc file %i\r
a4830bb5 303 @for %i in ( $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) $(OBJS)\my_dll.lib $(__WXLIB_MONO_p) $(__LIB_SCINTILLA_IF_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_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)\wx_exe.lbc library %i\r
61aba460
VS
304 @%append $(OBJS)\wx_exe.lbc option resource=$(OBJS)\wx_exe_sample.res\r
305 @for %i in () do @%append $(OBJS)\wx_exe.lbc option stack=%i\r
306 wlink @$(OBJS)\wx_exe.lbc\r
307!endif\r
308\r
da8b1d4b
KO
309$(OBJS)\sdk_exe.exe : $(SDK_EXE_OBJECTS) $(OBJS)\my_dll.dll\r
310 @%create $(OBJS)\sdk_exe.lbc\r
311 @%append $(OBJS)\sdk_exe.lbc option quiet\r
312 @%append $(OBJS)\sdk_exe.lbc name $^@\r
313 @%append $(OBJS)\sdk_exe.lbc option caseexact\r
314 @%append $(OBJS)\sdk_exe.lbc $(__DEBUGINFO) system nt_win ref '_WinMain@16' $(LDFLAGS)\r
315 @for %i in ($(SDK_EXE_OBJECTS)) do @%append $(OBJS)\sdk_exe.lbc file %i\r
316 @for %i in ( $(OBJS)\my_dll.lib user32.lib) do @%append $(OBJS)\sdk_exe.lbc library %i\r
317 @%append $(OBJS)\sdk_exe.lbc\r
318 @for %i in () do @%append $(OBJS)\sdk_exe.lbc option stack=%i\r
319 wlink @$(OBJS)\sdk_exe.lbc\r
320\r
61aba460
VS
321$(OBJS)\my_dll_my_dll.obj : .AUTODEPEND .\my_dll.cpp\r
322 $(CXX) -bt=nt -zq -fo=$^@ $(MY_DLL_CXXFLAGS) $<\r
323\r
324$(OBJS)\wx_exe_sample.res : .AUTODEPEND .\..\..\samples\sample.rc\r
bed99c22 325 wrc -q -ad -bt=nt -r -fo=$^@ -d__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) -i=$(SETUPHDIR) -i=.\..\..\include $(____CAIRO_INCLUDEDIR_FILENAMES) -i=. $(__DLLFLAG_p) -i=.\..\..\samples -dNOPCH $<\r
61aba460 326\r
1ffe64ef 327$(OBJS)\wx_exe_wx_exe.obj : .AUTODEPEND .\wx_exe.cpp\r
61aba460
VS
328 $(CXX) -bt=nt -zq -fo=$^@ $(WX_EXE_CXXFLAGS) $<\r
329\r
da8b1d4b
KO
330$(OBJS)\sdk_exe_sdk_exe.obj : .AUTODEPEND .\sdk_exe.cpp\r
331 $(CXX) -bt=nt -zq -fo=$^@ $(SDK_EXE_CXXFLAGS) $<\r
332\r