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 # =========================================================================
11 exec_prefix = @exec_prefix@
12 datarootdir = @datarootdir@
19 INSTALL_PROGRAM = @INSTALL_PROGRAM@
20 INSTALL_DIR = @INSTALL_DIR@
23 top_srcdir = @top_srcdir@
26 LDFLAGS_GUI = @LDFLAGS_GUI@
31 WX_LIB_FLAVOUR = @WX_LIB_FLAVOUR@
33 TOOLKIT_LOWERCASE = @TOOLKIT_LOWERCASE@
34 TOOLKIT_VERSION = @TOOLKIT_VERSION@
35 TOOLCHAIN_FULLNAME = @TOOLCHAIN_FULLNAME@
36 EXTRALIBS = @EXTRALIBS@
37 EXTRALIBS_XML = @EXTRALIBS_XML@
38 EXTRALIBS_HTML = @EXTRALIBS_HTML@
39 EXTRALIBS_GUI = @EXTRALIBS_GUI@
40 EXTRALIBS_SDL = @EXTRALIBS_SDL@
41 CXXWARNINGS = @CXXWARNINGS@
42 HOST_SUFFIX = @HOST_SUFFIX@
43 SAMPLES_RPATH_FLAG = @SAMPLES_RPATH_FLAG@
44 HEADER_PAD_OPTION = @HEADER_PAD_OPTION@
45 wx_top_builddir = @wx_top_builddir@
51 WX_VERSION = $(WX_RELEASE).5
52 LIBDIRNAME = $(wx_top_builddir)/lib
53 SCREENSHOTGEN_CXXFLAGS = -D__WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p) \
54 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
55 $(__THREAD_DEFINE_p) -I$(srcdir) $(__DLLFLAG_p) \
56 -I$(srcdir)/../../../samples $(CXXWARNINGS) $(CPPFLAGS) $(CXXFLAGS)
57 SCREENSHOTGEN_OBJECTS = \
58 $(__screenshotgen_os2_lib_res) \
59 screenshotgen_screenshot_app.o \
60 screenshotgen_screenshot_main.o \
61 screenshotgen_guiframe.o \
62 screenshotgen_customcombo.o \
63 screenshotgen_autocapture.o \
64 $(__screenshotgen___win32rc)
66 ### Conditionally set variables: ###
68 @COND_DEPS_TRACKING_0@CXXC = $(CXX)
69 @COND_DEPS_TRACKING_1@CXXC = $(BK_DEPS) $(CXX)
70 @COND_USE_PLUGINS_0@PLUGIN_ADV_EXTRALIBS = $(EXTRALIBS_SDL)
71 @COND_USE_GUI_0@PORTNAME = base
72 @COND_USE_GUI_1@PORTNAME = $(TOOLKIT_LOWERCASE)$(TOOLKIT_VERSION)
73 @COND_TOOLKIT_MAC@WXBASEPORT = _carbon
74 @COND_BUILD_debug@WXDEBUGFLAG = d
75 @COND_UNICODE_1@WXUNICODEFLAG = u
76 @COND_WXUNIV_1@WXUNIVNAME = univ
77 @COND_MONOLITHIC_0@EXTRALIBS_FOR_BASE = $(EXTRALIBS)
78 @COND_MONOLITHIC_1@EXTRALIBS_FOR_BASE = $(EXTRALIBS) \
79 @COND_MONOLITHIC_1@ $(EXTRALIBS_XML) $(EXTRALIBS_GUI)
80 @COND_MONOLITHIC_0@EXTRALIBS_FOR_GUI = $(EXTRALIBS_GUI)
81 @COND_MONOLITHIC_1@EXTRALIBS_FOR_GUI =
82 @COND_PLATFORM_MAC_0@__screenshotgen___mac_setfilecmd = @true
83 @COND_PLATFORM_MAC_1@__screenshotgen___mac_setfilecmd \
84 @COND_PLATFORM_MAC_1@ = $(SETFILE) -t APPL screenshotgen$(EXEEXT)
85 @COND_WXUNIV_1@__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
86 @COND_WXUNIV_1@__WXUNIV_DEFINE_p_2 = --define __WXUNIVERSAL__
87 @COND_DEBUG_FLAG_0@__DEBUG_DEFINE_p = -DwxDEBUG_LEVEL=0
88 @COND_DEBUG_FLAG_0@__DEBUG_DEFINE_p_2 = --define wxDEBUG_LEVEL=0
89 @COND_USE_EXCEPTIONS_0@__EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
90 @COND_USE_EXCEPTIONS_0@__EXCEPTIONS_DEFINE_p_2 = --define wxNO_EXCEPTIONS
91 @COND_USE_RTTI_0@__RTTI_DEFINE_p = -DwxNO_RTTI
92 @COND_USE_RTTI_0@__RTTI_DEFINE_p_2 = --define wxNO_RTTI
93 @COND_USE_THREADS_0@__THREAD_DEFINE_p = -DwxNO_THREADS
94 @COND_USE_THREADS_0@__THREAD_DEFINE_p_2 = --define wxNO_THREADS
95 @COND_SHARED_1@__DLLFLAG_p = -DWXUSINGDLL
96 @COND_SHARED_1@__DLLFLAG_p_2 = --define WXUSINGDLL
97 COND_PLATFORM_OS2_1___screenshotgen___os2_emxbindcmd = $(NM) \
98 screenshotgen$(EXEEXT) | if grep -q pmwin.763 ; then emxbind -ep \
99 screenshotgen$(EXEEXT) ; fi
100 @COND_PLATFORM_OS2_1@__screenshotgen___os2_emxbindcmd = $(COND_PLATFORM_OS2_1___screenshotgen___os2_emxbindcmd)
101 @COND_TOOLKIT_MSW@__RCDEFDIR_p_1 = --include-dir \
102 @COND_TOOLKIT_MSW@ $(LIBDIRNAME)/wx/include/$(TOOLCHAIN_FULLNAME)
103 @COND_PLATFORM_OS2_1@__screenshotgen_os2_lib_res = \
104 @COND_PLATFORM_OS2_1@ $(top_srcdir)/include/wx/os2/wx.res
105 @COND_PLATFORM_MACOSX_1@__screenshotgen_app_Contents_PkgInfo___depname \
106 @COND_PLATFORM_MACOSX_1@ = screenshotgen.app/Contents/PkgInfo
107 @COND_PLATFORM_MACOSX_1@__screenshotgen_bundle___depname \
108 @COND_PLATFORM_MACOSX_1@ = screenshotgen_bundle
109 @COND_TOOLKIT_MAC@____screenshotgen_BUNDLE_TGT_REF_DEP = \
110 @COND_TOOLKIT_MAC@ $(__screenshotgen_app_Contents_PkgInfo___depname)
111 @COND_TOOLKIT_OSX_CARBON@____screenshotgen_BUNDLE_TGT_REF_DEP \
112 @COND_TOOLKIT_OSX_CARBON@ = \
113 @COND_TOOLKIT_OSX_CARBON@ $(__screenshotgen_app_Contents_PkgInfo___depname)
114 @COND_TOOLKIT_OSX_COCOA@____screenshotgen_BUNDLE_TGT_REF_DEP \
115 @COND_TOOLKIT_OSX_COCOA@ = \
116 @COND_TOOLKIT_OSX_COCOA@ $(__screenshotgen_app_Contents_PkgInfo___depname)
117 @COND_TOOLKIT_OSX_IPHONE@____screenshotgen_BUNDLE_TGT_REF_DEP \
118 @COND_TOOLKIT_OSX_IPHONE@ = \
119 @COND_TOOLKIT_OSX_IPHONE@ $(__screenshotgen_app_Contents_PkgInfo___depname)
120 @COND_TOOLKIT_COCOA@____screenshotgen_BUNDLE_TGT_REF_DEP \
121 @COND_TOOLKIT_COCOA@ = $(__screenshotgen_app_Contents_PkgInfo___depname)
122 COND_MONOLITHIC_0___WXLIB_AUI_p = \
123 -lwx_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_aui-$(WX_RELEASE)$(HOST_SUFFIX)
124 @COND_MONOLITHIC_0@__WXLIB_AUI_p = $(COND_MONOLITHIC_0___WXLIB_AUI_p)
125 COND_MONOLITHIC_0___WXLIB_RICHTEXT_p = \
126 -lwx_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_richtext-$(WX_RELEASE)$(HOST_SUFFIX)
127 @COND_MONOLITHIC_0@__WXLIB_RICHTEXT_p = $(COND_MONOLITHIC_0___WXLIB_RICHTEXT_p)
128 COND_MONOLITHIC_0___WXLIB_HTML_p = \
129 -lwx_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_html-$(WX_RELEASE)$(HOST_SUFFIX)
130 @COND_MONOLITHIC_0@__WXLIB_HTML_p = $(COND_MONOLITHIC_0___WXLIB_HTML_p)
131 COND_MONOLITHIC_0___WXLIB_ADV_p = \
132 -lwx_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_adv-$(WX_RELEASE)$(HOST_SUFFIX)
133 @COND_MONOLITHIC_0@__WXLIB_ADV_p = $(COND_MONOLITHIC_0___WXLIB_ADV_p)
134 COND_MONOLITHIC_0___WXLIB_XML_p = \
135 -lwx_base$(WXBASEPORT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_xml-$(WX_RELEASE)$(HOST_SUFFIX)
136 @COND_MONOLITHIC_0@__WXLIB_XML_p = $(COND_MONOLITHIC_0___WXLIB_XML_p)
137 COND_MONOLITHIC_0___WXLIB_CORE_p = \
138 -lwx_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core-$(WX_RELEASE)$(HOST_SUFFIX)
139 @COND_MONOLITHIC_0@__WXLIB_CORE_p = $(COND_MONOLITHIC_0___WXLIB_CORE_p)
140 COND_MONOLITHIC_0___WXLIB_BASE_p = \
141 -lwx_base$(WXBASEPORT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX)
142 @COND_MONOLITHIC_0@__WXLIB_BASE_p = $(COND_MONOLITHIC_0___WXLIB_BASE_p)
143 @COND_PLATFORM_WIN32_1@__screenshotgen___win32rc = \
144 @COND_PLATFORM_WIN32_1@ screenshotgen_screenshotgen_rc.o
145 COND_MONOLITHIC_1___WXLIB_MONO_p = \
146 -lwx_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX)
147 @COND_MONOLITHIC_1@__WXLIB_MONO_p = $(COND_MONOLITHIC_1___WXLIB_MONO_p)
148 @COND_MONOLITHIC_1_USE_STC_1@__LIB_SCINTILLA_IF_MONO_p \
149 @COND_MONOLITHIC_1_USE_STC_1@ = \
150 @COND_MONOLITHIC_1_USE_STC_1@ -lwxscintilla$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX)
151 @COND_USE_GUI_1_wxUSE_LIBTIFF_builtin@__LIB_TIFF_p \
152 @COND_USE_GUI_1_wxUSE_LIBTIFF_builtin@ = \
153 @COND_USE_GUI_1_wxUSE_LIBTIFF_builtin@ -lwxtiff$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX)
154 @COND_USE_GUI_1_wxUSE_LIBJPEG_builtin@__LIB_JPEG_p \
155 @COND_USE_GUI_1_wxUSE_LIBJPEG_builtin@ = \
156 @COND_USE_GUI_1_wxUSE_LIBJPEG_builtin@ -lwxjpeg$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX)
157 @COND_USE_GUI_1_wxUSE_LIBPNG_builtin@__LIB_PNG_p \
158 @COND_USE_GUI_1_wxUSE_LIBPNG_builtin@ = \
159 @COND_USE_GUI_1_wxUSE_LIBPNG_builtin@ -lwxpng$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX)
160 @COND_wxUSE_ZLIB_builtin@__LIB_ZLIB_p = \
161 @COND_wxUSE_ZLIB_builtin@ -lwxzlib$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX)
162 COND_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)
170 all: screenshotgen$(EXEEXT) $(__screenshotgen_bundle___depname) bitmaps xml
172 install: install_screenshotgen
174 uninstall: uninstall_screenshotgen
176 install-strip: install
177 $(STRIP) $(DESTDIR)$(bindir)/screenshotgen$(EXEEXT)
180 rm -rf ./.deps ./.pch
182 rm -f screenshotgen$(EXEEXT)
183 rm -rf screenshotgen.app
186 rm -f config.cache config.log config.status bk-deps bk-make-pch shared-ld-sh Makefile
188 screenshotgen$(EXEEXT): $(SCREENSHOTGEN_OBJECTS) $(__screenshotgen___win32rc)
189 $(CXX) -o $@ $(SCREENSHOTGEN_OBJECTS) -L$(LIBDIRNAME) $(LDFLAGS_GUI) $(HEADER_PAD_OPTION) $(SAMPLES_RPATH_FLAG) $(LDFLAGS) $(__WXLIB_AUI_p) $(__WXLIB_RICHTEXT_p) $(__WXLIB_HTML_p) $(EXTRALIBS_HTML) $(__WXLIB_ADV_p) $(PLUGIN_ADV_EXTRALIBS) $(__WXLIB_XML_p) $(EXTRALIBS_XML) $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_SCINTILLA_IF_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) $(EXTRALIBS_FOR_GUI) $(__LIB_ZLIB_p) $(__LIB_REGEX_p) $(__LIB_EXPAT_p) $(EXTRALIBS_FOR_BASE) $(LIBS)
191 $(__screenshotgen___mac_setfilecmd)
192 $(__screenshotgen___os2_emxbindcmd)
194 @COND_PLATFORM_MACOSX_1@screenshotgen.app/Contents/PkgInfo: screenshotgen$(EXEEXT) $(top_srcdir)/src/osx/carbon/Info.plist.in $(top_srcdir)/src/osx/carbon/wxmac.icns
195 @COND_PLATFORM_MACOSX_1@ mkdir -p screenshotgen.app/Contents
196 @COND_PLATFORM_MACOSX_1@ mkdir -p screenshotgen.app/Contents/MacOS
197 @COND_PLATFORM_MACOSX_1@ mkdir -p screenshotgen.app/Contents/Resources
198 @COND_PLATFORM_MACOSX_1@
199 @COND_PLATFORM_MACOSX_1@
200 @COND_PLATFORM_MACOSX_1@ sed -e "s/IDENTIFIER/`echo $(srcdir) | sed -e 's,\.\./,,g' | sed -e 's,/,.,g'`/" \
201 @COND_PLATFORM_MACOSX_1@ -e "s/EXECUTABLE/screenshotgen/" \
202 @COND_PLATFORM_MACOSX_1@ -e "s/VERSION/$(WX_VERSION)/" \
203 @COND_PLATFORM_MACOSX_1@ $(top_srcdir)/src/osx/carbon/Info.plist.in >screenshotgen.app/Contents/Info.plist
204 @COND_PLATFORM_MACOSX_1@
205 @COND_PLATFORM_MACOSX_1@
206 @COND_PLATFORM_MACOSX_1@ /bin/echo "APPL????" >screenshotgen.app/Contents/PkgInfo
207 @COND_PLATFORM_MACOSX_1@
208 @COND_PLATFORM_MACOSX_1@
209 @COND_PLATFORM_MACOSX_1@ ln -f screenshotgen$(EXEEXT) screenshotgen.app/Contents/MacOS/screenshotgen
210 @COND_PLATFORM_MACOSX_1@
211 @COND_PLATFORM_MACOSX_1@
212 @COND_PLATFORM_MACOSX_1@ cp -f $(top_srcdir)/src/osx/carbon/wxmac.icns screenshotgen.app/Contents/Resources/wxmac.icns
214 @COND_PLATFORM_MACOSX_1@screenshotgen_bundle: $(____screenshotgen_BUNDLE_TGT_REF_DEP)
216 install_screenshotgen: screenshotgen$(EXEEXT)
217 $(INSTALL_DIR) $(DESTDIR)$(bindir)
218 $(INSTALL_PROGRAM) screenshotgen$(EXEEXT) $(DESTDIR)$(bindir)
220 uninstall_screenshotgen:
221 rm -f $(DESTDIR)$(bindir)/screenshotgen$(EXEEXT)
225 @for f in wxwin32x32.png bell.png sound.png dropbuth.png dropbutn.png dropbutp.png throbber.gif; do \
226 if test ! -f ./bitmaps/$$f -a ! -d ./bitmaps/$$f ; \
228 else x=`find $(srcdir)/bitmaps/$$f -newer ./bitmaps/$$f -print` ; \
231 cp -pRf $(srcdir)/bitmaps/$$f ./bitmaps ;; \
237 @for f in richtext.xml; do \
238 if test ! -f ./$$f -a ! -d ./$$f ; \
240 else x=`find $(srcdir)/$$f -newer ./$$f -print` ; \
243 cp -pRf $(srcdir)/$$f . ;; \
247 screenshotgen_screenshot_app.o: $(srcdir)/screenshot_app.cpp
248 $(CXXC) -c -o $@ $(SCREENSHOTGEN_CXXFLAGS) $(srcdir)/screenshot_app.cpp
250 screenshotgen_screenshot_main.o: $(srcdir)/screenshot_main.cpp
251 $(CXXC) -c -o $@ $(SCREENSHOTGEN_CXXFLAGS) $(srcdir)/screenshot_main.cpp
253 screenshotgen_guiframe.o: $(srcdir)/guiframe.cpp
254 $(CXXC) -c -o $@ $(SCREENSHOTGEN_CXXFLAGS) $(srcdir)/guiframe.cpp
256 screenshotgen_customcombo.o: $(srcdir)/customcombo.cpp
257 $(CXXC) -c -o $@ $(SCREENSHOTGEN_CXXFLAGS) $(srcdir)/customcombo.cpp
259 screenshotgen_autocapture.o: $(srcdir)/autocapture.cpp
260 $(CXXC) -c -o $@ $(SCREENSHOTGEN_CXXFLAGS) $(srcdir)/autocapture.cpp
262 screenshotgen_screenshotgen_rc.o: $(srcdir)/screenshotgen.rc
263 $(WINDRES) -i$< -o$@ --define __WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p_2) $(__DEBUG_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
266 # Include dependency info, if present:
267 @IF_GNU_MAKE@-include ./.deps/*.d
269 .PHONY: all install uninstall clean distclean screenshotgen_bundle \
270 install_screenshotgen uninstall_screenshotgen bitmaps xml