]> git.saurik.com Git - wxWidgets.git/blob - contrib/build/gizmos/makefile.gcc
Applied patch [ 1171542 ] access static class members via scoping operator
[wxWidgets.git] / contrib / build / gizmos / makefile.gcc
1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.1.8 (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 WX_RELEASE_NODOT = 25
16 WX_VERSION_NODOT = $(WX_RELEASE_NODOT)5
17 OBJS = \
18 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
19 LIBDIRNAME = ..\..\src\gizmos\..\..\..\lib\gcc_$(LIBTYPE_SUFFIX)$(CFG)
20 SETUPHDIR = \
21 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
22 GIZMOSDLL_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) \
23 $(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
24 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
25 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) \
26 -I..\..\src\gizmos\..\..\..\include -I$(SETUPHDIR) -W -Wall \
27 -I..\..\src\gizmos\..\..\include -DWXUSINGDLL -DWXMAKINGDLL_GIZMOS \
28 $(__RTTIFLAG) $(__EXCEPTIONSFLAG) -Wno-ctor-dtor-privacy $(CPPFLAGS) \
29 $(CXXFLAGS)
30 GIZMOSDLL_OBJECTS = \
31 $(OBJS)\gizmosdll_dummy.o \
32 $(OBJS)\gizmosdll_version_rc.o \
33 $(OBJS)\gizmosdll_dynamicsash.o \
34 $(OBJS)\gizmosdll_editlbox.o \
35 $(OBJS)\gizmosdll_ledctrl.o \
36 $(OBJS)\gizmosdll_multicell.o \
37 $(OBJS)\gizmosdll_splittree.o \
38 $(OBJS)\gizmosdll_statpict.o
39 GIZMOSLIB_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) \
40 $(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
41 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
42 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) \
43 -I..\..\src\gizmos\..\..\..\include -I$(SETUPHDIR) -W -Wall \
44 -I..\..\src\gizmos\..\..\include $(__RTTIFLAG) $(__EXCEPTIONSFLAG) \
45 -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
46 GIZMOSLIB_OBJECTS = \
47 $(OBJS)\gizmoslib_dummy.o \
48 $(OBJS)\gizmoslib_dynamicsash.o \
49 $(OBJS)\gizmoslib_editlbox.o \
50 $(OBJS)\gizmoslib_ledctrl.o \
51 $(OBJS)\gizmoslib_multicell.o \
52 $(OBJS)\gizmoslib_splittree.o \
53 $(OBJS)\gizmoslib_statpict.o
54
55 ### Conditionally set variables: ###
56
57 ifeq ($(GCC_VERSION),2.95)
58 GCCFLAGS = -fvtable-thunks
59 endif
60 ifeq ($(USE_GUI),0)
61 PORTNAME = base
62 endif
63 ifeq ($(USE_GUI),1)
64 PORTNAME = msw
65 endif
66 ifeq ($(OFFICIAL_BUILD),0)
67 VENDORTAG = _$(VENDOR)
68 endif
69 ifeq ($(OFFICIAL_BUILD),1)
70 VENDORTAG =
71 endif
72 ifeq ($(BUILD),debug)
73 ifeq ($(DEBUG_FLAG),default)
74 WXDEBUGFLAG = d
75 endif
76 endif
77 ifeq ($(DEBUG_FLAG),1)
78 WXDEBUGFLAG = d
79 endif
80 ifeq ($(UNICODE),1)
81 WXUNICODEFLAG = u
82 endif
83 ifeq ($(WXUNIV),1)
84 WXUNIVNAME = univ
85 endif
86 ifeq ($(SHARED),1)
87 WXDLLFLAG = dll
88 endif
89 ifeq ($(SHARED),0)
90 LIBTYPE_SUFFIX = lib
91 endif
92 ifeq ($(SHARED),1)
93 LIBTYPE_SUFFIX = dll
94 endif
95 ifeq ($(MONOLITHIC),0)
96 EXTRALIBS_FOR_BASE =
97 endif
98 ifeq ($(MONOLITHIC),1)
99 EXTRALIBS_FOR_BASE =
100 endif
101 ifeq ($(SHARED),1)
102 __gizmosdll___depname = \
103 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_gizmos_gcc$(VENDORTAG).dll
104 endif
105 ifeq ($(WXUNIV),1)
106 __WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__
107 endif
108 ifeq ($(BUILD),debug)
109 ifeq ($(DEBUG_FLAG),default)
110 __DEBUG_DEFINE_p_1 = --define __WXDEBUG__
111 endif
112 endif
113 ifeq ($(DEBUG_FLAG),1)
114 __DEBUG_DEFINE_p_1 = --define __WXDEBUG__
115 endif
116 ifeq ($(USE_EXCEPTIONS),0)
117 __EXCEPTIONS_DEFINE_p_1 = --define wxNO_EXCEPTIONS
118 endif
119 ifeq ($(USE_RTTI),0)
120 __RTTI_DEFINE_p_1 = --define wxNO_RTTI
121 endif
122 ifeq ($(USE_THREADS),0)
123 __THREAD_DEFINE_p_1 = --define wxNO_THREADS
124 endif
125 ifeq ($(UNICODE),1)
126 __UNICODE_DEFINE_p_1 = --define _UNICODE
127 endif
128 ifeq ($(MONOLITHIC),1)
129 __WXLIB_MONO_p = \
130 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
131 endif
132 ifeq ($(USE_GUI),1)
133 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
134 endif
135 ifeq ($(USE_GUI),1)
136 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
137 endif
138 ifeq ($(USE_GUI),1)
139 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
140 endif
141 ifeq ($(MSLU),1)
142 __UNICOWS_LIB_p = -lunicows
143 endif
144 ifeq ($(MONOLITHIC),0)
145 __WXLIB_BASE_p = \
146 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
147 endif
148 ifeq ($(MONOLITHIC),0)
149 __WXLIB_CORE_p = \
150 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
151 endif
152 ifeq ($(SHARED),0)
153 __gizmoslib___depname = \
154 $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_gizmos.a
155 endif
156 ifeq ($(BUILD),debug)
157 ifeq ($(DEBUG_INFO),default)
158 __DEBUGINFO = -g
159 endif
160 endif
161 ifeq ($(BUILD),release)
162 ifeq ($(DEBUG_INFO),default)
163 __DEBUGINFO =
164 endif
165 endif
166 ifeq ($(DEBUG_INFO),0)
167 __DEBUGINFO =
168 endif
169 ifeq ($(DEBUG_INFO),1)
170 __DEBUGINFO = -g
171 endif
172 ifeq ($(BUILD),debug)
173 __OPTIMIZEFLAG = -O0
174 endif
175 ifeq ($(BUILD),release)
176 __OPTIMIZEFLAG = -O2
177 endif
178 ifeq ($(USE_THREADS),0)
179 __THREADSFLAG =
180 endif
181 ifeq ($(USE_THREADS),1)
182 __THREADSFLAG = -mthreads
183 endif
184 ifeq ($(USE_RTTI),0)
185 __RTTIFLAG = -fno-rtti
186 endif
187 ifeq ($(USE_RTTI),1)
188 __RTTIFLAG =
189 endif
190 ifeq ($(USE_EXCEPTIONS),0)
191 __EXCEPTIONSFLAG = -fno-exceptions
192 endif
193 ifeq ($(USE_EXCEPTIONS),1)
194 __EXCEPTIONSFLAG =
195 endif
196 ifeq ($(WXUNIV),1)
197 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
198 endif
199 ifeq ($(BUILD),debug)
200 ifeq ($(DEBUG_FLAG),default)
201 __DEBUG_DEFINE_p = -D__WXDEBUG__
202 endif
203 endif
204 ifeq ($(DEBUG_FLAG),1)
205 __DEBUG_DEFINE_p = -D__WXDEBUG__
206 endif
207 ifeq ($(USE_EXCEPTIONS),0)
208 __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
209 endif
210 ifeq ($(USE_RTTI),0)
211 __RTTI_DEFINE_p = -DwxNO_RTTI
212 endif
213 ifeq ($(USE_THREADS),0)
214 __THREAD_DEFINE_p = -DwxNO_THREADS
215 endif
216 ifeq ($(UNICODE),1)
217 __UNICODE_DEFINE_p = -D_UNICODE
218 endif
219
220
221 all: $(OBJS)
222 $(OBJS):
223 -if not exist $(OBJS) mkdir $(OBJS)
224
225 ### Targets: ###
226
227 all: $(__gizmosdll___depname) $(__gizmoslib___depname)
228
229 clean:
230 -if exist $(OBJS)\*.o del $(OBJS)\*.o
231 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_gizmos_gcc$(VENDORTAG).dll del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_gizmos_gcc$(VENDORTAG).dll
232 -if exist $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_gizmos.a del $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_gizmos.a
233 -if exist $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_gizmos.a del $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_gizmos.a
234
235 ifeq ($(SHARED),1)
236 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_gizmos_gcc$(VENDORTAG).dll: $(GIZMOSDLL_OBJECTS) $(OBJS)\gizmosdll_version_rc.o
237 $(CXX) -shared -fPIC -o $@ $(GIZMOSDLL_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) -Wl,--out-implib,$(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_gizmos.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_BASE_p) $(__WXLIB_CORE_p)
238 endif
239
240 ifeq ($(SHARED),0)
241 $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_gizmos.a: $(GIZMOSLIB_OBJECTS)
242 if exist $@ del $@
243 ar rcu $@ $(GIZMOSLIB_OBJECTS)
244 ranlib $@
245 endif
246
247 $(OBJS)\gizmosdll_dummy.o: ../../src/gizmos/../../../src/msw/dummy.cpp
248 $(CXX) -c -o $@ $(GIZMOSDLL_CXXFLAGS) $<
249
250 $(OBJS)\gizmosdll_version_rc.o: ../../src/gizmos/../../../src/msw/version.rc
251 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) --include-dir ../../src/gizmos/../../../include --include-dir $(SETUPHDIR) --define WXDLLNAME=wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_gizmos_gcc$(VENDORTAG)
252
253 $(OBJS)\gizmosdll_dynamicsash.o: ../../src/gizmos/dynamicsash.cpp
254 $(CXX) -c -o $@ $(GIZMOSDLL_CXXFLAGS) $<
255
256 $(OBJS)\gizmosdll_editlbox.o: ../../src/gizmos/editlbox.cpp
257 $(CXX) -c -o $@ $(GIZMOSDLL_CXXFLAGS) $<
258
259 $(OBJS)\gizmosdll_ledctrl.o: ../../src/gizmos/ledctrl.cpp
260 $(CXX) -c -o $@ $(GIZMOSDLL_CXXFLAGS) $<
261
262 $(OBJS)\gizmosdll_multicell.o: ../../src/gizmos/multicell.cpp
263 $(CXX) -c -o $@ $(GIZMOSDLL_CXXFLAGS) $<
264
265 $(OBJS)\gizmosdll_splittree.o: ../../src/gizmos/splittree.cpp
266 $(CXX) -c -o $@ $(GIZMOSDLL_CXXFLAGS) $<
267
268 $(OBJS)\gizmosdll_statpict.o: ../../src/gizmos/statpict.cpp
269 $(CXX) -c -o $@ $(GIZMOSDLL_CXXFLAGS) $<
270
271 $(OBJS)\gizmoslib_dummy.o: ../../src/gizmos/../../../src/msw/dummy.cpp
272 $(CXX) -c -o $@ $(GIZMOSLIB_CXXFLAGS) $<
273
274 $(OBJS)\gizmoslib_dynamicsash.o: ../../src/gizmos/dynamicsash.cpp
275 $(CXX) -c -o $@ $(GIZMOSLIB_CXXFLAGS) $<
276
277 $(OBJS)\gizmoslib_editlbox.o: ../../src/gizmos/editlbox.cpp
278 $(CXX) -c -o $@ $(GIZMOSLIB_CXXFLAGS) $<
279
280 $(OBJS)\gizmoslib_ledctrl.o: ../../src/gizmos/ledctrl.cpp
281 $(CXX) -c -o $@ $(GIZMOSLIB_CXXFLAGS) $<
282
283 $(OBJS)\gizmoslib_multicell.o: ../../src/gizmos/multicell.cpp
284 $(CXX) -c -o $@ $(GIZMOSLIB_CXXFLAGS) $<
285
286 $(OBJS)\gizmoslib_splittree.o: ../../src/gizmos/splittree.cpp
287 $(CXX) -c -o $@ $(GIZMOSLIB_CXXFLAGS) $<
288
289 $(OBJS)\gizmoslib_statpict.o: ../../src/gizmos/statpict.cpp
290 $(CXX) -c -o $@ $(GIZMOSLIB_CXXFLAGS) $<
291
292 .PHONY: all clean
293
294