]> git.saurik.com Git - wxWidgets.git/blame - contrib/build/gizmos/makefile.gcc
1.10.2 and less mbtowc and wctomb HAVE THE COOTIEScd .. (they are just stubs and...
[wxWidgets.git] / contrib / build / gizmos / makefile.gcc
CommitLineData
250700e4
RD
1# =========================================================================
2# This makefile was generated by
c4839ccf 3# Bakefile 0.1.4 (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
RN
15WX_RELEASE_NODOT = 25
16WX_VERSION_NODOT = $(WX_RELEASE_NODOT)2
b17c1746
DE
17OBJS = \
18 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
19SETUPHDIR = \
20 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
9bfe7ad9 21GIZMOSDLL_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) \
3f55f5b8 22 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
75a0a7b7 23 $(__UNICODE_DEFINE_p) -I..\..\src\gizmos\..\..\..\include -I$(SETUPHDIR) \
ec08d395 24 -Wall -I..\..\src\gizmos\..\..\include -DWXUSINGDLL -DWXMAKINGDLL_GIZMOS \
9bfe7ad9 25 $(__EXCEPTIONSFLAG) $(__EXCEPTIONSFLAG_0) $(CPPFLAGS) $(CXXFLAGS)
3f55f5b8
VS
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 \
8151e997 33 $(OBJS)\gizmosdll_statpict.o
9bfe7ad9 34GIZMOSLIB_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) \
3f55f5b8 35 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
75a0a7b7 36 $(__UNICODE_DEFINE_p) -I..\..\src\gizmos\..\..\..\include -I$(SETUPHDIR) \
9bfe7ad9
VS
37 -Wall -I..\..\src\gizmos\..\..\include $(__EXCEPTIONSFLAG) \
38 $(__EXCEPTIONSFLAG_0) $(CPPFLAGS) $(CXXFLAGS)
3f55f5b8
VS
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 \
8151e997 46 $(OBJS)\gizmoslib_statpict.o
250700e4
RD
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)
3f55f5b8
VS
66ifeq ($(DEBUG_FLAG),default)
67WXDEBUGFLAG = d
68endif
69endif
70ifeq ($(DEBUG_FLAG),1)
250700e4
RD
71WXDEBUGFLAG = d
72endif
250700e4
RD
73ifeq ($(UNICODE),1)
74WXUNICODEFLAG = u
75endif
76ifeq ($(WXUNIV),1)
77WXUNIVNAME = univ
78endif
b17c1746
DE
79ifeq ($(SHARED),1)
80WXDLLFLAG = dll
81endif
82ifeq ($(SHARED),1)
83__gizmosdll___depname = \
c33fae85 84 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_gizmos_gcc$(VENDORTAG).dll
b17c1746
DE
85endif
86ifeq ($(MONOLITHIC),1)
87__WXLIB_MONO_p = \
c33fae85 88 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
b17c1746
DE
89endif
90ifeq ($(USE_GUI),1)
c33fae85 91__LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)$(WX_RELEASE_NODOT)
b17c1746
DE
92endif
93ifeq ($(USE_GUI),1)
c33fae85 94__LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)$(WX_RELEASE_NODOT)
b17c1746
DE
95endif
96ifeq ($(USE_GUI),1)
c33fae85 97__LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)$(WX_RELEASE_NODOT)
b17c1746
DE
98endif
99ifeq ($(MSLU),1)
100__UNICOWS_LIB_p = -lunicows
101endif
102ifeq ($(MONOLITHIC),0)
c33fae85
RN
103__WXLIB_BASE_p = \
104 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
b17c1746
DE
105endif
106ifeq ($(MONOLITHIC),0)
107__WXLIB_CORE_p = \
c33fae85 108 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
b17c1746
DE
109endif
110ifeq ($(SHARED),0)
111__gizmoslib___depname = \
c33fae85 112 $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_gizmos.a
b17c1746 113endif
250700e4 114ifeq ($(BUILD),debug)
3f55f5b8
VS
115ifeq ($(DEBUG_INFO),default)
116__DEBUGINFO = -g
117endif
250700e4
RD
118endif
119ifeq ($(BUILD),release)
3f55f5b8
VS
120ifeq ($(DEBUG_INFO),default)
121__DEBUGINFO =
122endif
123endif
124ifeq ($(DEBUG_INFO),0)
125__DEBUGINFO =
126endif
127ifeq ($(DEBUG_INFO),1)
128__DEBUGINFO = -g
250700e4
RD
129endif
130ifeq ($(BUILD),debug)
b17c1746 131__OPTIMIZEFLAG = -O0
3f55f5b8 132endif
b17c1746
DE
133ifeq ($(BUILD),release)
134__OPTIMIZEFLAG = -O2
250700e4 135endif
a4ad36cd
VS
136ifeq ($(USE_EXCEPTIONS),0)
137__EXCEPTIONSFLAG = -fno-rtti
138endif
139ifeq ($(USE_EXCEPTIONS),1)
140__EXCEPTIONSFLAG =
141endif
142ifeq ($(USE_EXCEPTIONS),0)
143__EXCEPTIONSFLAG_0 = -fno-exceptions
144endif
145ifeq ($(USE_EXCEPTIONS),1)
146__EXCEPTIONSFLAG_0 =
147endif
b17c1746
DE
148ifeq ($(WXUNIV),1)
149__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
3f55f5b8 150endif
250700e4 151ifeq ($(BUILD),debug)
b17c1746
DE
152ifeq ($(DEBUG_FLAG),default)
153__DEBUG_DEFINE_p = -D__WXDEBUG__
250700e4 154endif
b17c1746
DE
155endif
156ifeq ($(DEBUG_FLAG),1)
157__DEBUG_DEFINE_p = -D__WXDEBUG__
250700e4
RD
158endif
159ifeq ($(UNICODE),1)
ec08d395 160__UNICODE_DEFINE_p = -D_UNICODE
250700e4 161endif
b17c1746
DE
162ifeq ($(SHARED),0)
163LIBDIRNAME = ..\..\src\gizmos\..\..\..\lib\gcc_lib$(CFG)
250700e4
RD
164endif
165ifeq ($(SHARED),1)
b17c1746 166LIBDIRNAME = ..\..\src\gizmos\..\..\..\lib\gcc_dll$(CFG)
250700e4
RD
167endif
168
169
170all: $(OBJS)
171$(OBJS):
172 -if not exist $(OBJS) mkdir $(OBJS)
173
174### Targets: ###
175
176all: $(__gizmosdll___depname) $(__gizmoslib___depname)
177
b17c1746
DE
178clean:
179 -if exist $(OBJS)\*.o del $(OBJS)\*.o
c33fae85
RN
180 -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
181 -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
182 -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
183
184ifeq ($(SHARED),1)
c33fae85
RN
185$(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_gizmos_gcc$(VENDORTAG).dll: $(GIZMOSDLL_OBJECTS)
186 $(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)$(WX_RELEASE_NODOT) -lwxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_RELEASE_NODOT) -lwxexpat$(WXDEBUGFLAG)$(WX_RELEASE_NODOT) $(__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
187endif
188
189ifeq ($(SHARED),0)
c33fae85 190$(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_gizmos.a: $(GIZMOSLIB_OBJECTS)
b17c1746
DE
191 if exist $@ del $@
192 ar rcu $@ $(GIZMOSLIB_OBJECTS)
193 ranlib $@
194endif
195
1c3a6972 196$(OBJS)\gizmosdll_dummy.o: ../../src/gizmos/../../../src/msw/dummy.cpp
250700e4
RD
197 $(CXX) -c -o $@ $(GIZMOSDLL_CXXFLAGS) $<
198
1c3a6972 199$(OBJS)\gizmosdll_dynamicsash.o: ../../src/gizmos/dynamicsash.cpp
250700e4
RD
200 $(CXX) -c -o $@ $(GIZMOSDLL_CXXFLAGS) $<
201
1c3a6972 202$(OBJS)\gizmosdll_editlbox.o: ../../src/gizmos/editlbox.cpp
250700e4
RD
203 $(CXX) -c -o $@ $(GIZMOSDLL_CXXFLAGS) $<
204
1c3a6972 205$(OBJS)\gizmosdll_ledctrl.o: ../../src/gizmos/ledctrl.cpp
250700e4
RD
206 $(CXX) -c -o $@ $(GIZMOSDLL_CXXFLAGS) $<
207
1c3a6972 208$(OBJS)\gizmosdll_multicell.o: ../../src/gizmos/multicell.cpp
250700e4
RD
209 $(CXX) -c -o $@ $(GIZMOSDLL_CXXFLAGS) $<
210
1c3a6972 211$(OBJS)\gizmosdll_splittree.o: ../../src/gizmos/splittree.cpp
250700e4
RD
212 $(CXX) -c -o $@ $(GIZMOSDLL_CXXFLAGS) $<
213
1c3a6972 214$(OBJS)\gizmosdll_statpict.o: ../../src/gizmos/statpict.cpp
250700e4
RD
215 $(CXX) -c -o $@ $(GIZMOSDLL_CXXFLAGS) $<
216
1c3a6972 217$(OBJS)\gizmoslib_dummy.o: ../../src/gizmos/../../../src/msw/dummy.cpp
250700e4
RD
218 $(CXX) -c -o $@ $(GIZMOSLIB_CXXFLAGS) $<
219
1c3a6972 220$(OBJS)\gizmoslib_dynamicsash.o: ../../src/gizmos/dynamicsash.cpp
250700e4
RD
221 $(CXX) -c -o $@ $(GIZMOSLIB_CXXFLAGS) $<
222
1c3a6972 223$(OBJS)\gizmoslib_editlbox.o: ../../src/gizmos/editlbox.cpp
250700e4
RD
224 $(CXX) -c -o $@ $(GIZMOSLIB_CXXFLAGS) $<
225
1c3a6972 226$(OBJS)\gizmoslib_ledctrl.o: ../../src/gizmos/ledctrl.cpp
250700e4
RD
227 $(CXX) -c -o $@ $(GIZMOSLIB_CXXFLAGS) $<
228
1c3a6972 229$(OBJS)\gizmoslib_multicell.o: ../../src/gizmos/multicell.cpp
250700e4
RD
230 $(CXX) -c -o $@ $(GIZMOSLIB_CXXFLAGS) $<
231
1c3a6972 232$(OBJS)\gizmoslib_splittree.o: ../../src/gizmos/splittree.cpp
250700e4
RD
233 $(CXX) -c -o $@ $(GIZMOSLIB_CXXFLAGS) $<
234
1c3a6972 235$(OBJS)\gizmoslib_statpict.o: ../../src/gizmos/statpict.cpp
250700e4
RD
236 $(CXX) -c -o $@ $(GIZMOSLIB_CXXFLAGS) $<
237
250700e4 238.PHONY: all clean