]> git.saurik.com Git - wxWidgets.git/blame - samples/render/makefile.wat
mark the document as modified when its text control is (closes #10826)
[wxWidgets.git] / samples / render / makefile.wat
CommitLineData
2d611b5c
VS
1# =========================================================================
2# This makefile was generated by
95ff11c4 3# Bakefile 0.2.6 (http://www.bakefile.org)
2d611b5c
VS
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
95ff11c4
CE
21! if $(__VERSION__) >= 1280
22! loaddll wlink wlinkd
23! else
2d611b5c 24! loaddll wlink wlink
95ff11c4 25! endif
2d611b5c
VS
26! loaddll wlib wlibd
27!endif
28
29# We need these variables in some bakefile-made rules:
30WATCOM_CWD = $+ $(%cdrive):$(%cwd) $-
31
32### Conditionally set variables: ###
33
34PORTNAME =
35!ifeq USE_GUI 0
36PORTNAME = base
37!endif
38!ifeq USE_GUI 1
39PORTNAME = msw
40!endif
41WXDEBUGFLAG =
42!ifeq BUILD debug
43!ifeq DEBUG_FLAG default
44WXDEBUGFLAG = d
45!endif
46!endif
47!ifeq DEBUG_FLAG 1
48WXDEBUGFLAG = d
49!endif
2d611b5c
VS
50WXUNICODEFLAG =
51!ifeq UNICODE 1
52WXUNICODEFLAG = u
53!endif
54WXUNIVNAME =
55!ifeq WXUNIV 1
56WXUNIVNAME = univ
57!endif
b17c1746
DE
58WXDLLFLAG =
59!ifeq SHARED 1
60WXDLLFLAG = dll
61!endif
b14abf14
JS
62LIBTYPE_SUFFIX =
63!ifeq SHARED 0
64LIBTYPE_SUFFIX = lib
65!endif
66!ifeq SHARED 1
67LIBTYPE_SUFFIX = dll
68!endif
dd65d8c8
RN
69EXTRALIBS_FOR_BASE =
70!ifeq MONOLITHIC 0
71EXTRALIBS_FOR_BASE =
72!endif
73!ifeq MONOLITHIC 1
74EXTRALIBS_FOR_BASE =
75!endif
078c7a59
VS
76PLUGINSUFFIX =
77!ifeq BUILD debug
78!ifeq UNICODE 0
314a6446 79PLUGINSUFFIX = d
078c7a59
VS
80!endif
81!endif
82!ifeq BUILD debug
83!ifeq UNICODE 1
314a6446 84PLUGINSUFFIX = ud
078c7a59
VS
85!endif
86!endif
87!ifeq BUILD release
88!ifeq UNICODE 0
89PLUGINSUFFIX =
90!endif
91!endif
92!ifeq BUILD release
93!ifeq UNICODE 1
314a6446 94PLUGINSUFFIX = u
078c7a59
VS
95!endif
96!endif
b17c1746
DE
97__renddll___depname =
98!ifeq SHARED 1
99__renddll___depname = &
ae4ccf12 100 $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_wat.dll
b17c1746 101!endif
2d611b5c
VS
102__DEBUGINFO =
103!ifeq BUILD debug
104!ifeq DEBUG_INFO default
ec08d395 105__DEBUGINFO = -d2
2d611b5c
VS
106!endif
107!endif
108!ifeq BUILD release
109!ifeq DEBUG_INFO default
ec08d395 110__DEBUGINFO = -d0
2d611b5c
VS
111!endif
112!endif
113!ifeq DEBUG_INFO 0
ec08d395 114__DEBUGINFO = -d0
2d611b5c
VS
115!endif
116!ifeq DEBUG_INFO 1
ec08d395 117__DEBUGINFO = -d2
2d611b5c 118!endif
b71531ad 119__DEBUGINFO_1 =
2d611b5c
VS
120!ifeq BUILD debug
121!ifeq DEBUG_INFO default
b71531ad 122__DEBUGINFO_1 = debug all
2d611b5c
VS
123!endif
124!endif
125!ifeq BUILD release
126!ifeq DEBUG_INFO default
b71531ad 127__DEBUGINFO_1 =
2d611b5c
VS
128!endif
129!endif
130!ifeq DEBUG_INFO 0
b71531ad 131__DEBUGINFO_1 =
2d611b5c
VS
132!endif
133!ifeq DEBUG_INFO 1
b71531ad 134__DEBUGINFO_1 = debug all
2d611b5c 135!endif
b17c1746 136__OPTIMIZEFLAG =
2d611b5c 137!ifeq BUILD debug
b17c1746 138__OPTIMIZEFLAG = -od
2d611b5c 139!endif
b17c1746
DE
140!ifeq BUILD release
141__OPTIMIZEFLAG = -ot -ox
2d611b5c 142!endif
8c9f8f91
JS
143__THREADSFLAG =
144!ifeq USE_THREADS 0
145__THREADSFLAG =
146!endif
147!ifeq USE_THREADS 1
148__THREADSFLAG = -bm
149!endif
b17c1746
DE
150__RUNTIME_LIBS =
151!ifeq RUNTIME_LIBS dynamic
152__RUNTIME_LIBS = -br
2d611b5c 153!endif
b17c1746
DE
154!ifeq RUNTIME_LIBS static
155__RUNTIME_LIBS =
2d611b5c 156!endif
8c9f8f91
JS
157__RTTIFLAG =
158!ifeq USE_RTTI 0
159__RTTIFLAG =
b71531ad 160!endif
8c9f8f91
JS
161!ifeq USE_RTTI 1
162__RTTIFLAG = -xr
b14abf14 163!endif
8c9f8f91 164__EXCEPTIONSFLAG =
b14abf14 165!ifeq USE_EXCEPTIONS 0
8c9f8f91 166__EXCEPTIONSFLAG =
b14abf14
JS
167!endif
168!ifeq USE_EXCEPTIONS 1
8c9f8f91 169__EXCEPTIONSFLAG = -xs
b71531ad 170!endif
b17c1746
DE
171__WXUNIV_DEFINE_p =
172!ifeq WXUNIV 1
173__WXUNIV_DEFINE_p = -d__WXUNIVERSAL__
2d611b5c 174!endif
b17c1746 175__DEBUG_DEFINE_p =
2d611b5c 176!ifeq BUILD debug
b17c1746
DE
177!ifeq DEBUG_FLAG default
178__DEBUG_DEFINE_p = -d__WXDEBUG__
2d611b5c 179!endif
2d611b5c 180!endif
b17c1746
DE
181!ifeq DEBUG_FLAG 1
182__DEBUG_DEFINE_p = -d__WXDEBUG__
2d611b5c 183!endif
8c9f8f91
JS
184__EXCEPTIONS_DEFINE_p =
185!ifeq USE_EXCEPTIONS 0
186__EXCEPTIONS_DEFINE_p = -dwxNO_EXCEPTIONS
187!endif
188__RTTI_DEFINE_p =
189!ifeq USE_RTTI 0
190__RTTI_DEFINE_p = -dwxNO_RTTI
191!endif
192__THREAD_DEFINE_p =
193!ifeq USE_THREADS 0
194__THREAD_DEFINE_p = -dwxNO_THREADS
195!endif
2d611b5c 196__UNICODE_DEFINE_p =
7379e476
VZ
197!ifeq UNICODE 0
198__UNICODE_DEFINE_p = -dwxUSE_UNICODE=0
199!endif
2d611b5c 200!ifeq UNICODE 1
ec08d395 201__UNICODE_DEFINE_p = -d_UNICODE
2d611b5c 202!endif
3abcf424
RD
203__GFXCTX_DEFINE_p =
204!ifeq USE_GDIPLUS 1
205__GFXCTX_DEFINE_p = -dwxUSE_GRAPHICS_CONTEXT=1
206!endif
b17c1746
DE
207__DLLFLAG_p =
208!ifeq SHARED 1
209__DLLFLAG_p = -dWXUSINGDLL
2d611b5c
VS
210!endif
211__WXLIB_CORE_p =
212!ifeq MONOLITHIC 0
213__WXLIB_CORE_p = &
c33fae85 214 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
2d611b5c 215!endif
b17c1746
DE
216__WXLIB_BASE_p =
217!ifeq MONOLITHIC 0
c33fae85
RN
218__WXLIB_BASE_p = &
219 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
b17c1746 220!endif
2d611b5c
VS
221__WXLIB_MONO_p =
222!ifeq MONOLITHIC 1
223__WXLIB_MONO_p = &
c33fae85 224 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
2d611b5c 225!endif
b17c1746
DE
226__LIB_TIFF_p =
227!ifeq USE_GUI 1
9c2d002b 228__LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
2d611b5c 229!endif
b17c1746
DE
230__LIB_JPEG_p =
231!ifeq USE_GUI 1
9c2d002b 232__LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
b17c1746
DE
233!endif
234__LIB_PNG_p =
235!ifeq USE_GUI 1
9c2d002b 236__LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
2d611b5c 237!endif
3abcf424
RD
238__GDIPLUS_LIB_p =
239!ifeq USE_GDIPLUS 1
240__GDIPLUS_LIB_p = gdiplus.lib
241!endif
2d611b5c
VS
242
243### Variables: ###
244
ae4ccf12
RD
245WX_RELEASE_NODOT = 29
246WX_VERSION_NODOT = $(WX_RELEASE_NODOT)0
444833b3 247COMPILER_PREFIX = wat
2d611b5c 248OBJS = &
444833b3
CE
249 $(COMPILER_PREFIX)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
250LIBDIRNAME = .\..\..\lib\$(COMPILER_PREFIX)_$(LIBTYPE_SUFFIX)$(CFG)
b17c1746
DE
251SETUPHDIR = &
252 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
8c9f8f91
JS
253RENDER_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) &
254 $(__RUNTIME_LIBS) -d__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) &
255 $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) &
3abcf424
RD
256 $(__UNICODE_DEFINE_p) $(__GFXCTX_DEFINE_p) -i=$(SETUPHDIR) &
257 -i=.\..\..\include -wx -wcd=549 -wcd=656 -wcd=657 -wcd=667 -i=. $(__DLLFLAG_p) &
258 -i=.\..\..\samples -dNOPCH $(__RTTIFLAG) $(__EXCEPTIONSFLAG) $(CPPFLAGS) &
259 $(CXXFLAGS)
2d611b5c
VS
260RENDER_OBJECTS = &
261 $(OBJS)\render_render.obj
8c9f8f91
JS
262RENDDLL_CXXFLAGS = -bd $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) &
263 $(__RUNTIME_LIBS) -d__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) &
264 $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) &
3abcf424
RD
265 $(__UNICODE_DEFINE_p) $(__GFXCTX_DEFINE_p) -i=$(SETUPHDIR) &
266 -i=.\..\..\include -wx -wcd=549 -wcd=656 -wcd=657 -wcd=667 -dWXUSINGDLL &
267 $(__RTTIFLAG) $(__EXCEPTIONSFLAG) $(CPPFLAGS) $(CXXFLAGS)
b17c1746
DE
268RENDDLL_OBJECTS = &
269 $(OBJS)\renddll_renddll.obj
2d611b5c 270
2d611b5c
VS
271
272all : $(OBJS)
273$(OBJS) :
274 -if not exist $(OBJS) mkdir $(OBJS)
275
276### Targets: ###
277
278all : .SYMBOLIC $(OBJS)\render.exe $(__renddll___depname)
279
2d611b5c
VS
280clean : .SYMBOLIC
281 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
282 -if exist $(OBJS)\*.res del $(OBJS)\*.res
283 -if exist $(OBJS)\*.lbc del $(OBJS)\*.lbc
284 -if exist $(OBJS)\*.ilk del $(OBJS)\*.ilk
b14abf14 285 -if exist $(OBJS)\*.pch del $(OBJS)\*.pch
2d611b5c 286 -if exist $(OBJS)\render.exe del $(OBJS)\render.exe
ae4ccf12 287 -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_wat.dll del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_wat.dll
2d611b5c 288
b17c1746
DE
289$(OBJS)\render.exe : $(RENDER_OBJECTS) $(OBJS)\render_sample.res
290 @%create $(OBJS)\render.lbc
291 @%append $(OBJS)\render.lbc option quiet
292 @%append $(OBJS)\render.lbc name $^@
293 @%append $(OBJS)\render.lbc option caseexact
8ece421c 294 @%append $(OBJS)\render.lbc $(__DEBUGINFO_1) libpath $(LIBDIRNAME) system nt_win ref '_WinMain@16' $(LDFLAGS)
b17c1746 295 @for %i in ($(RENDER_OBJECTS)) do @%append $(OBJS)\render.lbc file %i
b44f5137 296 @for %i in ( $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) wxzlib$(WXDEBUGFLAG).lib wxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib wxexpat$(WXDEBUGFLAG).lib $(EXTRALIBS_FOR_BASE) $(__GDIPLUS_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)\render.lbc library %i
b17c1746 297 @%append $(OBJS)\render.lbc option resource=$(OBJS)\render_sample.res
77a7dfc1 298 @for %i in () do @%append $(OBJS)\render.lbc option stack=%i
b17c1746
DE
299 wlink @$(OBJS)\render.lbc
300
2d611b5c 301!ifeq SHARED 1
ae4ccf12 302$(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_wat.dll : $(RENDDLL_OBJECTS)
2d611b5c
VS
303 @%create $(OBJS)\renddll.lbc
304 @%append $(OBJS)\renddll.lbc option quiet
305 @%append $(OBJS)\renddll.lbc name $^@
75a0a7b7 306 @%append $(OBJS)\renddll.lbc option caseexact
8ece421c 307 @%append $(OBJS)\renddll.lbc $(__DEBUGINFO_1) libpath $(LIBDIRNAME) $(LDFLAGS)
2d611b5c 308 @for %i in ($(RENDDLL_OBJECTS)) do @%append $(OBJS)\renddll.lbc file %i
b44f5137 309 @for %i in ( $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) wxzlib$(WXDEBUGFLAG).lib wxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib wxexpat$(WXDEBUGFLAG).lib $(EXTRALIBS_FOR_BASE) $(__GDIPLUS_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)\renddll.lbc library %i
2d611b5c
VS
310 @%append $(OBJS)\renddll.lbc
311 @%append $(OBJS)\renddll.lbc system nt_dll
312 wlink @$(OBJS)\renddll.lbc
313!endif
314
b17c1746 315$(OBJS)\render_sample.res : .AUTODEPEND .\..\..\samples\sample.rc
444833b3 316 wrc -q -ad -bt=nt -r -fo=$^@ -d__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__GFXCTX_DEFINE_p) -i=$(SETUPHDIR) -i=.\..\..\include -i=. $(__DLLFLAG_p) -i=.\..\..\samples -dNOPCH $<
b17c1746
DE
317
318$(OBJS)\render_render.obj : .AUTODEPEND .\render.cpp
4cbcfb73 319 $(CXX) -bt=nt -zq -fo=$^@ $(RENDER_CXXFLAGS) $<
b17c1746
DE
320
321$(OBJS)\renddll_renddll.obj : .AUTODEPEND .\renddll.cpp
4cbcfb73 322 $(CXX) -bt=nt -zq -fo=$^@ $(RENDDLL_CXXFLAGS) $<
b14abf14 323