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