]> git.saurik.com Git - wxWidgets.git/blob - contrib/build/ogl/makefile.gcc
define _HPUX_SOURCE under HP-UX, otherwise many things are not defined in standard...
[wxWidgets.git] / contrib / build / ogl / makefile.gcc
1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.1.9 (http://bakefile.sourceforge.net)
4 # Do not modify, all changes will be overwritten!
5 # =========================================================================
6
7 include ../../../build/msw/config.gcc
8
9 # -------------------------------------------------------------------------
10 # Do not modify the rest of this file!
11 # -------------------------------------------------------------------------
12
13 ### Variables: ###
14
15 CPPDEPS = -MT$@ -MF$@.d -MD
16 WX_RELEASE_NODOT = 27
17 WX_VERSION_NODOT = $(WX_RELEASE_NODOT)0
18 OBJS = \
19 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
20 LIBDIRNAME = ..\..\src\ogl\..\..\..\lib\gcc_$(LIBTYPE_SUFFIX)$(CFG)
21 SETUPHDIR = \
22 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
23 OGLDLL_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) $(GCCFLAGS) \
24 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
25 $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) \
26 $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) -I..\..\src\ogl\..\..\..\include \
27 -I$(SETUPHDIR) -W -Wall -I..\..\src\ogl\..\..\include -DWXUSINGDLL \
28 -DWXMAKINGDLL_OGL $(__RTTIFLAG) $(__EXCEPTIONSFLAG) -Wno-ctor-dtor-privacy \
29 $(CPPFLAGS) $(CXXFLAGS)
30 OGLDLL_OBJECTS = \
31 $(OBJS)\ogldll_dummy.o \
32 $(OBJS)\ogldll_version_rc.o \
33 $(OBJS)\ogldll_basic2.o \
34 $(OBJS)\ogldll_canvas.o \
35 $(OBJS)\ogldll_divided.o \
36 $(OBJS)\ogldll_mfutils.o \
37 $(OBJS)\ogldll_oglmisc.o \
38 $(OBJS)\ogldll_basic.o \
39 $(OBJS)\ogldll_composit.o \
40 $(OBJS)\ogldll_drawn.o \
41 $(OBJS)\ogldll_bmpshape.o \
42 $(OBJS)\ogldll_constrnt.o \
43 $(OBJS)\ogldll_lines.o \
44 $(OBJS)\ogldll_ogldiag.o
45 OGLLIB_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) $(GCCFLAGS) \
46 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
47 $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) \
48 $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) -I..\..\src\ogl\..\..\..\include \
49 -I$(SETUPHDIR) -W -Wall -I..\..\src\ogl\..\..\include $(__RTTIFLAG) \
50 $(__EXCEPTIONSFLAG) -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
51 OGLLIB_OBJECTS = \
52 $(OBJS)\ogllib_dummy.o \
53 $(OBJS)\ogllib_basic2.o \
54 $(OBJS)\ogllib_canvas.o \
55 $(OBJS)\ogllib_divided.o \
56 $(OBJS)\ogllib_mfutils.o \
57 $(OBJS)\ogllib_oglmisc.o \
58 $(OBJS)\ogllib_basic.o \
59 $(OBJS)\ogllib_composit.o \
60 $(OBJS)\ogllib_drawn.o \
61 $(OBJS)\ogllib_bmpshape.o \
62 $(OBJS)\ogllib_constrnt.o \
63 $(OBJS)\ogllib_lines.o \
64 $(OBJS)\ogllib_ogldiag.o
65
66 ### Conditionally set variables: ###
67
68 ifeq ($(GCC_VERSION),2.95)
69 GCCFLAGS = -fvtable-thunks
70 endif
71 ifeq ($(USE_GUI),0)
72 PORTNAME = base
73 endif
74 ifeq ($(USE_GUI),1)
75 PORTNAME = msw
76 endif
77 ifeq ($(OFFICIAL_BUILD),0)
78 VENDORTAG = _$(VENDOR)
79 endif
80 ifeq ($(OFFICIAL_BUILD),1)
81 VENDORTAG =
82 endif
83 ifeq ($(BUILD),debug)
84 ifeq ($(DEBUG_FLAG),default)
85 WXDEBUGFLAG = d
86 endif
87 endif
88 ifeq ($(DEBUG_FLAG),1)
89 WXDEBUGFLAG = d
90 endif
91 ifeq ($(UNICODE),1)
92 WXUNICODEFLAG = u
93 endif
94 ifeq ($(WXUNIV),1)
95 WXUNIVNAME = univ
96 endif
97 ifeq ($(SHARED),1)
98 WXDLLFLAG = dll
99 endif
100 ifeq ($(SHARED),0)
101 LIBTYPE_SUFFIX = lib
102 endif
103 ifeq ($(SHARED),1)
104 LIBTYPE_SUFFIX = dll
105 endif
106 ifeq ($(MONOLITHIC),0)
107 EXTRALIBS_FOR_BASE =
108 endif
109 ifeq ($(MONOLITHIC),1)
110 EXTRALIBS_FOR_BASE =
111 endif
112 ifeq ($(SHARED),1)
113 __ogldll___depname = \
114 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_ogl_gcc$(VENDORTAG).dll
115 endif
116 ifeq ($(WXUNIV),1)
117 __WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__
118 endif
119 ifeq ($(BUILD),debug)
120 ifeq ($(DEBUG_FLAG),default)
121 __DEBUG_DEFINE_p_1 = --define __WXDEBUG__
122 endif
123 endif
124 ifeq ($(DEBUG_FLAG),1)
125 __DEBUG_DEFINE_p_1 = --define __WXDEBUG__
126 endif
127 ifeq ($(USE_EXCEPTIONS),0)
128 __EXCEPTIONS_DEFINE_p_1 = --define wxNO_EXCEPTIONS
129 endif
130 ifeq ($(USE_RTTI),0)
131 __RTTI_DEFINE_p_1 = --define wxNO_RTTI
132 endif
133 ifeq ($(USE_THREADS),0)
134 __THREAD_DEFINE_p_1 = --define wxNO_THREADS
135 endif
136 ifeq ($(UNICODE),1)
137 __UNICODE_DEFINE_p_1 = --define _UNICODE
138 endif
139 ifeq ($(MSLU),1)
140 __MSLU_DEFINE_p_1 = --define wxUSE_UNICODE_MSLU=1
141 endif
142 ifeq ($(MONOLITHIC),1)
143 __WXLIB_MONO_p = \
144 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
145 endif
146 ifeq ($(USE_GUI),1)
147 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
148 endif
149 ifeq ($(USE_GUI),1)
150 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
151 endif
152 ifeq ($(USE_GUI),1)
153 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
154 endif
155 ifeq ($(MSLU),1)
156 __UNICOWS_LIB_p = -lunicows
157 endif
158 ifeq ($(MONOLITHIC),0)
159 __WXLIB_CORE_p = \
160 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
161 endif
162 ifeq ($(MONOLITHIC),0)
163 __WXLIB_BASE_p = \
164 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
165 endif
166 ifeq ($(SHARED),0)
167 __ogllib___depname = \
168 $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_ogl.a
169 endif
170 ifeq ($(BUILD),debug)
171 ifeq ($(DEBUG_INFO),default)
172 __DEBUGINFO = -g
173 endif
174 endif
175 ifeq ($(BUILD),release)
176 ifeq ($(DEBUG_INFO),default)
177 __DEBUGINFO =
178 endif
179 endif
180 ifeq ($(DEBUG_INFO),0)
181 __DEBUGINFO =
182 endif
183 ifeq ($(DEBUG_INFO),1)
184 __DEBUGINFO = -g
185 endif
186 ifeq ($(BUILD),debug)
187 __OPTIMIZEFLAG = -O0
188 endif
189 ifeq ($(BUILD),release)
190 __OPTIMIZEFLAG = -O2
191 endif
192 ifeq ($(USE_THREADS),0)
193 __THREADSFLAG =
194 endif
195 ifeq ($(USE_THREADS),1)
196 __THREADSFLAG = -mthreads
197 endif
198 ifeq ($(USE_RTTI),0)
199 __RTTIFLAG = -fno-rtti
200 endif
201 ifeq ($(USE_RTTI),1)
202 __RTTIFLAG =
203 endif
204 ifeq ($(USE_EXCEPTIONS),0)
205 __EXCEPTIONSFLAG = -fno-exceptions
206 endif
207 ifeq ($(USE_EXCEPTIONS),1)
208 __EXCEPTIONSFLAG =
209 endif
210 ifeq ($(WXUNIV),1)
211 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
212 endif
213 ifeq ($(BUILD),debug)
214 ifeq ($(DEBUG_FLAG),default)
215 __DEBUG_DEFINE_p = -D__WXDEBUG__
216 endif
217 endif
218 ifeq ($(DEBUG_FLAG),1)
219 __DEBUG_DEFINE_p = -D__WXDEBUG__
220 endif
221 ifeq ($(USE_EXCEPTIONS),0)
222 __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
223 endif
224 ifeq ($(USE_RTTI),0)
225 __RTTI_DEFINE_p = -DwxNO_RTTI
226 endif
227 ifeq ($(USE_THREADS),0)
228 __THREAD_DEFINE_p = -DwxNO_THREADS
229 endif
230 ifeq ($(UNICODE),1)
231 __UNICODE_DEFINE_p = -D_UNICODE
232 endif
233 ifeq ($(MSLU),1)
234 __MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
235 endif
236
237
238 all: $(OBJS)
239 $(OBJS):
240 -if not exist $(OBJS) mkdir $(OBJS)
241
242 ### Targets: ###
243
244 all: $(__ogldll___depname) $(__ogllib___depname)
245
246 clean:
247 -if exist $(OBJS)\*.o del $(OBJS)\*.o
248 -if exist $(OBJS)\*.d del $(OBJS)\*.d
249 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_ogl_gcc$(VENDORTAG).dll del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_ogl_gcc$(VENDORTAG).dll
250 -if exist $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_ogl.a del $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_ogl.a
251 -if exist $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_ogl.a del $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_ogl.a
252
253 ifeq ($(SHARED),1)
254 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_ogl_gcc$(VENDORTAG).dll: $(OGLDLL_OBJECTS) $(OBJS)\ogldll_version_rc.o
255 $(CXX) -shared -fPIC -o $@ $(OGLDLL_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) -Wl,--out-implib,$(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_ogl.a $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) -lwxzlib$(WXDEBUGFLAG) -lwxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG) -lwxexpat$(WXDEBUGFLAG) $(EXTRALIBS_FOR_BASE) $(__UNICOWS_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lodbc32 $(__WXLIB_CORE_p) $(__WXLIB_BASE_p)
256 endif
257
258 ifeq ($(SHARED),0)
259 $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_ogl.a: $(OGLLIB_OBJECTS)
260 if exist $@ del $@
261 ar rcu $@ $(OGLLIB_OBJECTS)
262 ranlib $@
263 endif
264
265 $(OBJS)\ogldll_dummy.o: ../../src/ogl/../../../src/msw/dummy.cpp
266 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $(CPPDEPS) $<
267
268 $(OBJS)\ogldll_version_rc.o: ../../src/ogl/../../../src/msw/version.rc
269 windres --use-temp-file -i$< -o$@ --define __WXMSW__ $(__WXUNIV_DEFINE_p_1) $(__DEBUG_DEFINE_p_1) $(__EXCEPTIONS_DEFINE_p_1) $(__RTTI_DEFINE_p_1) $(__THREAD_DEFINE_p_1) $(__UNICODE_DEFINE_p_1) $(__MSLU_DEFINE_p_1) --include-dir ../../src/ogl/../../../include --include-dir $(SETUPHDIR) --define WXDLLNAME=wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_ogl_gcc$(VENDORTAG)
270
271 $(OBJS)\ogldll_basic2.o: ../../src/ogl/basic2.cpp
272 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $(CPPDEPS) $<
273
274 $(OBJS)\ogldll_canvas.o: ../../src/ogl/canvas.cpp
275 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $(CPPDEPS) $<
276
277 $(OBJS)\ogldll_divided.o: ../../src/ogl/divided.cpp
278 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $(CPPDEPS) $<
279
280 $(OBJS)\ogldll_mfutils.o: ../../src/ogl/mfutils.cpp
281 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $(CPPDEPS) $<
282
283 $(OBJS)\ogldll_oglmisc.o: ../../src/ogl/oglmisc.cpp
284 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $(CPPDEPS) $<
285
286 $(OBJS)\ogldll_basic.o: ../../src/ogl/basic.cpp
287 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $(CPPDEPS) $<
288
289 $(OBJS)\ogldll_composit.o: ../../src/ogl/composit.cpp
290 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $(CPPDEPS) $<
291
292 $(OBJS)\ogldll_drawn.o: ../../src/ogl/drawn.cpp
293 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $(CPPDEPS) $<
294
295 $(OBJS)\ogldll_bmpshape.o: ../../src/ogl/bmpshape.cpp
296 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $(CPPDEPS) $<
297
298 $(OBJS)\ogldll_constrnt.o: ../../src/ogl/constrnt.cpp
299 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $(CPPDEPS) $<
300
301 $(OBJS)\ogldll_lines.o: ../../src/ogl/lines.cpp
302 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $(CPPDEPS) $<
303
304 $(OBJS)\ogldll_ogldiag.o: ../../src/ogl/ogldiag.cpp
305 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $(CPPDEPS) $<
306
307 $(OBJS)\ogllib_dummy.o: ../../src/ogl/../../../src/msw/dummy.cpp
308 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $(CPPDEPS) $<
309
310 $(OBJS)\ogllib_basic2.o: ../../src/ogl/basic2.cpp
311 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $(CPPDEPS) $<
312
313 $(OBJS)\ogllib_canvas.o: ../../src/ogl/canvas.cpp
314 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $(CPPDEPS) $<
315
316 $(OBJS)\ogllib_divided.o: ../../src/ogl/divided.cpp
317 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $(CPPDEPS) $<
318
319 $(OBJS)\ogllib_mfutils.o: ../../src/ogl/mfutils.cpp
320 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $(CPPDEPS) $<
321
322 $(OBJS)\ogllib_oglmisc.o: ../../src/ogl/oglmisc.cpp
323 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $(CPPDEPS) $<
324
325 $(OBJS)\ogllib_basic.o: ../../src/ogl/basic.cpp
326 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $(CPPDEPS) $<
327
328 $(OBJS)\ogllib_composit.o: ../../src/ogl/composit.cpp
329 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $(CPPDEPS) $<
330
331 $(OBJS)\ogllib_drawn.o: ../../src/ogl/drawn.cpp
332 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $(CPPDEPS) $<
333
334 $(OBJS)\ogllib_bmpshape.o: ../../src/ogl/bmpshape.cpp
335 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $(CPPDEPS) $<
336
337 $(OBJS)\ogllib_constrnt.o: ../../src/ogl/constrnt.cpp
338 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $(CPPDEPS) $<
339
340 $(OBJS)\ogllib_lines.o: ../../src/ogl/lines.cpp
341 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $(CPPDEPS) $<
342
343 $(OBJS)\ogllib_ogldiag.o: ../../src/ogl/ogldiag.cpp
344 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $(CPPDEPS) $<
345
346 .PHONY: all clean
347
348
349 # Dependencies tracking:
350 -include $(OBJS)/*.d