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