]> git.saurik.com Git - wxWidgets.git/blame_incremental - samples/render/makefile.wat
use wxUSE_DATEPICKCTRL
[wxWidgets.git] / samples / render / makefile.wat
... / ...
CommitLineData
1# =========================================================================
2# This makefile was generated by
3# Bakefile 0.1.4 (http://bakefile.sourceforge.net)
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
46WXUNICODEFLAG =
47!ifeq UNICODE 1
48WXUNICODEFLAG = u
49!endif
50WXUNIVNAME =
51!ifeq WXUNIV 1
52WXUNIVNAME = univ
53!endif
54WXDLLFLAG =
55!ifeq SHARED 1
56WXDLLFLAG = dll
57!endif
58EXTRALIBS_FOR_BASE =
59!ifeq MONOLITHIC 0
60EXTRALIBS_FOR_BASE =
61!endif
62!ifeq MONOLITHIC 1
63EXTRALIBS_FOR_BASE =
64!endif
65PLUGINSUFFIX =
66!ifeq BUILD debug
67!ifeq UNICODE 0
68PLUGINSUFFIX = d
69!endif
70!endif
71!ifeq BUILD debug
72!ifeq UNICODE 1
73PLUGINSUFFIX = ud
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
83PLUGINSUFFIX = u
84!endif
85!endif
86__renddll___depname =
87!ifeq SHARED 1
88__renddll___depname = &
89 $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_wat.dll
90!endif
91__DEBUGINFO =
92!ifeq BUILD debug
93!ifeq DEBUG_INFO default
94__DEBUGINFO = -d2
95!endif
96!endif
97!ifeq BUILD release
98!ifeq DEBUG_INFO default
99__DEBUGINFO = -d0
100!endif
101!endif
102!ifeq DEBUG_INFO 0
103__DEBUGINFO = -d0
104!endif
105!ifeq DEBUG_INFO 1
106__DEBUGINFO = -d2
107!endif
108__DEBUGINFO_1 =
109!ifeq BUILD debug
110!ifeq DEBUG_INFO default
111__DEBUGINFO_1 = debug all
112!endif
113!endif
114!ifeq BUILD release
115!ifeq DEBUG_INFO default
116__DEBUGINFO_1 =
117!endif
118!endif
119!ifeq DEBUG_INFO 0
120__DEBUGINFO_1 =
121!endif
122!ifeq DEBUG_INFO 1
123__DEBUGINFO_1 = debug all
124!endif
125__OPTIMIZEFLAG =
126!ifeq BUILD debug
127__OPTIMIZEFLAG = -od
128!endif
129!ifeq BUILD release
130__OPTIMIZEFLAG = -ot -ox
131!endif
132__RUNTIME_LIBS =
133!ifeq RUNTIME_LIBS dynamic
134__RUNTIME_LIBS = -br
135!endif
136!ifeq RUNTIME_LIBS static
137__RUNTIME_LIBS =
138!endif
139__EXCEPTIONSFLAG =
140!ifeq USE_EXCEPTIONS 0
141__EXCEPTIONSFLAG =
142!endif
143!ifeq USE_EXCEPTIONS 1
144__EXCEPTIONSFLAG = -xs
145!endif
146__WXUNIV_DEFINE_p =
147!ifeq WXUNIV 1
148__WXUNIV_DEFINE_p = -d__WXUNIVERSAL__
149!endif
150__DEBUG_DEFINE_p =
151!ifeq BUILD debug
152!ifeq DEBUG_FLAG default
153__DEBUG_DEFINE_p = -d__WXDEBUG__
154!endif
155!endif
156!ifeq DEBUG_FLAG 1
157__DEBUG_DEFINE_p = -d__WXDEBUG__
158!endif
159__UNICODE_DEFINE_p =
160!ifeq UNICODE 1
161__UNICODE_DEFINE_p = -d_UNICODE
162!endif
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
173!endif
174__WXLIB_CORE_p =
175!ifeq MONOLITHIC 0
176__WXLIB_CORE_p = &
177 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
178!endif
179__WXLIB_BASE_p =
180!ifeq MONOLITHIC 0
181__WXLIB_BASE_p = &
182 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
183!endif
184__WXLIB_MONO_p =
185!ifeq MONOLITHIC 1
186__WXLIB_MONO_p = &
187 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
188!endif
189__LIB_TIFF_p =
190!ifeq USE_GUI 1
191__LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
192!endif
193__LIB_JPEG_p =
194!ifeq USE_GUI 1
195__LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
196!endif
197__LIB_PNG_p =
198!ifeq USE_GUI 1
199__LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
200!endif
201
202### Variables: ###
203
204WX_RELEASE_NODOT = 25
205WX_VERSION_NODOT = $(WX_RELEASE_NODOT)3
206OBJS = &
207 wat_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
208SETUPHDIR = &
209 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
210RENDER_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) -bm $(__RUNTIME_LIBS) &
211 -d__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) &
212 -i=.\..\..\include -i=$(SETUPHDIR) -wcd=549 -wcd=656 -wcd=657 -i=. &
213 $(__DLLFLAG_p) -i=.\..\..\samples -dNOPCH $(__EXCEPTIONSFLAG) $(CPPFLAGS) &
214 $(CXXFLAGS)
215RENDER_OBJECTS = &
216 $(OBJS)\render_render.obj
217RENDDLL_CXXFLAGS = -bd $(__DEBUGINFO) $(__OPTIMIZEFLAG) -bm $(__RUNTIME_LIBS) &
218 -d__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) &
219 -i=.\..\..\include -i=$(SETUPHDIR) -wcd=549 -wcd=656 -wcd=657 -dWXUSINGDLL &
220 $(__EXCEPTIONSFLAG) $(CPPFLAGS) $(CXXFLAGS)
221RENDDLL_OBJECTS = &
222 $(OBJS)\renddll_renddll.obj
223
224
225all : $(OBJS)
226$(OBJS) :
227 -if not exist $(OBJS) mkdir $(OBJS)
228
229### Targets: ###
230
231all : .SYMBOLIC $(OBJS)\render.exe $(__renddll___depname)
232
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
239 -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_wat.dll del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_wat.dll
240
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
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
249 @%append $(OBJS)\render.lbc option resource=$(OBJS)\render_sample.res
250 wlink @$(OBJS)\render.lbc
251
252!ifeq SHARED 1
253$(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_wat.dll : $(RENDDLL_OBJECTS)
254 @%create $(OBJS)\renddll.lbc
255 @%append $(OBJS)\renddll.lbc option quiet
256 @%append $(OBJS)\renddll.lbc name $^@
257 @%append $(OBJS)\renddll.lbc option caseexact
258 @%append $(OBJS)\renddll.lbc $(LDFLAGS) $(__DEBUGINFO_1) libpath $(LIBDIRNAME)
259 @for %i in ($(RENDDLL_OBJECTS)) do @%append $(OBJS)\renddll.lbc file %i
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
261 @%append $(OBJS)\renddll.lbc
262 @%append $(OBJS)\renddll.lbc system nt_dll
263 wlink @$(OBJS)\renddll.lbc
264!endif
265
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) $<