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