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