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