1# =========================================================================
2#     This makefile was generated by
3#     Bakefile 0.2.9 (http://www.bakefile.org)
4#     Do not modify, all changes will be overwritten!
5# =========================================================================
6
7
8@MAKE_SET@
9
10prefix = @prefix@
11exec_prefix = @exec_prefix@
12datarootdir = @datarootdir@
13INSTALL = @INSTALL@
14EXEEXT = @EXEEXT@
15WINDRES = @WINDRES@
16REZ = @REZ@
17SETFILE = @SETFILE@
18NM = @NM@
19BK_DEPS = @BK_DEPS@
20srcdir = @srcdir@
21top_srcdir = @top_srcdir@
22LIBS = @LIBS@
23LDFLAGS_GUI = @LDFLAGS_GUI@
24CXX = @CXX@
25CXXFLAGS = @CXXFLAGS@
26CPPFLAGS = @CPPFLAGS@
27LDFLAGS = @LDFLAGS@
28WX_LIB_FLAVOUR = @WX_LIB_FLAVOUR@
29TOOLKIT = @TOOLKIT@
30TOOLKIT_LOWERCASE = @TOOLKIT_LOWERCASE@
31TOOLKIT_VERSION = @TOOLKIT_VERSION@
32TOOLCHAIN_FULLNAME = @TOOLCHAIN_FULLNAME@
33EXTRALIBS = @EXTRALIBS@
34EXTRALIBS_XML = @EXTRALIBS_XML@
35EXTRALIBS_HTML = @EXTRALIBS_HTML@
36EXTRALIBS_GUI = @EXTRALIBS_GUI@
37EXTRALIBS_SDL = @EXTRALIBS_SDL@
38HOST_SUFFIX = @HOST_SUFFIX@
39SAMPLES_RPATH_FLAG = @SAMPLES_RPATH_FLAG@
40SAMPLES_RPATH_POSTLINK = @SAMPLES_RPATH_POSTLINK@
41wx_top_builddir = @wx_top_builddir@
42
43### Variables: ###
44
45DESTDIR =
46WX_RELEASE = 2.8
47WX_VERSION = $(WX_RELEASE).12
48LIBDIRNAME = $(wx_top_builddir)/lib
49WIDGETS_CXXFLAGS = -D__WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p) \
50	$(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) \
51	-I$(srcdir) $(__DLLFLAG_p) -I$(srcdir)/../../samples $(CPPFLAGS) $(CXXFLAGS)
52WIDGETS_OBJECTS =  \
53	$(__widgets_os2_lib_res) \
54	widgets_bmpcombobox.o \
55	widgets_button.o \
56	widgets_checkbox.o \
57	widgets_clrpicker.o \
58	widgets_combobox.o \
59	widgets_datepick.o \
60	widgets_dirctrl.o \
61	widgets_dirpicker.o \
62	widgets_filepicker.o \
63	widgets_fontpicker.o \
64	widgets_gauge.o \
65	widgets_hyperlnk.o \
66	widgets_listbox.o \
67	widgets_notebook.o \
68	widgets_odcombobox.o \
69	widgets_radiobox.o \
70	widgets_searchctrl.o \
71	widgets_slider.o \
72	widgets_spinbtn.o \
73	widgets_static.o \
74	widgets_textctrl.o \
75	widgets_toggle.o \
76	widgets_widgets.o \
77	$(__widgets___win32rc)
78
79### Conditionally set variables: ###
80
81@COND_DEPS_TRACKING_0@CXXC = $(CXX)
82@COND_DEPS_TRACKING_1@CXXC = $(BK_DEPS) $(CXX)
83@COND_USE_PLUGINS_0@PLUGIN_ADV_EXTRALIBS = $(EXTRALIBS_SDL)
84@COND_USE_GUI_0@PORTNAME = base
85@COND_USE_GUI_1@PORTNAME = $(TOOLKIT_LOWERCASE)$(TOOLKIT_VERSION)
86@COND_TOOLKIT_MAC@WXBASEPORT = _carbon
87@COND_BUILD_debug_DEBUG_FLAG_default@WXDEBUGFLAG = d
88@COND_DEBUG_FLAG_1@WXDEBUGFLAG = d
89@COND_UNICODE_1@WXUNICODEFLAG = u
90@COND_WXUNIV_1@WXUNIVNAME = univ
91@COND_MONOLITHIC_0@EXTRALIBS_FOR_BASE = $(EXTRALIBS)
92@COND_MONOLITHIC_1@EXTRALIBS_FOR_BASE = $(EXTRALIBS) $(EXTRALIBS_GUI)
93@COND_MONOLITHIC_0@EXTRALIBS_FOR_GUI = $(EXTRALIBS_GUI)
94@COND_MONOLITHIC_1@EXTRALIBS_FOR_GUI =
95@COND_PLATFORM_MAC_0@__widgets___mac_setfilecmd = @true
96@COND_PLATFORM_MAC_1@__widgets___mac_setfilecmd = \
97@COND_PLATFORM_MAC_1@	$(SETFILE) -a C widgets$(EXEEXT)
98@COND_PLATFORM_MAC_1@__widgets___mac_rezcmd = $(__MACOSX_RESOURCES_p_1)
99@COND_WXUNIV_1@__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
100@COND_WXUNIV_1@__WXUNIV_DEFINE_p_1 = -d __WXUNIVERSAL__
101@COND_WXUNIV_1@__WXUNIV_DEFINE_p_2 = --define __WXUNIVERSAL__
102@COND_USE_EXCEPTIONS_0@__EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
103@COND_USE_EXCEPTIONS_0@__EXCEPTIONS_DEFINE_p_1 = -d wxNO_EXCEPTIONS
104@COND_USE_EXCEPTIONS_0@__EXCEPTIONS_DEFINE_p_2 = --define wxNO_EXCEPTIONS
105@COND_USE_RTTI_0@__RTTI_DEFINE_p = -DwxNO_RTTI
106@COND_USE_RTTI_0@__RTTI_DEFINE_p_1 = -d wxNO_RTTI
107@COND_USE_RTTI_0@__RTTI_DEFINE_p_2 = --define wxNO_RTTI
108@COND_USE_THREADS_0@__THREAD_DEFINE_p = -DwxNO_THREADS
109@COND_USE_THREADS_0@__THREAD_DEFINE_p_1 = -d wxNO_THREADS
110@COND_USE_THREADS_0@__THREAD_DEFINE_p_2 = --define wxNO_THREADS
111@COND_SHARED_1@__DLLFLAG_p = -DWXUSINGDLL
112@COND_SHARED_1@__DLLFLAG_p_1 = -d WXUSINGDLL
113@COND_SHARED_1@__DLLFLAG_p_2 = --define WXUSINGDLL
114COND_PLATFORM_OS2_1___widgets___os2_emxbindcmd = $(NM) widgets$(EXEEXT) | if \
115	grep -q pmwin.763 ; then emxbind -ep widgets$(EXEEXT) ; fi
116@COND_PLATFORM_OS2_1@__widgets___os2_emxbindcmd = $(COND_PLATFORM_OS2_1___widgets___os2_emxbindcmd)
117@COND_TOOLKIT_MSW@__RCDEFDIR_p = -i \
118@COND_TOOLKIT_MSW@	$(LIBDIRNAME)/wx/include/$(TOOLCHAIN_FULLNAME)
119@COND_TOOLKIT_MSW@__RCDEFDIR_p_1 = --include-dir \
120@COND_TOOLKIT_MSW@	$(LIBDIRNAME)/wx/include/$(TOOLCHAIN_FULLNAME)
121@COND_PLATFORM_OS2_1@__widgets_os2_lib_res = \
122@COND_PLATFORM_OS2_1@	$(top_srcdir)/include/wx/os2/wx.res
123@COND_PLATFORM_MACOSX_1@__widgets_app_Contents_PkgInfo___depname \
124@COND_PLATFORM_MACOSX_1@	= widgets.app/Contents/PkgInfo
125@COND_PLATFORM_MACOSX_1@__widgets_bundle___depname = widgets_bundle
126@COND_TOOLKIT_COCOA@____widgets_BUNDLE_TGT_REF_DEP = \
127@COND_TOOLKIT_COCOA@	$(__widgets_app_Contents_PkgInfo___depname)
128@COND_TOOLKIT_MAC@____widgets_BUNDLE_TGT_REF_DEP = \
129@COND_TOOLKIT_MAC@	$(__widgets_app_Contents_PkgInfo___depname)
130COND_MONOLITHIC_0___WXLIB_XML_p = \
131	-lwx_base$(WXBASEPORT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_xml-$(WX_RELEASE)$(HOST_SUFFIX)
132@COND_MONOLITHIC_0@__WXLIB_XML_p = $(COND_MONOLITHIC_0___WXLIB_XML_p)
133COND_MONOLITHIC_0___WXLIB_ADV_p = \
134	-lwx_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_adv-$(WX_RELEASE)$(HOST_SUFFIX)
135@COND_MONOLITHIC_0@__WXLIB_ADV_p = $(COND_MONOLITHIC_0___WXLIB_ADV_p)
136COND_MONOLITHIC_0___WXLIB_HTML_p = \
137	-lwx_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_html-$(WX_RELEASE)$(HOST_SUFFIX)
138@COND_MONOLITHIC_0@__WXLIB_HTML_p = $(COND_MONOLITHIC_0___WXLIB_HTML_p)
139COND_MONOLITHIC_0___WXLIB_CORE_p = \
140	-lwx_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core-$(WX_RELEASE)$(HOST_SUFFIX)
141@COND_MONOLITHIC_0@__WXLIB_CORE_p = $(COND_MONOLITHIC_0___WXLIB_CORE_p)
142COND_MONOLITHIC_0___WXLIB_BASE_p = \
143	-lwx_base$(WXBASEPORT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX)
144@COND_MONOLITHIC_0@__WXLIB_BASE_p = $(COND_MONOLITHIC_0___WXLIB_BASE_p)
145@COND_PLATFORM_WIN32_1@__widgets___win32rc = widgets_sample_rc.o
146COND_MONOLITHIC_1___WXLIB_MONO_p = \
147	-lwx_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX)
148@COND_MONOLITHIC_1@__WXLIB_MONO_p = $(COND_MONOLITHIC_1___WXLIB_MONO_p)
149@COND_USE_GUI_1_wxUSE_LIBTIFF_builtin@__LIB_TIFF_p \
150@COND_USE_GUI_1_wxUSE_LIBTIFF_builtin@	= \
151@COND_USE_GUI_1_wxUSE_LIBTIFF_builtin@	-lwxtiff$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX)
152@COND_USE_GUI_1_wxUSE_LIBJPEG_builtin@__LIB_JPEG_p \
153@COND_USE_GUI_1_wxUSE_LIBJPEG_builtin@	= \
154@COND_USE_GUI_1_wxUSE_LIBJPEG_builtin@	-lwxjpeg$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX)
155@COND_USE_GUI_1_wxUSE_LIBPNG_builtin@__LIB_PNG_p \
156@COND_USE_GUI_1_wxUSE_LIBPNG_builtin@	= \
157@COND_USE_GUI_1_wxUSE_LIBPNG_builtin@	-lwxpng$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX)
158@COND_wxUSE_ZLIB_builtin@__LIB_ZLIB_p = \
159@COND_wxUSE_ZLIB_builtin@	-lwxzlib$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX)
160@COND_wxUSE_ODBC_builtin@__LIB_ODBC_p = \
161@COND_wxUSE_ODBC_builtin@	-lwxodbc$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX)
162COND_wxUSE_REGEX_builtin___LIB_REGEX_p = \
163	-lwxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX)
164@COND_wxUSE_REGEX_builtin@__LIB_REGEX_p = $(COND_wxUSE_REGEX_builtin___LIB_REGEX_p)
165@COND_wxUSE_EXPAT_builtin@__LIB_EXPAT_p = \
166@COND_wxUSE_EXPAT_builtin@	-lwxexpat$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX)
167COND_TOOLKIT_MAC___MACOSX_RESOURCES_p_1 = $(REZ) -d __DARWIN__ -t APPL -d \
168	__WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p_1) $(__EXCEPTIONS_DEFINE_p_1) \
169	$(__RTTI_DEFINE_p_1) $(__THREAD_DEFINE_p_1) -i $(srcdir) $(__DLLFLAG_p_1) -i \
170	$(srcdir)/../../samples $(__RCDEFDIR_p) -i $(top_srcdir)/include -o \
171	widgets$(EXEEXT) Carbon.r sample.r
172@COND_TOOLKIT_MAC@__MACOSX_RESOURCES_p_1 = $(COND_TOOLKIT_MAC___MACOSX_RESOURCES_p_1)
173
174### Targets: ###
175
176all: widgets$(EXEEXT) $(__widgets_bundle___depname)
177
178install:
179
180uninstall:
181
182install-strip: install
183
184clean:
185	rm -rf ./.deps ./.pch
186	rm -f ./*.o
187	rm -f widgets$(EXEEXT)
188	rm -rf widgets.app
189
190distclean: clean
191	rm -f config.cache config.log config.status bk-deps bk-make-pch shared-ld-sh Makefile
192
193widgets$(EXEEXT): $(WIDGETS_OBJECTS) $(__widgets___win32rc)
194	$(CXX) -o $@ $(WIDGETS_OBJECTS)    -L$(LIBDIRNAME) $(LDFLAGS_GUI) $(SAMPLES_RPATH_FLAG) $(LDFLAGS)  $(__WXLIB_XML_p) $(EXTRALIBS_XML) $(__WXLIB_ADV_p) $(PLUGIN_ADV_EXTRALIBS) $(__WXLIB_HTML_p) $(EXTRALIBS_HTML) $(__WXLIB_CORE_p)  $(__WXLIB_BASE_p)  $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) $(EXTRALIBS_FOR_GUI) $(__LIB_ZLIB_p) $(__LIB_ODBC_p) $(__LIB_REGEX_p) $(__LIB_EXPAT_p) $(EXTRALIBS_FOR_BASE) $(LIBS)
195	$(__widgets___mac_rezcmd)
196	$(__widgets___mac_setfilecmd)
197	$(__widgets___os2_emxbindcmd)
198	$(SAMPLES_RPATH_POSTLINK)
199
200@COND_PLATFORM_MACOSX_1@widgets.app/Contents/PkgInfo: widgets$(EXEEXT) $(top_srcdir)/src/mac/carbon/Info.plist.in $(top_srcdir)/src/mac/carbon/wxmac.icns
201@COND_PLATFORM_MACOSX_1@	mkdir -p widgets.app/Contents
202@COND_PLATFORM_MACOSX_1@	mkdir -p widgets.app/Contents/MacOS
203@COND_PLATFORM_MACOSX_1@	mkdir -p widgets.app/Contents/Resources
204@COND_PLATFORM_MACOSX_1@
205@COND_PLATFORM_MACOSX_1@
206@COND_PLATFORM_MACOSX_1@	sed -e "s/IDENTIFIER/`echo $(srcdir) | sed -e 's,\.\./,,g' | sed -e 's,/,.,g'`/" \
207@COND_PLATFORM_MACOSX_1@	-e "s/EXECUTABLE/widgets/" \
208@COND_PLATFORM_MACOSX_1@	-e "s/VERSION/$(WX_VERSION)/" \
209@COND_PLATFORM_MACOSX_1@	$(top_srcdir)/src/mac/carbon/Info.plist.in >widgets.app/Contents/Info.plist
210@COND_PLATFORM_MACOSX_1@
211@COND_PLATFORM_MACOSX_1@
212@COND_PLATFORM_MACOSX_1@	echo -n "APPL????" >widgets.app/Contents/PkgInfo
213@COND_PLATFORM_MACOSX_1@
214@COND_PLATFORM_MACOSX_1@
215@COND_PLATFORM_MACOSX_1@	ln -f widgets$(EXEEXT) widgets.app/Contents/MacOS/widgets
216@COND_PLATFORM_MACOSX_1@
217@COND_PLATFORM_MACOSX_1@
218@COND_PLATFORM_MACOSX_1@	cp -f $(top_srcdir)/src/mac/carbon/wxmac.icns widgets.app/Contents/Resources/wxmac.icns
219
220@COND_PLATFORM_MACOSX_1@widgets_bundle: $(____widgets_BUNDLE_TGT_REF_DEP)
221
222widgets_bmpcombobox.o: $(srcdir)/bmpcombobox.cpp
223	$(CXXC) -c -o $@ $(WIDGETS_CXXFLAGS) $(srcdir)/bmpcombobox.cpp
224
225widgets_button.o: $(srcdir)/button.cpp
226	$(CXXC) -c -o $@ $(WIDGETS_CXXFLAGS) $(srcdir)/button.cpp
227
228widgets_checkbox.o: $(srcdir)/checkbox.cpp
229	$(CXXC) -c -o $@ $(WIDGETS_CXXFLAGS) $(srcdir)/checkbox.cpp
230
231widgets_clrpicker.o: $(srcdir)/clrpicker.cpp
232	$(CXXC) -c -o $@ $(WIDGETS_CXXFLAGS) $(srcdir)/clrpicker.cpp
233
234widgets_combobox.o: $(srcdir)/combobox.cpp
235	$(CXXC) -c -o $@ $(WIDGETS_CXXFLAGS) $(srcdir)/combobox.cpp
236
237widgets_datepick.o: $(srcdir)/datepick.cpp
238	$(CXXC) -c -o $@ $(WIDGETS_CXXFLAGS) $(srcdir)/datepick.cpp
239
240widgets_dirctrl.o: $(srcdir)/dirctrl.cpp
241	$(CXXC) -c -o $@ $(WIDGETS_CXXFLAGS) $(srcdir)/dirctrl.cpp
242
243widgets_dirpicker.o: $(srcdir)/dirpicker.cpp
244	$(CXXC) -c -o $@ $(WIDGETS_CXXFLAGS) $(srcdir)/dirpicker.cpp
245
246widgets_filepicker.o: $(srcdir)/filepicker.cpp
247	$(CXXC) -c -o $@ $(WIDGETS_CXXFLAGS) $(srcdir)/filepicker.cpp
248
249widgets_fontpicker.o: $(srcdir)/fontpicker.cpp
250	$(CXXC) -c -o $@ $(WIDGETS_CXXFLAGS) $(srcdir)/fontpicker.cpp
251
252widgets_gauge.o: $(srcdir)/gauge.cpp
253	$(CXXC) -c -o $@ $(WIDGETS_CXXFLAGS) $(srcdir)/gauge.cpp
254
255widgets_hyperlnk.o: $(srcdir)/hyperlnk.cpp
256	$(CXXC) -c -o $@ $(WIDGETS_CXXFLAGS) $(srcdir)/hyperlnk.cpp
257
258widgets_listbox.o: $(srcdir)/listbox.cpp
259	$(CXXC) -c -o $@ $(WIDGETS_CXXFLAGS) $(srcdir)/listbox.cpp
260
261widgets_notebook.o: $(srcdir)/notebook.cpp
262	$(CXXC) -c -o $@ $(WIDGETS_CXXFLAGS) $(srcdir)/notebook.cpp
263
264widgets_odcombobox.o: $(srcdir)/odcombobox.cpp
265	$(CXXC) -c -o $@ $(WIDGETS_CXXFLAGS) $(srcdir)/odcombobox.cpp
266
267widgets_radiobox.o: $(srcdir)/radiobox.cpp
268	$(CXXC) -c -o $@ $(WIDGETS_CXXFLAGS) $(srcdir)/radiobox.cpp
269
270widgets_searchctrl.o: $(srcdir)/searchctrl.cpp
271	$(CXXC) -c -o $@ $(WIDGETS_CXXFLAGS) $(srcdir)/searchctrl.cpp
272
273widgets_slider.o: $(srcdir)/slider.cpp
274	$(CXXC) -c -o $@ $(WIDGETS_CXXFLAGS) $(srcdir)/slider.cpp
275
276widgets_spinbtn.o: $(srcdir)/spinbtn.cpp
277	$(CXXC) -c -o $@ $(WIDGETS_CXXFLAGS) $(srcdir)/spinbtn.cpp
278
279widgets_static.o: $(srcdir)/static.cpp
280	$(CXXC) -c -o $@ $(WIDGETS_CXXFLAGS) $(srcdir)/static.cpp
281
282widgets_textctrl.o: $(srcdir)/textctrl.cpp
283	$(CXXC) -c -o $@ $(WIDGETS_CXXFLAGS) $(srcdir)/textctrl.cpp
284
285widgets_toggle.o: $(srcdir)/toggle.cpp
286	$(CXXC) -c -o $@ $(WIDGETS_CXXFLAGS) $(srcdir)/toggle.cpp
287
288widgets_widgets.o: $(srcdir)/widgets.cpp
289	$(CXXC) -c -o $@ $(WIDGETS_CXXFLAGS) $(srcdir)/widgets.cpp
290
291widgets_sample_rc.o: $(srcdir)/../sample.rc
292	$(WINDRES) -i$< -o$@    --define __WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p_2)   $(__EXCEPTIONS_DEFINE_p_2) $(__RTTI_DEFINE_p_2) $(__THREAD_DEFINE_p_2)   --include-dir $(srcdir) $(__DLLFLAG_p_2) --include-dir $(srcdir)/../../samples $(__RCDEFDIR_p_1) --include-dir $(top_srcdir)/include
293
294
295# Include dependency info, if present:
296@IF_GNU_MAKE@-include ./.deps/*.d
297
298.PHONY: all install uninstall clean distclean widgets_bundle
299