]> git.saurik.com Git - wxWidgets.git/blame - samples/widgets/makefile.gcc
Open and Close clipboard properly
[wxWidgets.git] / samples / widgets / makefile.gcc
CommitLineData
3b20263d
VS
1# =========================================================================
2# This makefile was generated by
6e0fbb3d 3# Bakefile 0.2.3 (http://www.bakefile.org)
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
7379e476
VZ
157ifeq ($(UNICODE),0)
158__UNICODE_DEFINE_p = -DwxUSE_UNICODE=0
159endif
b17c1746
DE
160ifeq ($(UNICODE),1)
161__UNICODE_DEFINE_p = -D_UNICODE
162endif
7379e476
VZ
163ifeq ($(UNICODE),0)
164__UNICODE_DEFINE_p_1 = --define wxUSE_UNICODE=0
165endif
b17c1746
DE
166ifeq ($(UNICODE),1)
167__UNICODE_DEFINE_p_1 = --define _UNICODE
168endif
2113bc77
MW
169ifeq ($(MSLU),1)
170__MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
171endif
172ifeq ($(MSLU),1)
173__MSLU_DEFINE_p_1 = --define wxUSE_UNICODE_MSLU=1
174endif
3abcf424
RD
175ifeq ($(USE_GDIPLUS),1)
176__GFXCTX_DEFINE_p = -DwxUSE_GRAPHICS_CONTEXT=1
177endif
178ifeq ($(USE_GDIPLUS),1)
179__GFXCTX_DEFINE_p_1 = --define wxUSE_GRAPHICS_CONTEXT=1
180endif
3b20263d
VS
181ifeq ($(SHARED),1)
182__DLLFLAG_p = -DWXUSINGDLL
183endif
184ifeq ($(SHARED),1)
185__DLLFLAG_p_1 = --define WXUSINGDLL
186endif
b17c1746 187ifeq ($(MONOLITHIC),0)
137c8bde
WS
188__WXLIB_XML_p = \
189 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_xml
190endif
191ifeq ($(MONOLITHIC),0)
f2fdc4d5
WS
192__WXLIB_ADV_p = \
193 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_adv
194endif
195ifeq ($(MONOLITHIC),0)
196__WXLIB_HTML_p = \
197 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_html
198endif
199ifeq ($(MONOLITHIC),0)
b17c1746 200__WXLIB_CORE_p = \
c33fae85 201 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
b71531ad 202endif
b17c1746 203ifeq ($(MONOLITHIC),0)
c33fae85
RN
204__WXLIB_BASE_p = \
205 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
b71531ad 206endif
b17c1746
DE
207ifeq ($(MONOLITHIC),1)
208__WXLIB_MONO_p = \
c33fae85 209 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
b71531ad 210endif
b17c1746 211ifeq ($(USE_GUI),1)
9c2d002b 212__LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
b71531ad 213endif
25a73439 214ifeq ($(USE_GUI),1)
9c2d002b 215__LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
25a73439
VS
216endif
217ifeq ($(USE_GUI),1)
9c2d002b 218__LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
25a73439 219endif
b17c1746
DE
220ifeq ($(MSLU),1)
221__UNICOWS_LIB_p = -lunicows
250700e4 222endif
3abcf424
RD
223ifeq ($(USE_GDIPLUS),1)
224__GDIPLUS_LIB_p = -lgdiplus
225endif
b17c1746
DE
226ifeq ($(BUILD),debug)
227ifeq ($(DEBUG_INFO),default)
228__DEBUGINFO = -g
4e209a20 229endif
3b20263d 230endif
b17c1746
DE
231ifeq ($(BUILD),release)
232ifeq ($(DEBUG_INFO),default)
233__DEBUGINFO =
3b20263d 234endif
3b20263d 235endif
b17c1746
DE
236ifeq ($(DEBUG_INFO),0)
237__DEBUGINFO =
3b20263d 238endif
b17c1746
DE
239ifeq ($(DEBUG_INFO),1)
240__DEBUGINFO = -g
3b20263d 241endif
8c9f8f91
JS
242ifeq ($(USE_THREADS),0)
243__THREADSFLAG =
244endif
245ifeq ($(USE_THREADS),1)
246__THREADSFLAG = -mthreads
247endif
3b20263d
VS
248
249
250all: $(OBJS)
251$(OBJS):
252 -if not exist $(OBJS) mkdir $(OBJS)
253
254### Targets: ###
255
256all: $(OBJS)\widgets.exe
257
b17c1746
DE
258clean:
259 -if exist $(OBJS)\*.o del $(OBJS)\*.o
0d90d6ea 260 -if exist $(OBJS)\*.d del $(OBJS)\*.d
b17c1746
DE
261 -if exist $(OBJS)\widgets.exe del $(OBJS)\widgets.exe
262
f2fdc4d5 263$(OBJS)\widgets.exe: $(WIDGETS_OBJECTS) $(OBJS)\widgets_sample_rc.o
7379e476 264 $(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
b17c1746 265
b2b98dfd
WS
266$(OBJS)\widgets_bmpcombobox.o: ./bmpcombobox.cpp
267 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
268
1c3a6972 269$(OBJS)\widgets_button.o: ./button.cpp
0d90d6ea 270 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
3b20263d 271
8941fa88 272$(OBJS)\widgets_checkbox.o: ./checkbox.cpp
0d90d6ea 273 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
8941fa88 274
a236aa20
VZ
275$(OBJS)\widgets_choice.o: ./choice.cpp
276 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
277
b2b98dfd 278$(OBJS)\widgets_clrpicker.o: ./clrpicker.cpp
0d90d6ea 279 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
3b20263d 280
b2b98dfd 281$(OBJS)\widgets_combobox.o: ./combobox.cpp
f2fdc4d5
WS
282 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
283
b2b98dfd 284$(OBJS)\widgets_datepick.o: ./datepick.cpp
0d90d6ea 285 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
3b20263d 286
c4f6d998
WS
287$(OBJS)\widgets_dirctrl.o: ./dirctrl.cpp
288 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
289
b2b98dfd 290$(OBJS)\widgets_dirpicker.o: ./dirpicker.cpp
f9300d42 291 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
0cf3e587
VZ
292
293$(OBJS)\widgets_filectrl.o: ./filectrl.cpp
294 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
f9300d42 295
b2b98dfd 296$(OBJS)\widgets_filepicker.o: ./filepicker.cpp
0d90d6ea 297 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
3b20263d 298
b2b98dfd 299$(OBJS)\widgets_fontpicker.o: ./fontpicker.cpp
0d90d6ea 300 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
3b20263d 301
b2b98dfd 302$(OBJS)\widgets_gauge.o: ./gauge.cpp
137c8bde
WS
303 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
304
b2b98dfd 305$(OBJS)\widgets_hyperlnk.o: ./hyperlnk.cpp
137c8bde
WS
306 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
307
a236aa20
VZ
308$(OBJS)\widgets_itemcontainer.o: ./itemcontainer.cpp
309 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
310
b2b98dfd 311$(OBJS)\widgets_listbox.o: ./listbox.cpp
137c8bde
WS
312 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
313
b2b98dfd 314$(OBJS)\widgets_notebook.o: ./notebook.cpp
ec376c8f
VZ
315 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
316
53a0475d
WS
317$(OBJS)\widgets_odcombobox.o: ./odcombobox.cpp
318 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
319
1c3a6972 320$(OBJS)\widgets_radiobox.o: ./radiobox.cpp
0d90d6ea 321 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
3b20263d 322
3f7f284d
RD
323$(OBJS)\widgets_searchctrl.o: ./searchctrl.cpp
324 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
325
1c3a6972 326$(OBJS)\widgets_slider.o: ./slider.cpp
0d90d6ea 327 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
3b20263d 328
1c3a6972 329$(OBJS)\widgets_spinbtn.o: ./spinbtn.cpp
0d90d6ea 330 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
3b20263d 331
1c3a6972 332$(OBJS)\widgets_static.o: ./static.cpp
0d90d6ea 333 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
3b20263d 334
1c3a6972 335$(OBJS)\widgets_textctrl.o: ./textctrl.cpp
0d90d6ea 336 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
3b20263d 337
32816f9a
WS
338$(OBJS)\widgets_toggle.o: ./toggle.cpp
339 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
340
1c3a6972 341$(OBJS)\widgets_widgets.o: ./widgets.cpp
0d90d6ea 342 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
3b20263d 343
f2fdc4d5 344$(OBJS)\widgets_sample_rc.o: ./../sample.rc
a236aa20 345 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 346
250700e4 347.PHONY: all clean
b14abf14 348
8c9f8f91 349
6e0fbb3d
VS
350SHELL := $(COMSPEC)
351
0d90d6ea
JS
352# Dependencies tracking:
353-include $(OBJS)/*.d