]> git.saurik.com Git - wxWidgets.git/blame - samples/widgets/makefile.gcc
Map between int page ids and page pointers using hashes so that it works when
[wxWidgets.git] / samples / widgets / makefile.gcc
CommitLineData
3b20263d
VS
1# =========================================================================
2# This makefile was generated by
77a7dfc1 3# Bakefile 0.2.0 (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
4cbcfb73 16WX_RELEASE_NODOT = 27
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) \
77a7dfc1 26 -I$(SETUPHDIR) -I.\..\..\include -W -Wall -I. $(__DLLFLAG_p) -I.\..\..\samples \
2113bc77
MW
27 -DNOPCH $(__RTTIFLAG_5) $(__EXCEPTIONSFLAG_6) -Wno-ctor-dtor-privacy \
28 $(CPPFLAGS) $(CXXFLAGS)
25a73439
VS
29WIDGETS_OBJECTS = \
30 $(OBJS)\widgets_button.o \
8941fa88 31 $(OBJS)\widgets_checkbox.o \
25a73439 32 $(OBJS)\widgets_combobox.o \
f2fdc4d5 33 $(OBJS)\widgets_datepick.o \
25a73439
VS
34 $(OBJS)\widgets_gauge.o \
35 $(OBJS)\widgets_listbox.o \
36 $(OBJS)\widgets_notebook.o \
37 $(OBJS)\widgets_radiobox.o \
38 $(OBJS)\widgets_slider.o \
39 $(OBJS)\widgets_spinbtn.o \
40 $(OBJS)\widgets_static.o \
41 $(OBJS)\widgets_textctrl.o \
42 $(OBJS)\widgets_widgets.o \
f2fdc4d5 43 $(OBJS)\widgets_sample_rc.o
3b20263d
VS
44
45### Conditionally set variables: ###
46
250700e4
RD
47ifeq ($(GCC_VERSION),2.95)
48GCCFLAGS = -fvtable-thunks
49endif
3b20263d
VS
50ifeq ($(USE_GUI),0)
51PORTNAME = base
52endif
53ifeq ($(USE_GUI),1)
54PORTNAME = msw
55endif
56ifeq ($(BUILD),debug)
25a73439
VS
57ifeq ($(DEBUG_FLAG),default)
58WXDEBUGFLAG = d
59endif
60endif
61ifeq ($(DEBUG_FLAG),1)
3b20263d
VS
62WXDEBUGFLAG = d
63endif
3b20263d
VS
64ifeq ($(UNICODE),1)
65WXUNICODEFLAG = u
66endif
67ifeq ($(WXUNIV),1)
68WXUNIVNAME = univ
69endif
b17c1746
DE
70ifeq ($(SHARED),1)
71WXDLLFLAG = dll
25a73439 72endif
b14abf14
JS
73ifeq ($(SHARED),0)
74LIBTYPE_SUFFIX = lib
75endif
76ifeq ($(SHARED),1)
77LIBTYPE_SUFFIX = dll
78endif
dd65d8c8
RN
79ifeq ($(MONOLITHIC),0)
80EXTRALIBS_FOR_BASE =
81endif
82ifeq ($(MONOLITHIC),1)
83EXTRALIBS_FOR_BASE =
84endif
b17c1746
DE
85ifeq ($(BUILD),debug)
86__OPTIMIZEFLAG_2 = -O0
250700e4
RD
87endif
88ifeq ($(BUILD),release)
b17c1746 89__OPTIMIZEFLAG_2 = -O2
25a73439 90endif
8c9f8f91
JS
91ifeq ($(USE_RTTI),0)
92__RTTIFLAG_5 = -fno-rtti
25a73439 93endif
8c9f8f91
JS
94ifeq ($(USE_RTTI),1)
95__RTTIFLAG_5 =
25a73439 96endif
b17c1746 97ifeq ($(USE_EXCEPTIONS),0)
8c9f8f91 98__EXCEPTIONSFLAG_6 = -fno-exceptions
b17c1746
DE
99endif
100ifeq ($(USE_EXCEPTIONS),1)
8c9f8f91 101__EXCEPTIONSFLAG_6 =
b17c1746
DE
102endif
103ifeq ($(WXUNIV),1)
104__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
105endif
106ifeq ($(WXUNIV),1)
107__WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__
250700e4
RD
108endif
109ifeq ($(BUILD),debug)
25a73439
VS
110ifeq ($(DEBUG_FLAG),default)
111__DEBUG_DEFINE_p = -D__WXDEBUG__
112endif
113endif
114ifeq ($(DEBUG_FLAG),1)
3b20263d
VS
115__DEBUG_DEFINE_p = -D__WXDEBUG__
116endif
117ifeq ($(BUILD),debug)
25a73439
VS
118ifeq ($(DEBUG_FLAG),default)
119__DEBUG_DEFINE_p_1 = --define __WXDEBUG__
120endif
121endif
122ifeq ($(DEBUG_FLAG),1)
3b20263d
VS
123__DEBUG_DEFINE_p_1 = --define __WXDEBUG__
124endif
8c9f8f91
JS
125ifeq ($(USE_EXCEPTIONS),0)
126__EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
127endif
128ifeq ($(USE_EXCEPTIONS),0)
129__EXCEPTIONS_DEFINE_p_1 = --define wxNO_EXCEPTIONS
130endif
131ifeq ($(USE_RTTI),0)
132__RTTI_DEFINE_p = -DwxNO_RTTI
133endif
134ifeq ($(USE_RTTI),0)
135__RTTI_DEFINE_p_1 = --define wxNO_RTTI
136endif
137ifeq ($(USE_THREADS),0)
138__THREAD_DEFINE_p = -DwxNO_THREADS
139endif
140ifeq ($(USE_THREADS),0)
141__THREAD_DEFINE_p_1 = --define wxNO_THREADS
142endif
b17c1746
DE
143ifeq ($(UNICODE),1)
144__UNICODE_DEFINE_p = -D_UNICODE
145endif
146ifeq ($(UNICODE),1)
147__UNICODE_DEFINE_p_1 = --define _UNICODE
148endif
2113bc77
MW
149ifeq ($(MSLU),1)
150__MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
151endif
152ifeq ($(MSLU),1)
153__MSLU_DEFINE_p_1 = --define wxUSE_UNICODE_MSLU=1
154endif
3b20263d
VS
155ifeq ($(SHARED),1)
156__DLLFLAG_p = -DWXUSINGDLL
157endif
158ifeq ($(SHARED),1)
159__DLLFLAG_p_1 = --define WXUSINGDLL
160endif
b17c1746 161ifeq ($(MONOLITHIC),0)
f2fdc4d5
WS
162__WXLIB_ADV_p = \
163 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_adv
164endif
165ifeq ($(MONOLITHIC),0)
166__WXLIB_HTML_p = \
167 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_html
168endif
169ifeq ($(MONOLITHIC),0)
b17c1746 170__WXLIB_CORE_p = \
c33fae85 171 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
b71531ad 172endif
b17c1746 173ifeq ($(MONOLITHIC),0)
c33fae85
RN
174__WXLIB_BASE_p = \
175 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
b71531ad 176endif
b17c1746
DE
177ifeq ($(MONOLITHIC),1)
178__WXLIB_MONO_p = \
c33fae85 179 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
b71531ad 180endif
b17c1746 181ifeq ($(USE_GUI),1)
9c2d002b 182__LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
b71531ad 183endif
25a73439 184ifeq ($(USE_GUI),1)
9c2d002b 185__LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
25a73439
VS
186endif
187ifeq ($(USE_GUI),1)
9c2d002b 188__LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
25a73439 189endif
b17c1746
DE
190ifeq ($(MSLU),1)
191__UNICOWS_LIB_p = -lunicows
250700e4 192endif
b17c1746
DE
193ifeq ($(BUILD),debug)
194ifeq ($(DEBUG_INFO),default)
195__DEBUGINFO = -g
4e209a20 196endif
3b20263d 197endif
b17c1746
DE
198ifeq ($(BUILD),release)
199ifeq ($(DEBUG_INFO),default)
200__DEBUGINFO =
3b20263d 201endif
3b20263d 202endif
b17c1746
DE
203ifeq ($(DEBUG_INFO),0)
204__DEBUGINFO =
3b20263d 205endif
b17c1746
DE
206ifeq ($(DEBUG_INFO),1)
207__DEBUGINFO = -g
3b20263d 208endif
8c9f8f91
JS
209ifeq ($(USE_THREADS),0)
210__THREADSFLAG =
211endif
212ifeq ($(USE_THREADS),1)
213__THREADSFLAG = -mthreads
214endif
3b20263d
VS
215
216
217all: $(OBJS)
218$(OBJS):
219 -if not exist $(OBJS) mkdir $(OBJS)
220
221### Targets: ###
222
223all: $(OBJS)\widgets.exe
224
b17c1746
DE
225clean:
226 -if exist $(OBJS)\*.o del $(OBJS)\*.o
0d90d6ea 227 -if exist $(OBJS)\*.d del $(OBJS)\*.d
b17c1746
DE
228 -if exist $(OBJS)\widgets.exe del $(OBJS)\widgets.exe
229
f2fdc4d5
WS
230$(OBJS)\widgets.exe: $(WIDGETS_OBJECTS) $(OBJS)\widgets_sample_rc.o
231 $(CXX) -o $@ $(WIDGETS_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) -Wl,--subsystem,windows -mwindows $(__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) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lodbc32
b17c1746 232
1c3a6972 233$(OBJS)\widgets_button.o: ./button.cpp
0d90d6ea 234 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
3b20263d 235
8941fa88 236$(OBJS)\widgets_checkbox.o: ./checkbox.cpp
0d90d6ea 237 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
8941fa88 238
1c3a6972 239$(OBJS)\widgets_combobox.o: ./combobox.cpp
0d90d6ea 240 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
3b20263d 241
f2fdc4d5
WS
242$(OBJS)\widgets_datepick.o: ./datepick.cpp
243 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
244
1c3a6972 245$(OBJS)\widgets_gauge.o: ./gauge.cpp
0d90d6ea 246 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
3b20263d 247
1c3a6972 248$(OBJS)\widgets_listbox.o: ./listbox.cpp
0d90d6ea 249 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
3b20263d 250
1c3a6972 251$(OBJS)\widgets_notebook.o: ./notebook.cpp
0d90d6ea 252 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
3b20263d 253
1c3a6972 254$(OBJS)\widgets_radiobox.o: ./radiobox.cpp
0d90d6ea 255 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
3b20263d 256
1c3a6972 257$(OBJS)\widgets_slider.o: ./slider.cpp
0d90d6ea 258 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
3b20263d 259
1c3a6972 260$(OBJS)\widgets_spinbtn.o: ./spinbtn.cpp
0d90d6ea 261 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
3b20263d 262
1c3a6972 263$(OBJS)\widgets_static.o: ./static.cpp
0d90d6ea 264 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
3b20263d 265
1c3a6972 266$(OBJS)\widgets_textctrl.o: ./textctrl.cpp
0d90d6ea 267 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
3b20263d 268
1c3a6972 269$(OBJS)\widgets_widgets.o: ./widgets.cpp
0d90d6ea 270 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
3b20263d 271
f2fdc4d5 272$(OBJS)\widgets_sample_rc.o: ./../sample.rc
77a7dfc1 273 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) --include-dir $(SETUPHDIR) --include-dir ./../../include --include-dir . $(__DLLFLAG_p_1) --include-dir ./../../samples --define NOPCH
3b20263d 274
250700e4 275.PHONY: all clean
b14abf14 276
8c9f8f91 277
0d90d6ea
JS
278# Dependencies tracking:
279-include $(OBJS)/*.d