1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.1.1 (http://bakefile.sourceforge.net)
4 # Do not modify, all changes will be overwritten!
5 # =========================================================================
11 exec_prefix = @exec_prefix@
17 EXTRALIBS = @EXTRALIBS@
18 EXTRALIBS_GUI = @EXTRALIBS_GUI@
19 HOST_SUFFIX = @HOST_SUFFIX@
21 LDFLAGS_GUI = @LDFLAGS_GUI@
24 SAMPLES_RPATH_FLAG = @SAMPLES_RPATH_FLAG@
25 SAMPLES_RPATH_POSTLINK = @SAMPLES_RPATH_POSTLINK@
27 TOOLCHAIN_NAME = @TOOLCHAIN_NAME@
29 TOOLKIT_LOWERCASE = @TOOLKIT_LOWERCASE@
30 TOOLKIT_VERSION = @TOOLKIT_VERSION@
32 top_builddir = @top_builddir@
33 top_srcdir = @top_srcdir@
38 LIBDIRNAME = $(top_builddir)lib
39 WIDGETS_CXXFLAGS = -D__WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p) \
40 -I$(top_srcdir)/include -I$(srcdir) $(__DLLFLAG_p) \
41 -I$(srcdir)/../../samples $(CPPFLAGS) $(CXXFLAGS)
43 $(__widgets_os2_lib_res) \
56 $(__widgets___win32rc)
59 ### Conditionally set variables: ###
61 @COND_DEPS_TRACKING_0@CXXC = $(CXX)
62 @COND_DEPS_TRACKING_1@CXXC = $(top_builddir)./bk-deps $(CXX)
63 @COND_USE_GUI_0@PORTNAME = base
64 @COND_USE_GUI_1@PORTNAME = $(TOOLKIT_LOWERCASE)$(TOOLKIT_VERSION)
65 @COND_TOOLKIT_MAC@WXBASEPORT = _carbon
66 @COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@WXDEBUGFLAG = d
67 @COND_DEBUG_FLAG_1@WXDEBUGFLAG = d
68 @COND_UNICODE_1@WXUNICODEFLAG = u
69 @COND_WXUNIV_1@WXUNIVNAME = univ
70 @COND_SHARED_1@__DLLFLAG_p = -DWXUSINGDLL
71 @COND_SHARED_1@__DLLFLAG_p_1 = -d WXUSINGDLL
72 @COND_SHARED_1@__DLLFLAG_p_2 = --define WXUSINGDLL
73 @COND_WXUSE_EXPAT_BUILTIN@__LIB_EXPAT_p = \
74 @COND_WXUSE_EXPAT_BUILTIN@ -lwxexpat$(WXDEBUGFLAG)$(HOST_SUFFIX)
75 @COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@__LIB_JPEG_p \
76 @COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@ = \
77 @COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@ -lwxjpeg$(WXDEBUGFLAG)$(HOST_SUFFIX)
78 @COND_WXUSE_ODBC_BUILTIN@__LIB_ODBC_p = \
79 @COND_WXUSE_ODBC_BUILTIN@ -lwxodbc$(WXDEBUGFLAG)$(HOST_SUFFIX)
80 @COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@__LIB_PNG_p \
81 @COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@ = \
82 @COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@ -lwxpng$(WXDEBUGFLAG)$(HOST_SUFFIX)
83 @COND_WXUSE_REGEX_BUILTIN@__LIB_REGEX_p = \
84 @COND_WXUSE_REGEX_BUILTIN@ -lwxregex$(WXDEBUGFLAG)$(HOST_SUFFIX)
85 @COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@__LIB_TIFF_p \
86 @COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@ = \
87 @COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@ -lwxtiff$(WXDEBUGFLAG)$(HOST_SUFFIX)
88 @COND_WXUSE_ZLIB_BUILTIN@__LIB_ZLIB_p = \
89 @COND_WXUSE_ZLIB_BUILTIN@ -lwxzlib$(WXDEBUGFLAG)$(HOST_SUFFIX)
90 COND_TOOLKIT_MAC___MACOSX_RESOURCES_p_1 = $(RESCOMP) -d __DARWIN__ -t APPL -d \
91 __WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p_1) -i $(top_srcdir)/include -i $(srcdir) \
92 $(__DLLFLAG_p_1) -i $(srcdir)/../../samples -o widgets$(EXEEXT) Carbon.r \
93 $(LIBDIRNAME)/libwx_$(TOOLCHAIN_NAME).1.r sample.r
94 @COND_TOOLKIT_MAC@__MACOSX_RESOURCES_p_1 = $(COND_TOOLKIT_MAC___MACOSX_RESOURCES_p_1)
95 @COND_MONOLITHIC_0@__WXLIB_BASE_p = \
96 @COND_MONOLITHIC_0@ -lwx_base$(WXBASEPORT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)-2.5$(HOST_SUFFIX)
97 COND_MONOLITHIC_0___WXLIB_CORE_p = \
98 -lwx_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core-2.5$(HOST_SUFFIX)
99 @COND_MONOLITHIC_0@__WXLIB_CORE_p = $(COND_MONOLITHIC_0___WXLIB_CORE_p)
100 COND_MONOLITHIC_1___WXLIB_MONO_p = \
101 -lwx_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)-2.5$(HOST_SUFFIX)
102 @COND_MONOLITHIC_1@__WXLIB_MONO_p = $(COND_MONOLITHIC_1___WXLIB_MONO_p)
103 @COND_WXUNIV_1@__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
104 @COND_WXUNIV_1@__WXUNIV_DEFINE_p_1 = -d __WXUNIVERSAL__
105 @COND_WXUNIV_1@__WXUNIV_DEFINE_p_2 = --define __WXUNIVERSAL__
106 @COND_PLATFORM_MAC_1@__widgets___mac_rezcmd = $(__MACOSX_RESOURCES_p_1)
107 @COND_PLATFORM_MAC_1@__widgets___mac_setfilecmd = \
108 @COND_PLATFORM_MAC_1@ $(SETFILE) -a C widgets$(EXEEXT)
109 COND_PLATFORM_OS2_1___widgets___os2_emxbindcmd = $(NM) widgets$(EXEEXT) | if \
110 grep -q pmwin.763 ; then emxbind -ep widgets$(EXEEXT) ; fi
111 @COND_PLATFORM_OS2_1@__widgets___os2_emxbindcmd = $(COND_PLATFORM_OS2_1___widgets___os2_emxbindcmd)
112 @COND_PLATFORM_WIN32_1@__widgets___win32rc = widgets_widgets_rc.o
113 @COND_PLATFORM_MACOSX_1@__widgets_bundle___depname = widgets_bundle
114 @COND_PLATFORM_OS2_1@__widgets_os2_lib_res = \
115 @COND_PLATFORM_OS2_1@ $(top_srcdir)/include/wx/os2/wx.res
119 all: widgets$(EXEEXT) $(__widgets_bundle___depname)
122 rm -rf ./.deps ./.pch
124 rm -f widgets$(EXEEXT)
128 rm -f configure config.cache config.log config.status bk-deps bk-make-pch shared-ld-sh Makefile
132 install-strip: install
136 widgets$(EXEEXT): $(WIDGETS_OBJECTS) $(__widgets___win32rc)
137 $(CXX) -o $@ $(WIDGETS_OBJECTS) $(LDFLAGS) -L$(LIBDIRNAME) $(LDFLAGS_GUI) $(SAMPLES_RPATH_FLAG) $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) $(__LIB_ZLIB_p) $(__LIB_ODBC_p) $(__LIB_REGEX_p) $(__LIB_EXPAT_p) $(EXTRALIBS) $(EXTRALIBS_GUI)
138 $(__widgets___mac_rezcmd)
139 $(__widgets___mac_setfilecmd)
140 $(__widgets___os2_emxbindcmd)
141 $(SAMPLES_RPATH_POSTLINK)
143 widgets.app/Contents/PkgInfo: widgets$(EXEEXT) $(top_srcdir)/src/mac/Info.plist.in $(LIBDIRNAME)/libwx_$(TOOLCHAIN_NAME).1.rsrc $(top_srcdir)/src/mac/wxmac.icns
144 mkdir -p widgets.app/Contents
145 mkdir -p widgets.app/Contents/MacOS
146 mkdir -p widgets.app/Contents/Resources
149 sed -e "s/IDENTIFIER/`echo $(srcdir) | sed -e 's,\.\./,,g' | sed -e 's,/,.,g'`/" \
150 -e "s/EXECUTABLE/widgets/" \
151 -e "s/VERSION/$(WX_VERSION)/" \
152 $(top_srcdir)/src/mac/Info.plist.in >widgets.app/Contents/Info.plist
155 echo -n "APPL????" >widgets.app/Contents/PkgInfo
158 ln -f widgets$(EXEEXT) widgets.app/Contents/MacOS/widgets
161 ln -sf $(LIBDIRNAME)/libwx_$(TOOLCHAIN_NAME).1.rsrc widgets.app/Contents/Resources/widgets.rsrc
162 ln -sf $(top_srcdir)/src/mac/wxmac.icns widgets.app/Contents/Resources/wxmac.icns
164 @COND_PLATFORM_MACOSX_1@widgets_bundle: widgets.app/Contents/PkgInfo
166 widgets_button.o: $(srcdir)/button.cpp
167 $(CXXC) -c -o $@ $(WIDGETS_CXXFLAGS) $<
169 widgets_checkbox.o: $(srcdir)/checkbox.cpp
170 $(CXXC) -c -o $@ $(WIDGETS_CXXFLAGS) $<
172 widgets_combobox.o: $(srcdir)/combobox.cpp
173 $(CXXC) -c -o $@ $(WIDGETS_CXXFLAGS) $<
175 widgets_gauge.o: $(srcdir)/gauge.cpp
176 $(CXXC) -c -o $@ $(WIDGETS_CXXFLAGS) $<
178 widgets_listbox.o: $(srcdir)/listbox.cpp
179 $(CXXC) -c -o $@ $(WIDGETS_CXXFLAGS) $<
181 widgets_notebook.o: $(srcdir)/notebook.cpp
182 $(CXXC) -c -o $@ $(WIDGETS_CXXFLAGS) $<
184 widgets_radiobox.o: $(srcdir)/radiobox.cpp
185 $(CXXC) -c -o $@ $(WIDGETS_CXXFLAGS) $<
187 widgets_slider.o: $(srcdir)/slider.cpp
188 $(CXXC) -c -o $@ $(WIDGETS_CXXFLAGS) $<
190 widgets_spinbtn.o: $(srcdir)/spinbtn.cpp
191 $(CXXC) -c -o $@ $(WIDGETS_CXXFLAGS) $<
193 widgets_static.o: $(srcdir)/static.cpp
194 $(CXXC) -c -o $@ $(WIDGETS_CXXFLAGS) $<
196 widgets_textctrl.o: $(srcdir)/textctrl.cpp
197 $(CXXC) -c -o $@ $(WIDGETS_CXXFLAGS) $<
199 widgets_widgets.o: $(srcdir)/widgets.cpp
200 $(CXXC) -c -o $@ $(WIDGETS_CXXFLAGS) $<
202 widgets_widgets_rc.o: $(srcdir)/widgets.rc
203 $(RESCOMP) -i$< -o$@ --define __WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p_2) --include-dir $(top_srcdir)/include --include-dir $(srcdir) $(__DLLFLAG_p_2) --include-dir $(srcdir)/../../samples
206 # Include dependency info, if present:
207 @IF_GNU_MAKE@-include .deps/*.d
209 .PHONY: all clean distclean install uninstall widgets_bundle