]> git.saurik.com Git - wxWidgets.git/blame - samples/render/makefile.wat
use wxUSE_DATEPICKCTRL
[wxWidgets.git] / samples / render / makefile.wat
CommitLineData
2d611b5c
VS
1# =========================================================================
2# This makefile was generated by
c4839ccf 3# Bakefile 0.1.4 (http://bakefile.sourceforge.net)
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
21! loaddll wlink wlink
22! loaddll wlib wlibd
23!endif
24
25# We need these variables in some bakefile-made rules:
26WATCOM_CWD = $+ $(%cdrive):$(%cwd) $-
27
28### Conditionally set variables: ###
29
30PORTNAME =
31!ifeq USE_GUI 0
32PORTNAME = base
33!endif
34!ifeq USE_GUI 1
35PORTNAME = msw
36!endif
37WXDEBUGFLAG =
38!ifeq BUILD debug
39!ifeq DEBUG_FLAG default
40WXDEBUGFLAG = d
41!endif
42!endif
43!ifeq DEBUG_FLAG 1
44WXDEBUGFLAG = d
45!endif
2d611b5c
VS
46WXUNICODEFLAG =
47!ifeq UNICODE 1
48WXUNICODEFLAG = u
49!endif
50WXUNIVNAME =
51!ifeq WXUNIV 1
52WXUNIVNAME = univ
53!endif
b17c1746
DE
54WXDLLFLAG =
55!ifeq SHARED 1
56WXDLLFLAG = dll
57!endif
dd65d8c8
RN
58EXTRALIBS_FOR_BASE =
59!ifeq MONOLITHIC 0
60EXTRALIBS_FOR_BASE =
61!endif
62!ifeq MONOLITHIC 1
63EXTRALIBS_FOR_BASE =
64!endif
078c7a59
VS
65PLUGINSUFFIX =
66!ifeq BUILD debug
67!ifeq UNICODE 0
314a6446 68PLUGINSUFFIX = d
078c7a59
VS
69!endif
70!endif
71!ifeq BUILD debug
72!ifeq UNICODE 1
314a6446 73PLUGINSUFFIX = ud
078c7a59
VS
74!endif
75!endif
76!ifeq BUILD release
77!ifeq UNICODE 0
78PLUGINSUFFIX =
79!endif
80!endif
81!ifeq BUILD release
82!ifeq UNICODE 1
314a6446 83PLUGINSUFFIX = u
078c7a59
VS
84!endif
85!endif
b17c1746
DE
86__renddll___depname =
87!ifeq SHARED 1
88__renddll___depname = &
c33fae85 89 $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_wat.dll
b17c1746 90!endif
2d611b5c
VS
91__DEBUGINFO =
92!ifeq BUILD debug
93!ifeq DEBUG_INFO default
ec08d395 94__DEBUGINFO = -d2
2d611b5c
VS
95!endif
96!endif
97!ifeq BUILD release
98!ifeq DEBUG_INFO default
ec08d395 99__DEBUGINFO = -d0
2d611b5c
VS
100!endif
101!endif
102!ifeq DEBUG_INFO 0
ec08d395 103__DEBUGINFO = -d0
2d611b5c
VS
104!endif
105!ifeq DEBUG_INFO 1
ec08d395 106__DEBUGINFO = -d2
2d611b5c 107!endif
b71531ad 108__DEBUGINFO_1 =
2d611b5c
VS
109!ifeq BUILD debug
110!ifeq DEBUG_INFO default
b71531ad 111__DEBUGINFO_1 = debug all
2d611b5c
VS
112!endif
113!endif
114!ifeq BUILD release
115!ifeq DEBUG_INFO default
b71531ad 116__DEBUGINFO_1 =
2d611b5c
VS
117!endif
118!endif
119!ifeq DEBUG_INFO 0
b71531ad 120__DEBUGINFO_1 =
2d611b5c
VS
121!endif
122!ifeq DEBUG_INFO 1
b71531ad 123__DEBUGINFO_1 = debug all
2d611b5c 124!endif
b17c1746 125__OPTIMIZEFLAG =
2d611b5c 126!ifeq BUILD debug
b17c1746 127__OPTIMIZEFLAG = -od
2d611b5c 128!endif
b17c1746
DE
129!ifeq BUILD release
130__OPTIMIZEFLAG = -ot -ox
2d611b5c 131!endif
b17c1746
DE
132__RUNTIME_LIBS =
133!ifeq RUNTIME_LIBS dynamic
134__RUNTIME_LIBS = -br
2d611b5c 135!endif
b17c1746
DE
136!ifeq RUNTIME_LIBS static
137__RUNTIME_LIBS =
2d611b5c 138!endif
b71531ad
VZ
139__EXCEPTIONSFLAG =
140!ifeq USE_EXCEPTIONS 0
141__EXCEPTIONSFLAG =
142!endif
143!ifeq USE_EXCEPTIONS 1
144__EXCEPTIONSFLAG = -xs
145!endif
b17c1746
DE
146__WXUNIV_DEFINE_p =
147!ifeq WXUNIV 1
148__WXUNIV_DEFINE_p = -d__WXUNIVERSAL__
2d611b5c 149!endif
b17c1746 150__DEBUG_DEFINE_p =
2d611b5c 151!ifeq BUILD debug
b17c1746
DE
152!ifeq DEBUG_FLAG default
153__DEBUG_DEFINE_p = -d__WXDEBUG__
2d611b5c 154!endif
2d611b5c 155!endif
b17c1746
DE
156!ifeq DEBUG_FLAG 1
157__DEBUG_DEFINE_p = -d__WXDEBUG__
2d611b5c
VS
158!endif
159__UNICODE_DEFINE_p =
160!ifeq UNICODE 1
ec08d395 161__UNICODE_DEFINE_p = -d_UNICODE
2d611b5c 162!endif
b17c1746
DE
163LIBDIRNAME =
164!ifeq SHARED 0
165LIBDIRNAME = .\..\..\lib\wat_lib$(CFG)
166!endif
167!ifeq SHARED 1
168LIBDIRNAME = .\..\..\lib\wat_dll$(CFG)
169!endif
170__DLLFLAG_p =
171!ifeq SHARED 1
172__DLLFLAG_p = -dWXUSINGDLL
2d611b5c
VS
173!endif
174__WXLIB_CORE_p =
175!ifeq MONOLITHIC 0
176__WXLIB_CORE_p = &
c33fae85 177 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
2d611b5c 178!endif
b17c1746
DE
179__WXLIB_BASE_p =
180!ifeq MONOLITHIC 0
c33fae85
RN
181__WXLIB_BASE_p = &
182 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
b17c1746 183!endif
2d611b5c
VS
184__WXLIB_MONO_p =
185!ifeq MONOLITHIC 1
186__WXLIB_MONO_p = &
c33fae85 187 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
2d611b5c 188!endif
b17c1746
DE
189__LIB_TIFF_p =
190!ifeq USE_GUI 1
9c2d002b 191__LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
2d611b5c 192!endif
b17c1746
DE
193__LIB_JPEG_p =
194!ifeq USE_GUI 1
9c2d002b 195__LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
b17c1746
DE
196!endif
197__LIB_PNG_p =
198!ifeq USE_GUI 1
9c2d002b 199__LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
2d611b5c
VS
200!endif
201
202### Variables: ###
203
c33fae85 204WX_RELEASE_NODOT = 25
ab921f5f 205WX_VERSION_NODOT = $(WX_RELEASE_NODOT)3
2d611b5c
VS
206OBJS = &
207 wat_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
b17c1746
DE
208SETUPHDIR = &
209 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
9bfe7ad9
VS
210RENDER_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) -bm $(__RUNTIME_LIBS) &
211 -d__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) &
dd65d8c8
RN
212 -i=.\..\..\include -i=$(SETUPHDIR) -wcd=549 -wcd=656 -wcd=657 -i=. &
213 $(__DLLFLAG_p) -i=.\..\..\samples -dNOPCH $(__EXCEPTIONSFLAG) $(CPPFLAGS) &
214 $(CXXFLAGS)
2d611b5c
VS
215RENDER_OBJECTS = &
216 $(OBJS)\render_render.obj
b17c1746
DE
217RENDDLL_CXXFLAGS = -bd $(__DEBUGINFO) $(__OPTIMIZEFLAG) -bm $(__RUNTIME_LIBS) &
218 -d__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) &
dd65d8c8
RN
219 -i=.\..\..\include -i=$(SETUPHDIR) -wcd=549 -wcd=656 -wcd=657 -dWXUSINGDLL &
220 $(__EXCEPTIONSFLAG) $(CPPFLAGS) $(CXXFLAGS)
b17c1746
DE
221RENDDLL_OBJECTS = &
222 $(OBJS)\renddll_renddll.obj
2d611b5c 223
2d611b5c
VS
224
225all : $(OBJS)
226$(OBJS) :
227 -if not exist $(OBJS) mkdir $(OBJS)
228
229### Targets: ###
230
231all : .SYMBOLIC $(OBJS)\render.exe $(__renddll___depname)
232
2d611b5c
VS
233clean : .SYMBOLIC
234 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
235 -if exist $(OBJS)\*.res del $(OBJS)\*.res
236 -if exist $(OBJS)\*.lbc del $(OBJS)\*.lbc
237 -if exist $(OBJS)\*.ilk del $(OBJS)\*.ilk
238 -if exist $(OBJS)\render.exe del $(OBJS)\render.exe
c33fae85 239 -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_wat.dll del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_wat.dll
2d611b5c 240
b17c1746
DE
241$(OBJS)\render.exe : $(RENDER_OBJECTS) $(OBJS)\render_sample.res
242 @%create $(OBJS)\render.lbc
243 @%append $(OBJS)\render.lbc option quiet
244 @%append $(OBJS)\render.lbc name $^@
245 @%append $(OBJS)\render.lbc option caseexact
246 @%append $(OBJS)\render.lbc $(LDFLAGS) $(__DEBUGINFO_1) libpath $(LIBDIRNAME) system nt_win ref '_WinMain@16'
247 @for %i in ($(RENDER_OBJECTS)) do @%append $(OBJS)\render.lbc file %i
dd65d8c8 248 @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) 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 odbc32.lib ) do @%append $(OBJS)\render.lbc library %i
b17c1746
DE
249 @%append $(OBJS)\render.lbc option resource=$(OBJS)\render_sample.res
250 wlink @$(OBJS)\render.lbc
251
2d611b5c 252!ifeq SHARED 1
c33fae85 253$(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_wat.dll : $(RENDDLL_OBJECTS)
2d611b5c
VS
254 @%create $(OBJS)\renddll.lbc
255 @%append $(OBJS)\renddll.lbc option quiet
256 @%append $(OBJS)\renddll.lbc name $^@
75a0a7b7 257 @%append $(OBJS)\renddll.lbc option caseexact
b71531ad 258 @%append $(OBJS)\renddll.lbc $(LDFLAGS) $(__DEBUGINFO_1) libpath $(LIBDIRNAME)
2d611b5c 259 @for %i in ($(RENDDLL_OBJECTS)) do @%append $(OBJS)\renddll.lbc file %i
dd65d8c8 260 @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) 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 odbc32.lib ) do @%append $(OBJS)\renddll.lbc library %i
2d611b5c
VS
261 @%append $(OBJS)\renddll.lbc
262 @%append $(OBJS)\renddll.lbc system nt_dll
263 wlink @$(OBJS)\renddll.lbc
264!endif
265
b17c1746
DE
266$(OBJS)\render_sample.res : .AUTODEPEND .\..\..\samples\sample.rc
267 wrc -q -ad -bt=nt -r -fo=$^@ -d__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) -i=.\..\..\include -i=$(SETUPHDIR) -i=. $(__DLLFLAG_p) -i=.\..\..\samples $<
268
269$(OBJS)\render_render.obj : .AUTODEPEND .\render.cpp
270 $(CXX) -zq -fo=$^@ $(RENDER_CXXFLAGS) $<
271
272$(OBJS)\renddll_renddll.obj : .AUTODEPEND .\renddll.cpp
273 $(CXX) -zq -fo=$^@ $(RENDDLL_CXXFLAGS) $<