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