]> git.saurik.com Git - wxWidgets.git/blame - samples/widgets/makefile.gcc
size_t's --> int's
[wxWidgets.git] / samples / widgets / makefile.gcc
CommitLineData
3b20263d
VS
1# =========================================================================
2# This makefile was generated by
25bb1412 3# Bakefile 0.2.1 (http://bakefile.sourceforge.net)
3b20263d
VS
4# Do not modify, all changes will be overwritten!
5# =========================================================================
6
fd9f42b6 7include ../../build/msw/config.gcc
3b20263d
VS
8
9# -------------------------------------------------------------------------
10# Do not modify the rest of this file!
11# -------------------------------------------------------------------------
12
13### Variables: ###
14
0d90d6ea 15CPPDEPS = -MT$@ -MF$@.d -MD
25bb1412 16WX_RELEASE_NODOT = 28
25a73439
VS
17OBJS = \
18 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
b14abf14 19LIBDIRNAME = .\..\..\lib\gcc_$(LIBTYPE_SUFFIX)$(CFG)
75a0a7b7
VS
20SETUPHDIR = \
21 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
8c9f8f91
JS
22WIDGETS_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG_2) $(__THREADSFLAG) \
23 $(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
24 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
2113bc77 25 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \
3abcf424
RD
26 $(__GFXCTX_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\include -W -Wall -I. \
27 $(__DLLFLAG_p) -I.\..\..\samples -DNOPCH $(__RTTIFLAG_5) \
28 $(__EXCEPTIONSFLAG_6) -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
25a73439 29WIDGETS_OBJECTS = \
b2b98dfd 30 $(OBJS)\widgets_bmpcombobox.o \
25a73439 31 $(OBJS)\widgets_button.o \
8941fa88 32 $(OBJS)\widgets_checkbox.o \
b2b98dfd 33 $(OBJS)\widgets_clrpicker.o \
25a73439 34 $(OBJS)\widgets_combobox.o \
f2fdc4d5 35 $(OBJS)\widgets_datepick.o \
c4f6d998 36 $(OBJS)\widgets_dirctrl.o \
b2b98dfd
WS
37 $(OBJS)\widgets_dirpicker.o \
38 $(OBJS)\widgets_filepicker.o \
39 $(OBJS)\widgets_fontpicker.o \
25a73439 40 $(OBJS)\widgets_gauge.o \
f9300d42 41 $(OBJS)\widgets_hyperlnk.o \
25a73439
VS
42 $(OBJS)\widgets_listbox.o \
43 $(OBJS)\widgets_notebook.o \
53a0475d 44 $(OBJS)\widgets_odcombobox.o \
25a73439
VS
45 $(OBJS)\widgets_radiobox.o \
46 $(OBJS)\widgets_slider.o \
47 $(OBJS)\widgets_spinbtn.o \
48 $(OBJS)\widgets_static.o \
49 $(OBJS)\widgets_textctrl.o \
32816f9a 50 $(OBJS)\widgets_toggle.o \
25a73439 51 $(OBJS)\widgets_widgets.o \
f2fdc4d5 52 $(OBJS)\widgets_sample_rc.o
3b20263d
VS
53
54### Conditionally set variables: ###
55
250700e4
RD
56ifeq ($(GCC_VERSION),2.95)
57GCCFLAGS = -fvtable-thunks
58endif
3b20263d
VS
59ifeq ($(USE_GUI),0)
60PORTNAME = base
61endif
62ifeq ($(USE_GUI),1)
63PORTNAME = msw
64endif
65ifeq ($(BUILD),debug)
25a73439
VS
66ifeq ($(DEBUG_FLAG),default)
67WXDEBUGFLAG = d
68endif
69endif
70ifeq ($(DEBUG_FLAG),1)
3b20263d
VS
71WXDEBUGFLAG = d
72endif
3b20263d
VS
73ifeq ($(UNICODE),1)
74WXUNICODEFLAG = u
75endif
76ifeq ($(WXUNIV),1)
77WXUNIVNAME = univ
78endif
b17c1746
DE
79ifeq ($(SHARED),1)
80WXDLLFLAG = dll
25a73439 81endif
b14abf14
JS
82ifeq ($(SHARED),0)
83LIBTYPE_SUFFIX = lib
84endif
85ifeq ($(SHARED),1)
86LIBTYPE_SUFFIX = dll
87endif
dd65d8c8
RN
88ifeq ($(MONOLITHIC),0)
89EXTRALIBS_FOR_BASE =
90endif
91ifeq ($(MONOLITHIC),1)
92EXTRALIBS_FOR_BASE =
93endif
b17c1746
DE
94ifeq ($(BUILD),debug)
95__OPTIMIZEFLAG_2 = -O0
250700e4
RD
96endif
97ifeq ($(BUILD),release)
b17c1746 98__OPTIMIZEFLAG_2 = -O2
25a73439 99endif
8c9f8f91
JS
100ifeq ($(USE_RTTI),0)
101__RTTIFLAG_5 = -fno-rtti
25a73439 102endif
8c9f8f91
JS
103ifeq ($(USE_RTTI),1)
104__RTTIFLAG_5 =
25a73439 105endif
b17c1746 106ifeq ($(USE_EXCEPTIONS),0)
8c9f8f91 107__EXCEPTIONSFLAG_6 = -fno-exceptions
b17c1746
DE
108endif
109ifeq ($(USE_EXCEPTIONS),1)
8c9f8f91 110__EXCEPTIONSFLAG_6 =
b17c1746
DE
111endif
112ifeq ($(WXUNIV),1)
113__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
114endif
115ifeq ($(WXUNIV),1)
116__WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__
250700e4
RD
117endif
118ifeq ($(BUILD),debug)
25a73439
VS
119ifeq ($(DEBUG_FLAG),default)
120__DEBUG_DEFINE_p = -D__WXDEBUG__
121endif
122endif
123ifeq ($(DEBUG_FLAG),1)
3b20263d
VS
124__DEBUG_DEFINE_p = -D__WXDEBUG__
125endif
126ifeq ($(BUILD),debug)
25a73439
VS
127ifeq ($(DEBUG_FLAG),default)
128__DEBUG_DEFINE_p_1 = --define __WXDEBUG__
129endif
130endif
131ifeq ($(DEBUG_FLAG),1)
3b20263d
VS
132__DEBUG_DEFINE_p_1 = --define __WXDEBUG__
133endif
8c9f8f91
JS
134ifeq ($(USE_EXCEPTIONS),0)
135__EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
136endif
137ifeq ($(USE_EXCEPTIONS),0)
138__EXCEPTIONS_DEFINE_p_1 = --define wxNO_EXCEPTIONS
139endif
140ifeq ($(USE_RTTI),0)
141__RTTI_DEFINE_p = -DwxNO_RTTI
142endif
143ifeq ($(USE_RTTI),0)
144__RTTI_DEFINE_p_1 = --define wxNO_RTTI
145endif
146ifeq ($(USE_THREADS),0)
147__THREAD_DEFINE_p = -DwxNO_THREADS
148endif
149ifeq ($(USE_THREADS),0)
150__THREAD_DEFINE_p_1 = --define wxNO_THREADS
151endif
b17c1746
DE
152ifeq ($(UNICODE),1)
153__UNICODE_DEFINE_p = -D_UNICODE
154endif
155ifeq ($(UNICODE),1)
156__UNICODE_DEFINE_p_1 = --define _UNICODE
157endif
2113bc77
MW
158ifeq ($(MSLU),1)
159__MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
160endif
161ifeq ($(MSLU),1)
162__MSLU_DEFINE_p_1 = --define wxUSE_UNICODE_MSLU=1
163endif
3abcf424
RD
164ifeq ($(USE_GDIPLUS),1)
165__GFXCTX_DEFINE_p = -DwxUSE_GRAPHICS_CONTEXT=1
166endif
167ifeq ($(USE_GDIPLUS),1)
168__GFXCTX_DEFINE_p_1 = --define wxUSE_GRAPHICS_CONTEXT=1
169endif
3b20263d
VS
170ifeq ($(SHARED),1)
171__DLLFLAG_p = -DWXUSINGDLL
172endif
173ifeq ($(SHARED),1)
174__DLLFLAG_p_1 = --define WXUSINGDLL
175endif
b17c1746 176ifeq ($(MONOLITHIC),0)
137c8bde
WS
177__WXLIB_XML_p = \
178 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_xml
179endif
180ifeq ($(MONOLITHIC),0)
f2fdc4d5
WS
181__WXLIB_ADV_p = \
182 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_adv
183endif
184ifeq ($(MONOLITHIC),0)
185__WXLIB_HTML_p = \
186 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_html
187endif
188ifeq ($(MONOLITHIC),0)
b17c1746 189__WXLIB_CORE_p = \
c33fae85 190 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
b71531ad 191endif
b17c1746 192ifeq ($(MONOLITHIC),0)
c33fae85
RN
193__WXLIB_BASE_p = \
194 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
b71531ad 195endif
b17c1746
DE
196ifeq ($(MONOLITHIC),1)
197__WXLIB_MONO_p = \
c33fae85 198 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
b71531ad 199endif
b17c1746 200ifeq ($(USE_GUI),1)
9c2d002b 201__LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
b71531ad 202endif
25a73439 203ifeq ($(USE_GUI),1)
9c2d002b 204__LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
25a73439
VS
205endif
206ifeq ($(USE_GUI),1)
9c2d002b 207__LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
25a73439 208endif
b17c1746
DE
209ifeq ($(MSLU),1)
210__UNICOWS_LIB_p = -lunicows
250700e4 211endif
3abcf424
RD
212ifeq ($(USE_GDIPLUS),1)
213__GDIPLUS_LIB_p = -lgdiplus
214endif
b17c1746
DE
215ifeq ($(BUILD),debug)
216ifeq ($(DEBUG_INFO),default)
217__DEBUGINFO = -g
4e209a20 218endif
3b20263d 219endif
b17c1746
DE
220ifeq ($(BUILD),release)
221ifeq ($(DEBUG_INFO),default)
222__DEBUGINFO =
3b20263d 223endif
3b20263d 224endif
b17c1746
DE
225ifeq ($(DEBUG_INFO),0)
226__DEBUGINFO =
3b20263d 227endif
b17c1746
DE
228ifeq ($(DEBUG_INFO),1)
229__DEBUGINFO = -g
3b20263d 230endif
8c9f8f91
JS
231ifeq ($(USE_THREADS),0)
232__THREADSFLAG =
233endif
234ifeq ($(USE_THREADS),1)
235__THREADSFLAG = -mthreads
236endif
3b20263d
VS
237
238
239all: $(OBJS)
240$(OBJS):
241 -if not exist $(OBJS) mkdir $(OBJS)
242
243### Targets: ###
244
245all: $(OBJS)\widgets.exe
246
b17c1746
DE
247clean:
248 -if exist $(OBJS)\*.o del $(OBJS)\*.o
0d90d6ea 249 -if exist $(OBJS)\*.d del $(OBJS)\*.d
b17c1746
DE
250 -if exist $(OBJS)\widgets.exe del $(OBJS)\widgets.exe
251
f2fdc4d5 252$(OBJS)\widgets.exe: $(WIDGETS_OBJECTS) $(OBJS)\widgets_sample_rc.o
3abcf424 253 $(CXX) -o $@ $(WIDGETS_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) -Wl,--subsystem,windows -mwindows $(__WXLIB_XML_p) $(__WXLIB_ADV_p) $(__WXLIB_HTML_p) $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) $(__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) $(__GDIPLUS_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lodbc32
b17c1746 254
b2b98dfd
WS
255$(OBJS)\widgets_bmpcombobox.o: ./bmpcombobox.cpp
256 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
257
1c3a6972 258$(OBJS)\widgets_button.o: ./button.cpp
0d90d6ea 259 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
3b20263d 260
8941fa88 261$(OBJS)\widgets_checkbox.o: ./checkbox.cpp
0d90d6ea 262 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
8941fa88 263
b2b98dfd 264$(OBJS)\widgets_clrpicker.o: ./clrpicker.cpp
0d90d6ea 265 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
3b20263d 266
b2b98dfd 267$(OBJS)\widgets_combobox.o: ./combobox.cpp
f2fdc4d5
WS
268 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
269
b2b98dfd 270$(OBJS)\widgets_datepick.o: ./datepick.cpp
0d90d6ea 271 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
3b20263d 272
c4f6d998
WS
273$(OBJS)\widgets_dirctrl.o: ./dirctrl.cpp
274 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
275
b2b98dfd 276$(OBJS)\widgets_dirpicker.o: ./dirpicker.cpp
f9300d42
WS
277 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
278
b2b98dfd 279$(OBJS)\widgets_filepicker.o: ./filepicker.cpp
0d90d6ea 280 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
3b20263d 281
b2b98dfd 282$(OBJS)\widgets_fontpicker.o: ./fontpicker.cpp
0d90d6ea 283 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
3b20263d 284
b2b98dfd 285$(OBJS)\widgets_gauge.o: ./gauge.cpp
137c8bde
WS
286 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
287
b2b98dfd 288$(OBJS)\widgets_hyperlnk.o: ./hyperlnk.cpp
137c8bde
WS
289 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
290
b2b98dfd 291$(OBJS)\widgets_listbox.o: ./listbox.cpp
137c8bde
WS
292 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
293
b2b98dfd 294$(OBJS)\widgets_notebook.o: ./notebook.cpp
ec376c8f
VZ
295 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
296
53a0475d
WS
297$(OBJS)\widgets_odcombobox.o: ./odcombobox.cpp
298 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
299
1c3a6972 300$(OBJS)\widgets_radiobox.o: ./radiobox.cpp
0d90d6ea 301 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
3b20263d 302
1c3a6972 303$(OBJS)\widgets_slider.o: ./slider.cpp
0d90d6ea 304 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
3b20263d 305
1c3a6972 306$(OBJS)\widgets_spinbtn.o: ./spinbtn.cpp
0d90d6ea 307 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
3b20263d 308
1c3a6972 309$(OBJS)\widgets_static.o: ./static.cpp
0d90d6ea 310 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
3b20263d 311
1c3a6972 312$(OBJS)\widgets_textctrl.o: ./textctrl.cpp
0d90d6ea 313 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
3b20263d 314
32816f9a
WS
315$(OBJS)\widgets_toggle.o: ./toggle.cpp
316 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
317
1c3a6972 318$(OBJS)\widgets_widgets.o: ./widgets.cpp
0d90d6ea 319 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
3b20263d 320
f2fdc4d5 321$(OBJS)\widgets_sample_rc.o: ./../sample.rc
3abcf424 322 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) $(__MSLU_DEFINE_p_1) $(__GFXCTX_DEFINE_p_1) --include-dir $(SETUPHDIR) --include-dir ./../../include --include-dir . $(__DLLFLAG_p_1) --include-dir ./../../samples --define NOPCH
3b20263d 323
250700e4 324.PHONY: all clean
b14abf14 325
8c9f8f91 326
0d90d6ea
JS
327# Dependencies tracking:
328-include $(OBJS)/*.d