]> git.saurik.com Git - wxWidgets.git/blob - samples/render/makefile.wat
final sweep over docs - replace & with \&
[wxWidgets.git] / samples / render / makefile.wat
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:
26 WATCOM_CWD = $+ $(%cdrive):$(%cwd) $-
27
28 ### Conditionally set variables: ###
29
30 PORTNAME =
31 !ifeq USE_GUI 0
32 PORTNAME = base
33 !endif
34 !ifeq USE_GUI 1
35 PORTNAME = msw
36 !endif
37 WXDEBUGFLAG =
38 !ifeq BUILD debug
39 !ifeq DEBUG_FLAG default
40 WXDEBUGFLAG = d
41 !endif
42 !endif
43 !ifeq DEBUG_FLAG 1
44 WXDEBUGFLAG = d
45 !endif
46 WXUNICODEFLAG =
47 !ifeq UNICODE 1
48 WXUNICODEFLAG = u
49 !endif
50 WXUNIVNAME =
51 !ifeq WXUNIV 1
52 WXUNIVNAME = univ
53 !endif
54 WXDLLFLAG =
55 !ifeq SHARED 1
56 WXDLLFLAG = dll
57 !endif
58 EXTRALIBS_FOR_BASE =
59 !ifeq MONOLITHIC 0
60 EXTRALIBS_FOR_BASE =
61 !endif
62 !ifeq MONOLITHIC 1
63 EXTRALIBS_FOR_BASE =
64 !endif
65 PLUGINSUFFIX =
66 !ifeq BUILD debug
67 !ifeq UNICODE 0
68 PLUGINSUFFIX = d
69 !endif
70 !endif
71 !ifeq BUILD debug
72 !ifeq UNICODE 1
73 PLUGINSUFFIX = ud
74 !endif
75 !endif
76 !ifeq BUILD release
77 !ifeq UNICODE 0
78 PLUGINSUFFIX =
79 !endif
80 !endif
81 !ifeq BUILD release
82 !ifeq UNICODE 1
83 PLUGINSUFFIX = 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
163 LIBDIRNAME =
164 !ifeq SHARED 0
165 LIBDIRNAME = .\..\..\lib\wat_lib$(CFG)
166 !endif
167 !ifeq SHARED 1
168 LIBDIRNAME = .\..\..\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
204 WX_RELEASE_NODOT = 25
205 WX_VERSION_NODOT = $(WX_RELEASE_NODOT)3
206 OBJS = &
207 wat_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
208 SETUPHDIR = &
209 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
210 RENDER_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)
215 RENDER_OBJECTS = &
216 $(OBJS)\render_render.obj
217 RENDDLL_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)
221 RENDDLL_OBJECTS = &
222 $(OBJS)\renddll_renddll.obj
223
224
225 all : $(OBJS)
226 $(OBJS) :
227 -if not exist $(OBJS) mkdir $(OBJS)
228
229 ### Targets: ###
230
231 all : .SYMBOLIC $(OBJS)\render.exe $(__renddll___depname)
232
233 clean : .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) $<