]>
Commit | Line | Data |
---|---|---|
cbd63f42 VS |
1 | # ========================================================================= |
2 | # This makefile was generated by | |
bdc408c4 | 3 | # Bakefile 0.1.1 (http://bakefile.sourceforge.net) |
cbd63f42 VS |
4 | # Do not modify, all changes will be overwritten! |
5 | # ========================================================================= | |
6 | ||
7 | ||
8 | @MAKE_SET@ | |
9 | ||
3af038c0 VS |
10 | prefix = @prefix@ |
11 | exec_prefix = @exec_prefix@ | |
b1169abb | 12 | INSTALL = @INSTALL@ |
cbd63f42 | 13 | CPPFLAGS = @CPPFLAGS@ |
6f628073 | 14 | CXX = @CXX@ |
cbd63f42 | 15 | CXXFLAGS = @CXXFLAGS@ |
b328fad3 | 16 | EXEEXT = @EXEEXT@ |
cbd63f42 | 17 | EXTRALIBS = @EXTRALIBS@ |
6c974d0b | 18 | EXTRALIBS_GUI = @EXTRALIBS_GUI@ |
250700e4 | 19 | HOST_SUFFIX = @HOST_SUFFIX@ |
fcf61db4 | 20 | LDFLAGS = @LDFLAGS@ |
fcf61db4 | 21 | LDFLAGS_GUI = @LDFLAGS_GUI@ |
6f628073 VS |
22 | RESCOMP = @RESCOMP@ |
23 | SAMPLES_RPATH_FLAG = @SAMPLES_RPATH_FLAG@ | |
ab892b95 | 24 | SAMPLES_RPATH_POSTLINK = @SAMPLES_RPATH_POSTLINK@ |
6f628073 | 25 | SETFILE = @SETFILE@ |
250700e4 | 26 | TOOLCHAIN_NAME = @TOOLCHAIN_NAME@ |
6f628073 | 27 | TOOLKIT = @TOOLKIT@ |
cbd63f42 | 28 | TOOLKIT_LOWERCASE = @TOOLKIT_LOWERCASE@ |
fcf61db4 | 29 | TOOLKIT_VERSION = @TOOLKIT_VERSION@ |
6f628073 | 30 | srcdir = @srcdir@ |
cbd63f42 | 31 | top_builddir = @top_builddir@ |
6f628073 | 32 | top_srcdir = @top_srcdir@ |
cbd63f42 | 33 | |
fcf61db4 VS |
34 | ### Variables: ### |
35 | ||
25a73439 | 36 | LIBDIRNAME = $(top_builddir)lib |
250700e4 | 37 | WIDGETS_CXXFLAGS = $(CPPFLAGS) -D__WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p) \ |
75a0a7b7 VS |
38 | -I$(top_srcdir)/include -I$(srcdir) $(__DLLFLAG_p) \ |
39 | -I$(srcdir)/../../samples $(CXXFLAGS) | |
25a73439 VS |
40 | WIDGETS_OBJECTS = \ |
41 | widgets_button.o \ | |
42 | widgets_combobox.o \ | |
43 | widgets_gauge.o \ | |
44 | widgets_listbox.o \ | |
45 | widgets_notebook.o \ | |
46 | widgets_radiobox.o \ | |
47 | widgets_slider.o \ | |
48 | widgets_spinbtn.o \ | |
49 | widgets_static.o \ | |
50 | widgets_textctrl.o \ | |
51 | widgets_widgets.o \ | |
52 | $(__widgets___win32rc) | |
75a0a7b7 | 53 | WX_VERSION = 2.5.0 |
fcf61db4 | 54 | |
cbd63f42 VS |
55 | ### Conditionally set variables: ### |
56 | ||
b328fad3 VS |
57 | @COND_DEPS_TRACKING_0@CXXC = $(CXX) |
58 | @COND_DEPS_TRACKING_1@CXXC = $(top_builddir)./bk-deps $(CXX) | |
6f628073 VS |
59 | @COND_USE_GUI_0@PORTNAME = base |
60 | @COND_USE_GUI_1@PORTNAME = $(TOOLKIT_LOWERCASE)$(TOOLKIT_VERSION) | |
b1169abb | 61 | @COND_TOOLKIT_MAC@WXBASEPORT = _carbon |
25a73439 VS |
62 | @COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@WXDEBUGFLAG = d |
63 | @COND_DEBUG_FLAG_1@WXDEBUGFLAG = d | |
6f628073 | 64 | @COND_UNICODE_1@WXUNICODEFLAG = u |
fcf61db4 | 65 | @COND_WXUNIV_1@WXUNIVNAME = univ |
6f628073 | 66 | @COND_SHARED_1@__DLLFLAG_p = -DWXUSINGDLL |
fcf61db4 | 67 | @COND_SHARED_1@__DLLFLAG_p_1 = -d WXUSINGDLL |
fcf61db4 | 68 | @COND_SHARED_1@__DLLFLAG_p_2 = --define WXUSINGDLL |
bdc408c4 VS |
69 | @COND_WXUSE_EXPAT_BUILTIN@__LIB_EXPAT_p = \ |
70 | @COND_WXUSE_EXPAT_BUILTIN@ -lwxexpat$(WXDEBUGFLAG)$(HOST_SUFFIX) | |
25a73439 VS |
71 | @COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@__LIB_JPEG_p \ |
72 | @COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@ = \ | |
73 | @COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@ -lwxjpeg$(WXDEBUGFLAG)$(HOST_SUFFIX) | |
250700e4 RD |
74 | @COND_WXUSE_ODBC_BUILTIN@__LIB_ODBC_p = \ |
75 | @COND_WXUSE_ODBC_BUILTIN@ -lwxodbc$(WXDEBUGFLAG)$(HOST_SUFFIX) | |
25a73439 VS |
76 | @COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@__LIB_PNG_p \ |
77 | @COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@ = \ | |
78 | @COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@ -lwxpng$(WXDEBUGFLAG)$(HOST_SUFFIX) | |
250700e4 RD |
79 | @COND_WXUSE_REGEX_BUILTIN@__LIB_REGEX_p = \ |
80 | @COND_WXUSE_REGEX_BUILTIN@ -lwxregex$(WXDEBUGFLAG)$(HOST_SUFFIX) | |
25a73439 VS |
81 | @COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@__LIB_TIFF_p \ |
82 | @COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@ = \ | |
83 | @COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@ -lwxtiff$(WXDEBUGFLAG)$(HOST_SUFFIX) | |
250700e4 RD |
84 | @COND_WXUSE_ZLIB_BUILTIN@__LIB_ZLIB_p = \ |
85 | @COND_WXUSE_ZLIB_BUILTIN@ -lwxzlib$(WXDEBUGFLAG)$(HOST_SUFFIX) | |
25a73439 | 86 | COND_TOOLKIT_MAC___MACOSX_RESOURCES_p_1 = $(RESCOMP) -d __DARWIN__ -t APPL -d \ |
75a0a7b7 | 87 | __WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p_1) -i $(top_srcdir)/include -i $(srcdir) \ |
b328fad3 | 88 | $(__DLLFLAG_p_1) -i $(srcdir)/../../samples -o widgets$(EXEEXT) Carbon.r \ |
ab892b95 | 89 | $(LIBDIRNAME)/libwx_$(TOOLCHAIN_NAME).0.r sample.r |
25a73439 | 90 | @COND_TOOLKIT_MAC@__MACOSX_RESOURCES_p_1 = $(COND_TOOLKIT_MAC___MACOSX_RESOURCES_p_1) |
250700e4 RD |
91 | @COND_MONOLITHIC_0@__WXLIB_BASE_p = \ |
92 | @COND_MONOLITHIC_0@ -lwx_base$(WXBASEPORT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)-2.5$(HOST_SUFFIX) | |
25a73439 VS |
93 | COND_MONOLITHIC_0___WXLIB_CORE_p = \ |
94 | -lwx_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core-2.5$(HOST_SUFFIX) | |
95 | @COND_MONOLITHIC_0@__WXLIB_CORE_p = $(COND_MONOLITHIC_0___WXLIB_CORE_p) | |
96 | COND_MONOLITHIC_1___WXLIB_MONO_p = \ | |
97 | -lwx_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)-2.5$(HOST_SUFFIX) | |
98 | @COND_MONOLITHIC_1@__WXLIB_MONO_p = $(COND_MONOLITHIC_1___WXLIB_MONO_p) | |
6f628073 | 99 | @COND_WXUNIV_1@__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__ |
9747f85d | 100 | @COND_WXUNIV_1@__WXUNIV_DEFINE_p_1 = -d __WXUNIVERSAL__ |
fcf61db4 | 101 | @COND_WXUNIV_1@__WXUNIV_DEFINE_p_2 = --define __WXUNIVERSAL__ |
6f628073 | 102 | @COND_PLATFORM_MAC_1@__widgets___mac_rezcmd = $(__MACOSX_RESOURCES_p_1) |
b328fad3 VS |
103 | @COND_PLATFORM_MAC_1@__widgets___mac_setfilecmd = \ |
104 | @COND_PLATFORM_MAC_1@ $(SETFILE) -a C widgets$(EXEEXT) | |
6f628073 | 105 | @COND_PLATFORM_WIN32_1@__widgets___win32rc = widgets_widgets_rc.o |
ab892b95 | 106 | @COND_PLATFORM_MACOSX_1@__widgets_bundle___depname = widgets_bundle |
cbd63f42 VS |
107 | |
108 | ### Targets: ### | |
109 | ||
b328fad3 | 110 | all: widgets$(EXEEXT) $(__widgets_bundle___depname) |
cbd63f42 | 111 | |
cbd63f42 | 112 | clean: |
ab892b95 | 113 | rm -rf ./.deps ./.pch |
25a73439 | 114 | rm -f ./*.o |
b328fad3 | 115 | rm -f widgets$(EXEEXT) |
ab892b95 | 116 | rm -rf widgets.app |
cbd63f42 | 117 | |
6f628073 | 118 | distclean: clean |
ab892b95 | 119 | rm -f configure config.cache config.log config.status bk-deps bk-make-pch shared-ld-sh Makefile |
6f628073 | 120 | |
cbd63f42 VS |
121 | install: all |
122 | ||
6f628073 VS |
123 | install-strip: install |
124 | ||
125 | uninstall: | |
fcf61db4 | 126 | |
b328fad3 | 127 | widgets$(EXEEXT): $(WIDGETS_OBJECTS) $(__widgets___win32rc) |
25a73439 | 128 | $(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) |
cbd63f42 VS |
129 | $(__widgets___mac_rezcmd) |
130 | $(__widgets___mac_setfilecmd) | |
ab892b95 VS |
131 | $(SAMPLES_RPATH_POSTLINK) |
132 | ||
1c3a6972 | 133 | widgets.app/Contents/PkgInfo: widgets$(EXEEXT) $(top_srcdir)/src/mac/Info.plist.in $(LIBDIRNAME)/libwx_$(TOOLCHAIN_NAME).0.rsrc $(top_srcdir)/src/mac/wxmac.icns |
ab892b95 VS |
134 | mkdir -p widgets.app/Contents |
135 | mkdir -p widgets.app/Contents/MacOS | |
136 | mkdir -p widgets.app/Contents/Resources | |
137 | ||
138 | ||
139 | sed -e "s/IDENTIFIER/`echo $(srcdir) | sed -e 's,\.\./,,g' | sed -e 's,/,.,g'`/" \ | |
140 | -e "s/EXECUTABLE/widgets/" \ | |
75a0a7b7 | 141 | -e "s/VERSION/$(WX_VERSION)/" \ |
ab892b95 VS |
142 | $(top_srcdir)/src/mac/Info.plist.in >widgets.app/Contents/Info.plist |
143 | ||
144 | ||
145 | echo -n "APPL????" >widgets.app/Contents/PkgInfo | |
146 | ||
147 | ||
b328fad3 | 148 | ln -f widgets$(EXEEXT) widgets.app/Contents/MacOS/widgets |
ab892b95 VS |
149 | |
150 | ||
151 | ln -f $(LIBDIRNAME)/libwx_$(TOOLCHAIN_NAME).0.rsrc widgets.app/Contents/Resources/widgets.rsrc | |
152 | ln -f $(top_srcdir)/src/mac/wxmac.icns widgets.app/Contents/Resources/wxmac.icns | |
153 | ||
1c3a6972 | 154 | @COND_PLATFORM_MACOSX_1@widgets_bundle: widgets.app/Contents/PkgInfo |
cbd63f42 | 155 | |
6f628073 | 156 | widgets_button.o: $(srcdir)/button.cpp |
b328fad3 | 157 | $(CXXC) -c -o $@ $(WIDGETS_CXXFLAGS) $< |
cbd63f42 | 158 | |
6f628073 | 159 | widgets_combobox.o: $(srcdir)/combobox.cpp |
b328fad3 | 160 | $(CXXC) -c -o $@ $(WIDGETS_CXXFLAGS) $< |
49b0a3aa | 161 | |
6f628073 | 162 | widgets_gauge.o: $(srcdir)/gauge.cpp |
b328fad3 | 163 | $(CXXC) -c -o $@ $(WIDGETS_CXXFLAGS) $< |
6f628073 VS |
164 | |
165 | widgets_listbox.o: $(srcdir)/listbox.cpp | |
b328fad3 | 166 | $(CXXC) -c -o $@ $(WIDGETS_CXXFLAGS) $< |
6f628073 VS |
167 | |
168 | widgets_notebook.o: $(srcdir)/notebook.cpp | |
b328fad3 | 169 | $(CXXC) -c -o $@ $(WIDGETS_CXXFLAGS) $< |
6f628073 VS |
170 | |
171 | widgets_radiobox.o: $(srcdir)/radiobox.cpp | |
b328fad3 | 172 | $(CXXC) -c -o $@ $(WIDGETS_CXXFLAGS) $< |
6f628073 VS |
173 | |
174 | widgets_slider.o: $(srcdir)/slider.cpp | |
b328fad3 | 175 | $(CXXC) -c -o $@ $(WIDGETS_CXXFLAGS) $< |
6f628073 VS |
176 | |
177 | widgets_spinbtn.o: $(srcdir)/spinbtn.cpp | |
b328fad3 | 178 | $(CXXC) -c -o $@ $(WIDGETS_CXXFLAGS) $< |
6f628073 VS |
179 | |
180 | widgets_static.o: $(srcdir)/static.cpp | |
b328fad3 | 181 | $(CXXC) -c -o $@ $(WIDGETS_CXXFLAGS) $< |
6f628073 VS |
182 | |
183 | widgets_textctrl.o: $(srcdir)/textctrl.cpp | |
b328fad3 | 184 | $(CXXC) -c -o $@ $(WIDGETS_CXXFLAGS) $< |
6f628073 VS |
185 | |
186 | widgets_widgets.o: $(srcdir)/widgets.cpp | |
b328fad3 | 187 | $(CXXC) -c -o $@ $(WIDGETS_CXXFLAGS) $< |
6f628073 VS |
188 | |
189 | widgets_widgets_rc.o: $(srcdir)/widgets.rc | |
75a0a7b7 | 190 | $(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 |
cbd63f42 VS |
191 | |
192 | ||
193 | # Include dependency info, if present: | |
49b0a3aa | 194 | @IF_GNU_MAKE@-include .deps/*.d |
cbd63f42 | 195 | |
ab892b95 | 196 | .PHONY: all clean distclean install uninstall widgets_bundle |