]> git.saurik.com Git - wxWidgets.git/blame - contrib/build/gizmos/makefile.gcc
Updated version variables in configure.in to go along with the changes
[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
b17c1746
DE
15OBJS = \
16 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
17SETUPHDIR = \
18 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
9bfe7ad9 19GIZMOSDLL_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) \
3f55f5b8 20 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
75a0a7b7 21 $(__UNICODE_DEFINE_p) -I..\..\src\gizmos\..\..\..\include -I$(SETUPHDIR) \
ec08d395 22 -Wall -I..\..\src\gizmos\..\..\include -DWXUSINGDLL -DWXMAKINGDLL_GIZMOS \
9bfe7ad9 23 $(__EXCEPTIONSFLAG) $(__EXCEPTIONSFLAG_0) $(CPPFLAGS) $(CXXFLAGS)
3f55f5b8
VS
24GIZMOSDLL_OBJECTS = \
25 $(OBJS)\gizmosdll_dummy.o \
26 $(OBJS)\gizmosdll_dynamicsash.o \
27 $(OBJS)\gizmosdll_editlbox.o \
28 $(OBJS)\gizmosdll_ledctrl.o \
29 $(OBJS)\gizmosdll_multicell.o \
30 $(OBJS)\gizmosdll_splittree.o \
c4839ccf
JS
31 $(OBJS)\gizmosdll_statpict.o \
32 $(OBJS)\gizmosdll_treelistctrl.o
9bfe7ad9 33GIZMOSLIB_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) \
3f55f5b8 34 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
75a0a7b7 35 $(__UNICODE_DEFINE_p) -I..\..\src\gizmos\..\..\..\include -I$(SETUPHDIR) \
9bfe7ad9
VS
36 -Wall -I..\..\src\gizmos\..\..\include $(__EXCEPTIONSFLAG) \
37 $(__EXCEPTIONSFLAG_0) $(CPPFLAGS) $(CXXFLAGS)
3f55f5b8
VS
38GIZMOSLIB_OBJECTS = \
39 $(OBJS)\gizmoslib_dummy.o \
40 $(OBJS)\gizmoslib_dynamicsash.o \
41 $(OBJS)\gizmoslib_editlbox.o \
42 $(OBJS)\gizmoslib_ledctrl.o \
43 $(OBJS)\gizmoslib_multicell.o \
44 $(OBJS)\gizmoslib_splittree.o \
c4839ccf
JS
45 $(OBJS)\gizmoslib_statpict.o \
46 $(OBJS)\gizmoslib_treelistctrl.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 = \
c4839ccf 84 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)252$(WXUNICODEFLAG)$(WXDEBUGFLAG)_gizmos_gcc$(VENDORTAG).dll
b17c1746
DE
85endif
86ifeq ($(MONOLITHIC),1)
87__WXLIB_MONO_p = \
88 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
89endif
90ifeq ($(USE_GUI),1)
91__LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
92endif
93ifeq ($(USE_GUI),1)
94__LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
95endif
96ifeq ($(USE_GUI),1)
97__LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
98endif
99ifeq ($(MSLU),1)
100__UNICOWS_LIB_p = -lunicows
101endif
102ifeq ($(MONOLITHIC),0)
103__WXLIB_BASE_p = -lwxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
104endif
105ifeq ($(MONOLITHIC),0)
106__WXLIB_CORE_p = \
107 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core
108endif
109ifeq ($(SHARED),0)
110__gizmoslib___depname = \
111 $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_gizmos.a
112endif
250700e4 113ifeq ($(BUILD),debug)
3f55f5b8
VS
114ifeq ($(DEBUG_INFO),default)
115__DEBUGINFO = -g
116endif
250700e4
RD
117endif
118ifeq ($(BUILD),release)
3f55f5b8
VS
119ifeq ($(DEBUG_INFO),default)
120__DEBUGINFO =
121endif
122endif
123ifeq ($(DEBUG_INFO),0)
124__DEBUGINFO =
125endif
126ifeq ($(DEBUG_INFO),1)
127__DEBUGINFO = -g
250700e4
RD
128endif
129ifeq ($(BUILD),debug)
b17c1746 130__OPTIMIZEFLAG = -O0
3f55f5b8 131endif
b17c1746
DE
132ifeq ($(BUILD),release)
133__OPTIMIZEFLAG = -O2
250700e4 134endif
a4ad36cd
VS
135ifeq ($(USE_EXCEPTIONS),0)
136__EXCEPTIONSFLAG = -fno-rtti
137endif
138ifeq ($(USE_EXCEPTIONS),1)
139__EXCEPTIONSFLAG =
140endif
141ifeq ($(USE_EXCEPTIONS),0)
142__EXCEPTIONSFLAG_0 = -fno-exceptions
143endif
144ifeq ($(USE_EXCEPTIONS),1)
145__EXCEPTIONSFLAG_0 =
146endif
b17c1746
DE
147ifeq ($(WXUNIV),1)
148__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
3f55f5b8 149endif
250700e4 150ifeq ($(BUILD),debug)
b17c1746
DE
151ifeq ($(DEBUG_FLAG),default)
152__DEBUG_DEFINE_p = -D__WXDEBUG__
250700e4 153endif
b17c1746
DE
154endif
155ifeq ($(DEBUG_FLAG),1)
156__DEBUG_DEFINE_p = -D__WXDEBUG__
250700e4
RD
157endif
158ifeq ($(UNICODE),1)
ec08d395 159__UNICODE_DEFINE_p = -D_UNICODE
250700e4 160endif
b17c1746
DE
161ifeq ($(SHARED),0)
162LIBDIRNAME = ..\..\src\gizmos\..\..\..\lib\gcc_lib$(CFG)
250700e4
RD
163endif
164ifeq ($(SHARED),1)
b17c1746 165LIBDIRNAME = ..\..\src\gizmos\..\..\..\lib\gcc_dll$(CFG)
250700e4
RD
166endif
167
168
169all: $(OBJS)
170$(OBJS):
171 -if not exist $(OBJS) mkdir $(OBJS)
172
173### Targets: ###
174
175all: $(__gizmosdll___depname) $(__gizmoslib___depname)
176
b17c1746
DE
177clean:
178 -if exist $(OBJS)\*.o del $(OBJS)\*.o
c4839ccf 179 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)252$(WXUNICODEFLAG)$(WXDEBUGFLAG)_gizmos_gcc$(VENDORTAG).dll del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)252$(WXUNICODEFLAG)$(WXDEBUGFLAG)_gizmos_gcc$(VENDORTAG).dll
b17c1746
DE
180 -if exist $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_gizmos.a del $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_gizmos.a
181 -if exist $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_gizmos.a del $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_gizmos.a
182
183ifeq ($(SHARED),1)
c4839ccf 184$(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)252$(WXUNICODEFLAG)$(WXDEBUGFLAG)_gizmos_gcc$(VENDORTAG).dll: $(GIZMOSDLL_OBJECTS)
b92ca8cf 185 $(CXX) -shared -o $@ $(GIZMOSDLL_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) -mthreads -L$(LIBDIRNAME) -Wl,--out-implib,$(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_gizmos.a $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) -lwxzlib$(WXDEBUGFLAG) -lwxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG) -lwxexpat$(WXDEBUGFLAG) $(__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
186endif
187
188ifeq ($(SHARED),0)
189$(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_gizmos.a: $(GIZMOSLIB_OBJECTS)
190 if exist $@ del $@
191 ar rcu $@ $(GIZMOSLIB_OBJECTS)
192 ranlib $@
193endif
194
1c3a6972 195$(OBJS)\gizmosdll_dummy.o: ../../src/gizmos/../../../src/msw/dummy.cpp
250700e4
RD
196 $(CXX) -c -o $@ $(GIZMOSDLL_CXXFLAGS) $<
197
1c3a6972 198$(OBJS)\gizmosdll_dynamicsash.o: ../../src/gizmos/dynamicsash.cpp
250700e4
RD
199 $(CXX) -c -o $@ $(GIZMOSDLL_CXXFLAGS) $<
200
1c3a6972 201$(OBJS)\gizmosdll_editlbox.o: ../../src/gizmos/editlbox.cpp
250700e4
RD
202 $(CXX) -c -o $@ $(GIZMOSDLL_CXXFLAGS) $<
203
1c3a6972 204$(OBJS)\gizmosdll_ledctrl.o: ../../src/gizmos/ledctrl.cpp
250700e4
RD
205 $(CXX) -c -o $@ $(GIZMOSDLL_CXXFLAGS) $<
206
1c3a6972 207$(OBJS)\gizmosdll_multicell.o: ../../src/gizmos/multicell.cpp
250700e4
RD
208 $(CXX) -c -o $@ $(GIZMOSDLL_CXXFLAGS) $<
209
1c3a6972 210$(OBJS)\gizmosdll_splittree.o: ../../src/gizmos/splittree.cpp
250700e4
RD
211 $(CXX) -c -o $@ $(GIZMOSDLL_CXXFLAGS) $<
212
1c3a6972 213$(OBJS)\gizmosdll_statpict.o: ../../src/gizmos/statpict.cpp
250700e4
RD
214 $(CXX) -c -o $@ $(GIZMOSDLL_CXXFLAGS) $<
215
c4839ccf
JS
216$(OBJS)\gizmosdll_treelistctrl.o: ../../src/gizmos/treelistctrl.cpp
217 $(CXX) -c -o $@ $(GIZMOSDLL_CXXFLAGS) $<
218
1c3a6972 219$(OBJS)\gizmoslib_dummy.o: ../../src/gizmos/../../../src/msw/dummy.cpp
250700e4
RD
220 $(CXX) -c -o $@ $(GIZMOSLIB_CXXFLAGS) $<
221
1c3a6972 222$(OBJS)\gizmoslib_dynamicsash.o: ../../src/gizmos/dynamicsash.cpp
250700e4
RD
223 $(CXX) -c -o $@ $(GIZMOSLIB_CXXFLAGS) $<
224
1c3a6972 225$(OBJS)\gizmoslib_editlbox.o: ../../src/gizmos/editlbox.cpp
250700e4
RD
226 $(CXX) -c -o $@ $(GIZMOSLIB_CXXFLAGS) $<
227
1c3a6972 228$(OBJS)\gizmoslib_ledctrl.o: ../../src/gizmos/ledctrl.cpp
250700e4
RD
229 $(CXX) -c -o $@ $(GIZMOSLIB_CXXFLAGS) $<
230
1c3a6972 231$(OBJS)\gizmoslib_multicell.o: ../../src/gizmos/multicell.cpp
250700e4
RD
232 $(CXX) -c -o $@ $(GIZMOSLIB_CXXFLAGS) $<
233
1c3a6972 234$(OBJS)\gizmoslib_splittree.o: ../../src/gizmos/splittree.cpp
250700e4
RD
235 $(CXX) -c -o $@ $(GIZMOSLIB_CXXFLAGS) $<
236
1c3a6972 237$(OBJS)\gizmoslib_statpict.o: ../../src/gizmos/statpict.cpp
250700e4
RD
238 $(CXX) -c -o $@ $(GIZMOSLIB_CXXFLAGS) $<
239
c4839ccf
JS
240$(OBJS)\gizmoslib_treelistctrl.o: ../../src/gizmos/treelistctrl.cpp
241 $(CXX) -c -o $@ $(GIZMOSLIB_CXXFLAGS) $<
242
250700e4 243.PHONY: all clean