]> git.saurik.com Git - wxWidgets.git/blame_incremental - contrib/build/gizmos/makefile.gcc
wxString and wxChar* access for file functions. Source cleaning.
[wxWidgets.git] / contrib / build / gizmos / makefile.gcc
... / ...
CommitLineData
1# =========================================================================
2# This makefile was generated by
3# Bakefile 0.1.4 (http://bakefile.sourceforge.net)
4# Do not modify, all changes will be overwritten!
5# =========================================================================
6
7include ../../../build/msw/config.gcc
8
9# -------------------------------------------------------------------------
10# Do not modify the rest of this file!
11# -------------------------------------------------------------------------
12
13### Variables: ###
14
15WX_RELEASE_NODOT = 25
16WX_VERSION_NODOT = $(WX_RELEASE_NODOT)3
17OBJS = \
18 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
19SETUPHDIR = \
20 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
21GIZMOSDLL_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) \
22 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
23 $(__UNICODE_DEFINE_p) -I..\..\src\gizmos\..\..\..\include -I$(SETUPHDIR) \
24 -Wall -I..\..\src\gizmos\..\..\include -DWXUSINGDLL -DWXMAKINGDLL_GIZMOS \
25 $(__EXCEPTIONSFLAG) $(__EXCEPTIONSFLAG_0) $(CPPFLAGS) $(CXXFLAGS)
26GIZMOSDLL_OBJECTS = \
27 $(OBJS)\gizmosdll_dummy.o \
28 $(OBJS)\gizmosdll_dynamicsash.o \
29 $(OBJS)\gizmosdll_editlbox.o \
30 $(OBJS)\gizmosdll_ledctrl.o \
31 $(OBJS)\gizmosdll_multicell.o \
32 $(OBJS)\gizmosdll_splittree.o \
33 $(OBJS)\gizmosdll_statpict.o
34GIZMOSLIB_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) \
35 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
36 $(__UNICODE_DEFINE_p) -I..\..\src\gizmos\..\..\..\include -I$(SETUPHDIR) \
37 -Wall -I..\..\src\gizmos\..\..\include $(__EXCEPTIONSFLAG) \
38 $(__EXCEPTIONSFLAG_0) $(CPPFLAGS) $(CXXFLAGS)
39GIZMOSLIB_OBJECTS = \
40 $(OBJS)\gizmoslib_dummy.o \
41 $(OBJS)\gizmoslib_dynamicsash.o \
42 $(OBJS)\gizmoslib_editlbox.o \
43 $(OBJS)\gizmoslib_ledctrl.o \
44 $(OBJS)\gizmoslib_multicell.o \
45 $(OBJS)\gizmoslib_splittree.o \
46 $(OBJS)\gizmoslib_statpict.o
47
48### Conditionally set variables: ###
49
50ifeq ($(GCC_VERSION),2.95)
51GCCFLAGS = -fvtable-thunks
52endif
53ifeq ($(USE_GUI),0)
54PORTNAME = base
55endif
56ifeq ($(USE_GUI),1)
57PORTNAME = msw
58endif
59ifeq ($(OFFICIAL_BUILD),0)
60VENDORTAG = _$(VENDOR)
61endif
62ifeq ($(OFFICIAL_BUILD),1)
63VENDORTAG =
64endif
65ifeq ($(BUILD),debug)
66ifeq ($(DEBUG_FLAG),default)
67WXDEBUGFLAG = d
68endif
69endif
70ifeq ($(DEBUG_FLAG),1)
71WXDEBUGFLAG = d
72endif
73ifeq ($(UNICODE),1)
74WXUNICODEFLAG = u
75endif
76ifeq ($(WXUNIV),1)
77WXUNIVNAME = univ
78endif
79ifeq ($(SHARED),1)
80WXDLLFLAG = dll
81endif
82ifeq ($(MONOLITHIC),0)
83EXTRALIBS_FOR_BASE =
84endif
85ifeq ($(MONOLITHIC),1)
86EXTRALIBS_FOR_BASE =
87endif
88ifeq ($(SHARED),1)
89__gizmosdll___depname = \
90 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_gizmos_gcc$(VENDORTAG).dll
91endif
92ifeq ($(MONOLITHIC),1)
93__WXLIB_MONO_p = \
94 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
95endif
96ifeq ($(USE_GUI),1)
97__LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
98endif
99ifeq ($(USE_GUI),1)
100__LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
101endif
102ifeq ($(USE_GUI),1)
103__LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
104endif
105ifeq ($(MSLU),1)
106__UNICOWS_LIB_p = -lunicows
107endif
108ifeq ($(MONOLITHIC),0)
109__WXLIB_BASE_p = \
110 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
111endif
112ifeq ($(MONOLITHIC),0)
113__WXLIB_CORE_p = \
114 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
115endif
116ifeq ($(SHARED),0)
117__gizmoslib___depname = \
118 $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_gizmos.a
119endif
120ifeq ($(BUILD),debug)
121ifeq ($(DEBUG_INFO),default)
122__DEBUGINFO = -g
123endif
124endif
125ifeq ($(BUILD),release)
126ifeq ($(DEBUG_INFO),default)
127__DEBUGINFO =
128endif
129endif
130ifeq ($(DEBUG_INFO),0)
131__DEBUGINFO =
132endif
133ifeq ($(DEBUG_INFO),1)
134__DEBUGINFO = -g
135endif
136ifeq ($(BUILD),debug)
137__OPTIMIZEFLAG = -O0
138endif
139ifeq ($(BUILD),release)
140__OPTIMIZEFLAG = -O2
141endif
142ifeq ($(USE_EXCEPTIONS),0)
143__EXCEPTIONSFLAG = -fno-rtti
144endif
145ifeq ($(USE_EXCEPTIONS),1)
146__EXCEPTIONSFLAG =
147endif
148ifeq ($(USE_EXCEPTIONS),0)
149__EXCEPTIONSFLAG_0 = -fno-exceptions
150endif
151ifeq ($(USE_EXCEPTIONS),1)
152__EXCEPTIONSFLAG_0 =
153endif
154ifeq ($(WXUNIV),1)
155__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
156endif
157ifeq ($(BUILD),debug)
158ifeq ($(DEBUG_FLAG),default)
159__DEBUG_DEFINE_p = -D__WXDEBUG__
160endif
161endif
162ifeq ($(DEBUG_FLAG),1)
163__DEBUG_DEFINE_p = -D__WXDEBUG__
164endif
165ifeq ($(UNICODE),1)
166__UNICODE_DEFINE_p = -D_UNICODE
167endif
168ifeq ($(SHARED),0)
169LIBDIRNAME = ..\..\src\gizmos\..\..\..\lib\gcc_lib$(CFG)
170endif
171ifeq ($(SHARED),1)
172LIBDIRNAME = ..\..\src\gizmos\..\..\..\lib\gcc_dll$(CFG)
173endif
174
175
176all: $(OBJS)
177$(OBJS):
178 -if not exist $(OBJS) mkdir $(OBJS)
179
180### Targets: ###
181
182all: $(__gizmosdll___depname) $(__gizmoslib___depname)
183
184clean:
185 -if exist $(OBJS)\*.o del $(OBJS)\*.o
186 -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
187 -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
188 -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
189
190ifeq ($(SHARED),1)
191$(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_gizmos_gcc$(VENDORTAG).dll: $(GIZMOSDLL_OBJECTS)
192 $(CXX) -shared -o $@ $(GIZMOSDLL_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) -mthreads -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)
193endif
194
195ifeq ($(SHARED),0)
196$(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_gizmos.a: $(GIZMOSLIB_OBJECTS)
197 if exist $@ del $@
198 ar rcu $@ $(GIZMOSLIB_OBJECTS)
199 ranlib $@
200endif
201
202$(OBJS)\gizmosdll_dummy.o: ../../src/gizmos/../../../src/msw/dummy.cpp
203 $(CXX) -c -o $@ $(GIZMOSDLL_CXXFLAGS) $<
204
205$(OBJS)\gizmosdll_dynamicsash.o: ../../src/gizmos/dynamicsash.cpp
206 $(CXX) -c -o $@ $(GIZMOSDLL_CXXFLAGS) $<
207
208$(OBJS)\gizmosdll_editlbox.o: ../../src/gizmos/editlbox.cpp
209 $(CXX) -c -o $@ $(GIZMOSDLL_CXXFLAGS) $<
210
211$(OBJS)\gizmosdll_ledctrl.o: ../../src/gizmos/ledctrl.cpp
212 $(CXX) -c -o $@ $(GIZMOSDLL_CXXFLAGS) $<
213
214$(OBJS)\gizmosdll_multicell.o: ../../src/gizmos/multicell.cpp
215 $(CXX) -c -o $@ $(GIZMOSDLL_CXXFLAGS) $<
216
217$(OBJS)\gizmosdll_splittree.o: ../../src/gizmos/splittree.cpp
218 $(CXX) -c -o $@ $(GIZMOSDLL_CXXFLAGS) $<
219
220$(OBJS)\gizmosdll_statpict.o: ../../src/gizmos/statpict.cpp
221 $(CXX) -c -o $@ $(GIZMOSDLL_CXXFLAGS) $<
222
223$(OBJS)\gizmoslib_dummy.o: ../../src/gizmos/../../../src/msw/dummy.cpp
224 $(CXX) -c -o $@ $(GIZMOSLIB_CXXFLAGS) $<
225
226$(OBJS)\gizmoslib_dynamicsash.o: ../../src/gizmos/dynamicsash.cpp
227 $(CXX) -c -o $@ $(GIZMOSLIB_CXXFLAGS) $<
228
229$(OBJS)\gizmoslib_editlbox.o: ../../src/gizmos/editlbox.cpp
230 $(CXX) -c -o $@ $(GIZMOSLIB_CXXFLAGS) $<
231
232$(OBJS)\gizmoslib_ledctrl.o: ../../src/gizmos/ledctrl.cpp
233 $(CXX) -c -o $@ $(GIZMOSLIB_CXXFLAGS) $<
234
235$(OBJS)\gizmoslib_multicell.o: ../../src/gizmos/multicell.cpp
236 $(CXX) -c -o $@ $(GIZMOSLIB_CXXFLAGS) $<
237
238$(OBJS)\gizmoslib_splittree.o: ../../src/gizmos/splittree.cpp
239 $(CXX) -c -o $@ $(GIZMOSLIB_CXXFLAGS) $<
240
241$(OBJS)\gizmoslib_statpict.o: ../../src/gizmos/statpict.cpp
242 $(CXX) -c -o $@ $(GIZMOSLIB_CXXFLAGS) $<
243
244.PHONY: all clean