]> git.saurik.com Git - wxWidgets.git/blob - contrib/build/ogl/makefile.gcc
regenerated makefiles
[wxWidgets.git] / contrib / build / ogl / makefile.gcc
1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.1.1 (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 LIBDIRNAME = \
16 ..\..\src\ogl\..\..\..\lib\gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
17 OBJS = \
18 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
19 OGLDLL_CXXFLAGS = $(CPPFLAGS) $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) \
20 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
21 $(__UNICODE_DEFINE_p) -I..\..\src\ogl\..\..\..\include -I$(LIBDIRNAME) \
22 -I..\..\src\ogl\..\..\..\src\tiff -I..\..\src\ogl\..\..\..\src\jpeg \
23 -I..\..\src\ogl\..\..\..\src\png -I..\..\src\ogl\..\..\..\src\zlib \
24 -I..\..\src\ogl\..\..\..\src\regex -I..\..\src\ogl\..\..\..\src\expat\lib \
25 -I..\..\src\ogl\..\..\include -DWXUSINGDLL -DWXMAKINGDLL_OGL $(CXXFLAGS)
26 OGLDLL_OBJECTS = \
27 $(OBJS)\ogldll_dummy.o \
28 $(OBJS)\ogldll_basic2.o \
29 $(OBJS)\ogldll_canvas.o \
30 $(OBJS)\ogldll_divided.o \
31 $(OBJS)\ogldll_mfutils.o \
32 $(OBJS)\ogldll_oglmisc.o \
33 $(OBJS)\ogldll_basic.o \
34 $(OBJS)\ogldll_composit.o \
35 $(OBJS)\ogldll_drawn.o \
36 $(OBJS)\ogldll_bmpshape.o \
37 $(OBJS)\ogldll_constrnt.o \
38 $(OBJS)\ogldll_lines.o \
39 $(OBJS)\ogldll_ogldiag.o
40 OGLLIB_CXXFLAGS = $(CPPFLAGS) $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) \
41 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
42 $(__UNICODE_DEFINE_p) -I..\..\src\ogl\..\..\..\include -I$(LIBDIRNAME) \
43 -I..\..\src\ogl\..\..\..\src\tiff -I..\..\src\ogl\..\..\..\src\jpeg \
44 -I..\..\src\ogl\..\..\..\src\png -I..\..\src\ogl\..\..\..\src\zlib \
45 -I..\..\src\ogl\..\..\..\src\regex -I..\..\src\ogl\..\..\..\src\expat\lib \
46 -I..\..\src\ogl\..\..\include $(CXXFLAGS)
47 OGLLIB_OBJECTS = \
48 $(OBJS)\ogllib_dummy.o \
49 $(OBJS)\ogllib_basic2.o \
50 $(OBJS)\ogllib_canvas.o \
51 $(OBJS)\ogllib_divided.o \
52 $(OBJS)\ogllib_mfutils.o \
53 $(OBJS)\ogllib_oglmisc.o \
54 $(OBJS)\ogllib_basic.o \
55 $(OBJS)\ogllib_composit.o \
56 $(OBJS)\ogllib_drawn.o \
57 $(OBJS)\ogllib_bmpshape.o \
58 $(OBJS)\ogllib_constrnt.o \
59 $(OBJS)\ogllib_lines.o \
60 $(OBJS)\ogllib_ogldiag.o
61
62 ### Conditionally set variables: ###
63
64 ifeq ($(GCC_VERSION),2.95)
65 GCCFLAGS = -fvtable-thunks
66 endif
67 ifeq ($(USE_GUI),0)
68 PORTNAME = base
69 endif
70 ifeq ($(USE_GUI),1)
71 PORTNAME = msw
72 endif
73 ifeq ($(OFFICIAL_BUILD),0)
74 VENDORTAG = _$(VENDOR)
75 endif
76 ifeq ($(OFFICIAL_BUILD),1)
77 VENDORTAG =
78 endif
79 ifeq ($(BUILD),debug)
80 ifeq ($(DEBUG_FLAG),default)
81 WXDEBUGFLAG = d
82 endif
83 endif
84 ifeq ($(DEBUG_FLAG),1)
85 WXDEBUGFLAG = d
86 endif
87 ifeq ($(SHARED),1)
88 WXDLLFLAG = dll
89 endif
90 ifeq ($(UNICODE),1)
91 WXUNICODEFLAG = u
92 endif
93 ifeq ($(WXUNIV),1)
94 WXUNIVNAME = univ
95 endif
96 ifeq ($(BUILD),debug)
97 ifeq ($(DEBUG_INFO),default)
98 __DEBUGINFO = -g
99 endif
100 endif
101 ifeq ($(BUILD),release)
102 ifeq ($(DEBUG_INFO),default)
103 __DEBUGINFO =
104 endif
105 endif
106 ifeq ($(DEBUG_INFO),0)
107 __DEBUGINFO =
108 endif
109 ifeq ($(DEBUG_INFO),1)
110 __DEBUGINFO = -g
111 endif
112 ifeq ($(BUILD),debug)
113 ifeq ($(DEBUG_FLAG),default)
114 __DEBUG_DEFINE_p = -D__WXDEBUG__
115 endif
116 endif
117 ifeq ($(DEBUG_FLAG),1)
118 __DEBUG_DEFINE_p = -D__WXDEBUG__
119 endif
120 ifeq ($(USE_GUI),1)
121 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
122 endif
123 ifeq ($(USE_GUI),1)
124 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
125 endif
126 ifeq ($(USE_GUI),1)
127 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
128 endif
129 ifeq ($(BUILD),debug)
130 __OPTIMIZEFLAG = -O0
131 endif
132 ifeq ($(BUILD),release)
133 __OPTIMIZEFLAG = -O2
134 endif
135 ifeq ($(UNICODE),1)
136 __UNICODE_DEFINE_p = -DwxUSE_UNICODE=1
137 endif
138 ifeq ($(MONOLITHIC),0)
139 __WXLIB_BASE_p = -lwxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
140 endif
141 ifeq ($(MONOLITHIC),0)
142 __WXLIB_CORE_p = \
143 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core
144 endif
145 ifeq ($(MONOLITHIC),1)
146 __WXLIB_MONO_p = \
147 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
148 endif
149 ifeq ($(WXUNIV),1)
150 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
151 endif
152 ifeq ($(SHARED),1)
153 __ogldll___depname = \
154 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)250$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl_gcc$(VENDORTAG).dll
155 endif
156 ifeq ($(SHARED),0)
157 __ogllib___depname = \
158 $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl.a
159 endif
160
161 MAKEARGS = BUILD=$(BUILD) CFG=$(CFG) CPPFLAGS=$(CPPFLAGS) CXX=$(CXX) CXXFLAGS=$(CXXFLAGS) DEBUG_FLAG=$(DEBUG_FLAG) DEBUG_INFO=$(DEBUG_INFO) GCC_VERSION=$(GCC_VERSION) LDFLAGS=$(LDFLAGS) MONOLITHIC=$(MONOLITHIC) OFFICIAL_BUILD=$(OFFICIAL_BUILD) SHARED=$(SHARED) UNICODE=$(UNICODE) USE_GUI=$(USE_GUI) VENDOR=$(VENDOR) WXUNIV=$(WXUNIV)
162
163
164 all: $(OBJS)
165 $(OBJS):
166 -if not exist $(OBJS) mkdir $(OBJS)
167
168 ### Targets: ###
169
170 all: $(__ogldll___depname) $(__ogllib___depname)
171
172 $(OBJS)\ogldll_basic.o: ../../src/ogl\basic.cpp
173 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $<
174
175 $(OBJS)\ogldll_basic2.o: ../../src/ogl\basic2.cpp
176 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $<
177
178 $(OBJS)\ogldll_bmpshape.o: ../../src/ogl\bmpshape.cpp
179 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $<
180
181 $(OBJS)\ogldll_canvas.o: ../../src/ogl\canvas.cpp
182 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $<
183
184 $(OBJS)\ogldll_composit.o: ../../src/ogl\composit.cpp
185 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $<
186
187 $(OBJS)\ogldll_constrnt.o: ../../src/ogl\constrnt.cpp
188 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $<
189
190 $(OBJS)\ogldll_divided.o: ../../src/ogl\divided.cpp
191 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $<
192
193 $(OBJS)\ogldll_drawn.o: ../../src/ogl\drawn.cpp
194 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $<
195
196 $(OBJS)\ogldll_dummy.o: ../../src/ogl\..\..\..\src\msw\dummy.cpp
197 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $<
198
199 $(OBJS)\ogldll_lines.o: ../../src/ogl\lines.cpp
200 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $<
201
202 $(OBJS)\ogldll_mfutils.o: ../../src/ogl\mfutils.cpp
203 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $<
204
205 $(OBJS)\ogldll_ogldiag.o: ../../src/ogl\ogldiag.cpp
206 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $<
207
208 $(OBJS)\ogldll_oglmisc.o: ../../src/ogl\oglmisc.cpp
209 $(CXX) -c -o $@ $(OGLDLL_CXXFLAGS) $<
210
211 $(OBJS)\ogllib_basic.o: ../../src/ogl\basic.cpp
212 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $<
213
214 $(OBJS)\ogllib_basic2.o: ../../src/ogl\basic2.cpp
215 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $<
216
217 $(OBJS)\ogllib_bmpshape.o: ../../src/ogl\bmpshape.cpp
218 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $<
219
220 $(OBJS)\ogllib_canvas.o: ../../src/ogl\canvas.cpp
221 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $<
222
223 $(OBJS)\ogllib_composit.o: ../../src/ogl\composit.cpp
224 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $<
225
226 $(OBJS)\ogllib_constrnt.o: ../../src/ogl\constrnt.cpp
227 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $<
228
229 $(OBJS)\ogllib_divided.o: ../../src/ogl\divided.cpp
230 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $<
231
232 $(OBJS)\ogllib_drawn.o: ../../src/ogl\drawn.cpp
233 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $<
234
235 $(OBJS)\ogllib_dummy.o: ../../src/ogl\..\..\..\src\msw\dummy.cpp
236 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $<
237
238 $(OBJS)\ogllib_lines.o: ../../src/ogl\lines.cpp
239 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $<
240
241 $(OBJS)\ogllib_mfutils.o: ../../src/ogl\mfutils.cpp
242 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $<
243
244 $(OBJS)\ogllib_ogldiag.o: ../../src/ogl\ogldiag.cpp
245 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $<
246
247 $(OBJS)\ogllib_oglmisc.o: ../../src/ogl\oglmisc.cpp
248 $(CXX) -c -o $@ $(OGLLIB_CXXFLAGS) $<
249
250 clean:
251 -if exist $(OBJS)\*.o del $(OBJS)\*.o
252 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)250$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl_gcc$(VENDORTAG).dll del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)250$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl_gcc$(VENDORTAG).dll
253 -if exist $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl.a del $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl.a
254 -if exist $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl.a del $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl.a
255
256 ifeq ($(SHARED),1)
257 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)250$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl_gcc$(VENDORTAG).dll: $(OGLDLL_OBJECTS)
258 $(CXX) -shared -o $@ $(OGLDLL_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) -mthreads -L$(LIBDIRNAME) -Wl,--out-implib,$(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl.a $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) -lwxzlib$(WXDEBUGFLAG) -lwxregex$(WXDEBUGFLAG) -lwxexpat$(WXDEBUGFLAG) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lodbc32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 $(__WXLIB_CORE_p) $(__WXLIB_BASE_p)
259 endif
260
261 ifeq ($(SHARED),0)
262 $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl.a: $(OGLLIB_OBJECTS)
263 if exist $@ del $@
264 ar rcu $@ $(OGLLIB_OBJECTS)
265 ranlib $@
266 endif
267
268 .PHONY: all clean