]> git.saurik.com Git - wxWidgets.git/blame - contrib/build/ogl/makefile.wat
Applied patch [ 795491 ] Multimon sample compatibility with various conditions
[wxWidgets.git] / contrib / build / ogl / makefile.wat
CommitLineData
250700e4
RD
1# =========================================================================
2# This makefile was generated by
bdc408c4 3# Bakefile 0.1.1 (http://bakefile.sourceforge.net)
250700e4
RD
4# Do not modify, all changes will be overwritten!
5# =========================================================================
6
fd9f42b6 7!include ../../../build/msw/config.wat
250700e4
RD
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
75a0a7b7
VS
30LIBDIRNAME =
31!ifeq SHARED 0
32LIBDIRNAME = ..\..\src\ogl\..\..\..\lib\wat_lib$(CFG)
33!endif
34!ifeq SHARED 1
35LIBDIRNAME = ..\..\src\ogl\..\..\..\lib\wat_dll$(CFG)
36!endif
250700e4
RD
37PORTNAME =
38!ifeq USE_GUI 0
39PORTNAME = base
40!endif
41!ifeq USE_GUI 1
42PORTNAME = msw
43!endif
44VENDORTAG =
45!ifeq OFFICIAL_BUILD 0
46VENDORTAG = _$(VENDOR)
47!endif
48!ifeq OFFICIAL_BUILD 1
49VENDORTAG =
50!endif
51WXDEBUGFLAG =
52!ifeq BUILD debug
3f55f5b8
VS
53!ifeq DEBUG_FLAG default
54WXDEBUGFLAG = d
55!endif
56!endif
57!ifeq DEBUG_FLAG 1
250700e4
RD
58WXDEBUGFLAG = d
59!endif
60WXDLLFLAG =
61!ifeq SHARED 1
62WXDLLFLAG = dll
63!endif
64WXUNICODEFLAG =
65!ifeq UNICODE 1
66WXUNICODEFLAG = u
67!endif
68WXUNIVNAME =
69!ifeq WXUNIV 1
70WXUNIVNAME = univ
71!endif
3f55f5b8 72__DEBUGINFO =
250700e4 73!ifeq BUILD debug
3f55f5b8
VS
74!ifeq DEBUG_INFO default
75__DEBUGINFO = -d2
76!endif
250700e4
RD
77!endif
78!ifeq BUILD release
3f55f5b8
VS
79!ifeq DEBUG_INFO default
80__DEBUGINFO = -d0
81!endif
250700e4 82!endif
3f55f5b8
VS
83!ifeq DEBUG_INFO 0
84__DEBUGINFO = -d0
85!endif
86!ifeq DEBUG_INFO 1
87__DEBUGINFO = -d2
88!endif
89__DEBUGINFO_1 =
250700e4 90!ifeq BUILD debug
3f55f5b8
VS
91!ifeq DEBUG_INFO default
92__DEBUGINFO_1 = debug all
93!endif
250700e4
RD
94!endif
95!ifeq BUILD release
3f55f5b8
VS
96!ifeq DEBUG_INFO default
97__DEBUGINFO_1 =
98!endif
99!endif
100!ifeq DEBUG_INFO 0
101__DEBUGINFO_1 =
102!endif
103!ifeq DEBUG_INFO 1
104__DEBUGINFO_1 = debug all
250700e4
RD
105!endif
106__DEBUG_DEFINE_p =
107!ifeq BUILD debug
3f55f5b8 108!ifeq DEBUG_FLAG default
250700e4
RD
109__DEBUG_DEFINE_p = -d__WXDEBUG__
110!endif
3f55f5b8
VS
111!endif
112!ifeq DEBUG_FLAG 1
113__DEBUG_DEFINE_p = -d__WXDEBUG__
114!endif
115__LIB_JPEG_p =
116!ifeq USE_GUI 1
117__LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
118!endif
119__LIB_PNG_p =
120!ifeq USE_GUI 1
121__LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
122!endif
123__LIB_TIFF_p =
124!ifeq USE_GUI 1
125__LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
126!endif
250700e4
RD
127__OPTIMIZEFLAG =
128!ifeq BUILD debug
129__OPTIMIZEFLAG = -od
130!endif
131!ifeq BUILD release
132__OPTIMIZEFLAG = -ot -ox
133!endif
134__RUNTIME_LIBS =
135!ifeq RUNTIME_LIBS dynamic
136__RUNTIME_LIBS = -br
137!endif
138!ifeq RUNTIME_LIBS static
139__RUNTIME_LIBS =
140!endif
141__UNICODE_DEFINE_p =
142!ifeq UNICODE 1
143__UNICODE_DEFINE_p = -dwxUSE_UNICODE=1
144!endif
145__WXLIB_BASE_p =
146!ifeq MONOLITHIC 0
147__WXLIB_BASE_p = wxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
148!endif
149__WXLIB_CORE_p =
150!ifeq MONOLITHIC 0
3f55f5b8
VS
151__WXLIB_CORE_p = &
152 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core.lib
250700e4
RD
153!endif
154__WXLIB_MONO_p =
155!ifeq MONOLITHIC 1
3f55f5b8
VS
156__WXLIB_MONO_p = &
157 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
250700e4
RD
158!endif
159__WXUNIV_DEFINE_p =
160!ifeq WXUNIV 1
161__WXUNIV_DEFINE_p = -d__WXUNIVERSAL__
162!endif
163__ogldll___depname =
164!ifeq SHARED 1
3f55f5b8
VS
165__ogldll___depname = &
166 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)250$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl_wat$(VENDORTAG).dll
250700e4
RD
167!endif
168__ogllib___depname =
169!ifeq SHARED 0
3f55f5b8
VS
170__ogllib___depname = &
171 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl.lib
250700e4
RD
172!endif
173
174### Variables: ###
175
3f55f5b8
VS
176OBJS = &
177 wat_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
178OGLDLL_CXXFLAGS = $(CPPFLAGS) -bd $(__DEBUGINFO) $(__OPTIMIZEFLAG) -bm &
179 $(__RUNTIME_LIBS) -d__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) &
75a0a7b7
VS
180 $(__UNICODE_DEFINE_p) -i=..\..\src\ogl\..\..\..\include -i=$(SETUPHDIR) &
181 -i=..\..\src\ogl\..\..\include -dWXUSINGDLL -dWXMAKINGDLL_OGL $(CXXFLAGS) &
182 /fh=$(OBJS)\wxprec_ogldll.pch
3f55f5b8
VS
183OGLDLL_OBJECTS = &
184 $(OBJS)\ogldll_dummy.obj &
185 $(OBJS)\ogldll_basic2.obj &
186 $(OBJS)\ogldll_canvas.obj &
187 $(OBJS)\ogldll_divided.obj &
188 $(OBJS)\ogldll_mfutils.obj &
189 $(OBJS)\ogldll_oglmisc.obj &
190 $(OBJS)\ogldll_basic.obj &
191 $(OBJS)\ogldll_composit.obj &
192 $(OBJS)\ogldll_drawn.obj &
193 $(OBJS)\ogldll_bmpshape.obj &
194 $(OBJS)\ogldll_constrnt.obj &
195 $(OBJS)\ogldll_lines.obj &
196 $(OBJS)\ogldll_ogldiag.obj
197OGLLIB_CXXFLAGS = $(CPPFLAGS) $(__DEBUGINFO) $(__OPTIMIZEFLAG) -bm &
198 $(__RUNTIME_LIBS) -d__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) &
75a0a7b7
VS
199 $(__UNICODE_DEFINE_p) -i=..\..\src\ogl\..\..\..\include -i=$(SETUPHDIR) &
200 -i=..\..\src\ogl\..\..\include $(CXXFLAGS) /fh=$(OBJS)\wxprec_ogllib.pch
3f55f5b8
VS
201OGLLIB_OBJECTS = &
202 $(OBJS)\ogllib_dummy.obj &
203 $(OBJS)\ogllib_basic2.obj &
204 $(OBJS)\ogllib_canvas.obj &
205 $(OBJS)\ogllib_divided.obj &
206 $(OBJS)\ogllib_mfutils.obj &
207 $(OBJS)\ogllib_oglmisc.obj &
208 $(OBJS)\ogllib_basic.obj &
209 $(OBJS)\ogllib_composit.obj &
210 $(OBJS)\ogllib_drawn.obj &
211 $(OBJS)\ogllib_bmpshape.obj &
212 $(OBJS)\ogllib_constrnt.obj &
213 $(OBJS)\ogllib_lines.obj &
214 $(OBJS)\ogllib_ogldiag.obj
75a0a7b7
VS
215SETUPHDIR = &
216 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
250700e4 217
250700e4
RD
218
219all : $(OBJS)
220$(OBJS) :
221 -if not exist $(OBJS) mkdir $(OBJS)
222
223### Targets: ###
224
225all : .SYMBOLIC $(__ogldll___depname) $(__ogllib___depname)
226
227$(OBJS)\ogldll_basic.obj : .AUTODEPEND ../../src/ogl\basic.cpp
228 $(CXX) -zq -fo=$^@ $(OGLDLL_CXXFLAGS) $<
229
230$(OBJS)\ogldll_basic2.obj : .AUTODEPEND ../../src/ogl\basic2.cpp
231 $(CXX) -zq -fo=$^@ $(OGLDLL_CXXFLAGS) $<
232
233$(OBJS)\ogldll_bmpshape.obj : .AUTODEPEND ../../src/ogl\bmpshape.cpp
234 $(CXX) -zq -fo=$^@ $(OGLDLL_CXXFLAGS) $<
235
236$(OBJS)\ogldll_canvas.obj : .AUTODEPEND ../../src/ogl\canvas.cpp
237 $(CXX) -zq -fo=$^@ $(OGLDLL_CXXFLAGS) $<
238
239$(OBJS)\ogldll_composit.obj : .AUTODEPEND ../../src/ogl\composit.cpp
240 $(CXX) -zq -fo=$^@ $(OGLDLL_CXXFLAGS) $<
241
242$(OBJS)\ogldll_constrnt.obj : .AUTODEPEND ../../src/ogl\constrnt.cpp
243 $(CXX) -zq -fo=$^@ $(OGLDLL_CXXFLAGS) $<
244
245$(OBJS)\ogldll_divided.obj : .AUTODEPEND ../../src/ogl\divided.cpp
246 $(CXX) -zq -fo=$^@ $(OGLDLL_CXXFLAGS) $<
247
248$(OBJS)\ogldll_drawn.obj : .AUTODEPEND ../../src/ogl\drawn.cpp
249 $(CXX) -zq -fo=$^@ $(OGLDLL_CXXFLAGS) $<
250
251$(OBJS)\ogldll_dummy.obj : .AUTODEPEND ../../src/ogl\..\..\..\src\msw\dummy.cpp
252 $(CXX) -zq -fo=$^@ $(OGLDLL_CXXFLAGS) $<
253
254$(OBJS)\ogldll_lines.obj : .AUTODEPEND ../../src/ogl\lines.cpp
255 $(CXX) -zq -fo=$^@ $(OGLDLL_CXXFLAGS) $<
256
257$(OBJS)\ogldll_mfutils.obj : .AUTODEPEND ../../src/ogl\mfutils.cpp
258 $(CXX) -zq -fo=$^@ $(OGLDLL_CXXFLAGS) $<
259
260$(OBJS)\ogldll_ogldiag.obj : .AUTODEPEND ../../src/ogl\ogldiag.cpp
261 $(CXX) -zq -fo=$^@ $(OGLDLL_CXXFLAGS) $<
262
263$(OBJS)\ogldll_oglmisc.obj : .AUTODEPEND ../../src/ogl\oglmisc.cpp
264 $(CXX) -zq -fo=$^@ $(OGLDLL_CXXFLAGS) $<
265
266$(OBJS)\ogllib_basic.obj : .AUTODEPEND ../../src/ogl\basic.cpp
267 $(CXX) -zq -fo=$^@ $(OGLLIB_CXXFLAGS) $<
268
269$(OBJS)\ogllib_basic2.obj : .AUTODEPEND ../../src/ogl\basic2.cpp
270 $(CXX) -zq -fo=$^@ $(OGLLIB_CXXFLAGS) $<
271
272$(OBJS)\ogllib_bmpshape.obj : .AUTODEPEND ../../src/ogl\bmpshape.cpp
273 $(CXX) -zq -fo=$^@ $(OGLLIB_CXXFLAGS) $<
274
275$(OBJS)\ogllib_canvas.obj : .AUTODEPEND ../../src/ogl\canvas.cpp
276 $(CXX) -zq -fo=$^@ $(OGLLIB_CXXFLAGS) $<
277
278$(OBJS)\ogllib_composit.obj : .AUTODEPEND ../../src/ogl\composit.cpp
279 $(CXX) -zq -fo=$^@ $(OGLLIB_CXXFLAGS) $<
280
281$(OBJS)\ogllib_constrnt.obj : .AUTODEPEND ../../src/ogl\constrnt.cpp
282 $(CXX) -zq -fo=$^@ $(OGLLIB_CXXFLAGS) $<
283
284$(OBJS)\ogllib_divided.obj : .AUTODEPEND ../../src/ogl\divided.cpp
285 $(CXX) -zq -fo=$^@ $(OGLLIB_CXXFLAGS) $<
286
287$(OBJS)\ogllib_drawn.obj : .AUTODEPEND ../../src/ogl\drawn.cpp
288 $(CXX) -zq -fo=$^@ $(OGLLIB_CXXFLAGS) $<
289
290$(OBJS)\ogllib_dummy.obj : .AUTODEPEND ../../src/ogl\..\..\..\src\msw\dummy.cpp
291 $(CXX) -zq -fo=$^@ $(OGLLIB_CXXFLAGS) $<
292
293$(OBJS)\ogllib_lines.obj : .AUTODEPEND ../../src/ogl\lines.cpp
294 $(CXX) -zq -fo=$^@ $(OGLLIB_CXXFLAGS) $<
295
296$(OBJS)\ogllib_mfutils.obj : .AUTODEPEND ../../src/ogl\mfutils.cpp
297 $(CXX) -zq -fo=$^@ $(OGLLIB_CXXFLAGS) $<
298
299$(OBJS)\ogllib_ogldiag.obj : .AUTODEPEND ../../src/ogl\ogldiag.cpp
300 $(CXX) -zq -fo=$^@ $(OGLLIB_CXXFLAGS) $<
301
302$(OBJS)\ogllib_oglmisc.obj : .AUTODEPEND ../../src/ogl\oglmisc.cpp
303 $(CXX) -zq -fo=$^@ $(OGLLIB_CXXFLAGS) $<
304
305clean : .SYMBOLIC
306 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
307 -if exist $(OBJS)\*.res del $(OBJS)\*.res
308 -if exist $(OBJS)\*.lbc del $(OBJS)\*.lbc
309 -if exist $(OBJS)\*.ilk del $(OBJS)\*.ilk
3f55f5b8
VS
310 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)250$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl_wat$(VENDORTAG).dll del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)250$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl_wat$(VENDORTAG).dll
311 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl.lib del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl.lib
312 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl.lib del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl.lib
250700e4
RD
313
314!ifeq SHARED 1
3f55f5b8 315$(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)250$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl_wat$(VENDORTAG).dll : $(OGLDLL_OBJECTS)
250700e4
RD
316 @%create $(OBJS)\ogldll.lbc
317 @%append $(OBJS)\ogldll.lbc option quiet
318 @%append $(OBJS)\ogldll.lbc name $^@
75a0a7b7 319 @%append $(OBJS)\ogldll.lbc option caseexact
3f55f5b8
VS
320 @%append $(OBJS)\ogldll.lbc $(LDFLAGS) $(__DEBUGINFO_1) libpath $(LIBDIRNAME)
321 @for %i in ($(OGLDLL_OBJECTS)) do @%append $(OBJS)\ogldll.lbc file %i
2265a2d5 322 @for %i in ( $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) wxzlib$(WXDEBUGFLAG).lib wxregex$(WXDEBUGFLAG).lib wxexpat$(WXDEBUGFLAG).lib kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib odbc32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib $(__WXLIB_CORE_p) $(__WXLIB_BASE_p)) do @%append $(OBJS)\ogldll.lbc library %i
250700e4
RD
323 @%append $(OBJS)\ogldll.lbc
324 @%append $(OBJS)\ogldll.lbc system nt_dll
325 wlink @$(OBJS)\ogldll.lbc
3f55f5b8 326 wlib -q -n -b $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl.lib +$^@
250700e4
RD
327!endif
328
329!ifeq SHARED 0
3f55f5b8 330$(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl.lib : $(OGLLIB_OBJECTS)
250700e4 331 @%create $(OBJS)\ogllib.lbc
3f55f5b8 332 @for %i in ($(OGLLIB_OBJECTS)) do @%append $(OBJS)\ogllib.lbc +%i
250700e4
RD
333 wlib -q -p2048 -n -b $^@ @$(OBJS)\ogllib.lbc
334!endif