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 DOCVIEW_CXXFLAGS = -D__WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p) \
39 -I$(top_srcdir)/include -I$(srcdir) $(__DLLFLAG_p) \
40 -I$(srcdir)/../../samples $(CPPFLAGS) $(CXXFLAGS)
42 $(__docview_os2_lib_res) \
46 $(__docview___win32rc)
47 LIBDIRNAME = $(top_builddir)lib
50 ### Conditionally set variables: ###
52 @COND_DEPS_TRACKING_0@CXXC = $(CXX)
53 @COND_DEPS_TRACKING_1@CXXC = $(top_builddir)./bk-deps $(CXX)
54 @COND_TOOLKIT_MAC@MACOSX_RESOURCES = Carbon.r \
55 @COND_TOOLKIT_MAC@ $(LIBDIRNAME)/libwx_$(TOOLCHAIN_NAME).1.r sample.r
56 @COND_USE_GUI_0@PORTNAME = base
57 @COND_USE_GUI_1@PORTNAME = $(TOOLKIT_LOWERCASE)$(TOOLKIT_VERSION)
58 @COND_TOOLKIT_MAC@WXBASEPORT = _carbon
59 @COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@WXDEBUGFLAG = d
60 @COND_DEBUG_FLAG_1@WXDEBUGFLAG = d
61 @COND_UNICODE_1@WXUNICODEFLAG = u
62 @COND_WXUNIV_1@WXUNIVNAME = univ
63 @COND_SHARED_1@__DLLFLAG_p = -DWXUSINGDLL
64 @COND_SHARED_1@__DLLFLAG_p_1 = -d WXUSINGDLL
65 @COND_SHARED_1@__DLLFLAG_p_2 = --define WXUSINGDLL
66 @COND_WXUSE_EXPAT_BUILTIN@__LIB_EXPAT_p = \
67 @COND_WXUSE_EXPAT_BUILTIN@ -lwxexpat$(WXDEBUGFLAG)$(HOST_SUFFIX)
68 @COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@__LIB_JPEG_p \
69 @COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@ = \
70 @COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@ -lwxjpeg$(WXDEBUGFLAG)$(HOST_SUFFIX)
71 @COND_WXUSE_ODBC_BUILTIN@__LIB_ODBC_p = \
72 @COND_WXUSE_ODBC_BUILTIN@ -lwxodbc$(WXDEBUGFLAG)$(HOST_SUFFIX)
73 @COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@__LIB_PNG_p \
74 @COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@ = \
75 @COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@ -lwxpng$(WXDEBUGFLAG)$(HOST_SUFFIX)
76 @COND_WXUSE_REGEX_BUILTIN@__LIB_REGEX_p = \
77 @COND_WXUSE_REGEX_BUILTIN@ -lwxregex$(WXDEBUGFLAG)$(HOST_SUFFIX)
78 @COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@__LIB_TIFF_p \
79 @COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@ = \
80 @COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@ -lwxtiff$(WXDEBUGFLAG)$(HOST_SUFFIX)
81 @COND_WXUSE_ZLIB_BUILTIN@__LIB_ZLIB_p = \
82 @COND_WXUSE_ZLIB_BUILTIN@ -lwxzlib$(WXDEBUGFLAG)$(HOST_SUFFIX)
83 @COND_MONOLITHIC_0@__WXLIB_BASE_p = \
84 @COND_MONOLITHIC_0@ -lwx_base$(WXBASEPORT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)-2.5$(HOST_SUFFIX)
85 COND_MONOLITHIC_0___WXLIB_CORE_p = \
86 -lwx_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core-2.5$(HOST_SUFFIX)
87 @COND_MONOLITHIC_0@__WXLIB_CORE_p = $(COND_MONOLITHIC_0___WXLIB_CORE_p)
88 COND_MONOLITHIC_1___WXLIB_MONO_p = \
89 -lwx_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)-2.5$(HOST_SUFFIX)
90 @COND_MONOLITHIC_1@__WXLIB_MONO_p = $(COND_MONOLITHIC_1___WXLIB_MONO_p)
91 @COND_WXUNIV_1@__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
92 @COND_WXUNIV_1@__WXUNIV_DEFINE_p_1 = -d __WXUNIVERSAL__
93 @COND_WXUNIV_1@__WXUNIV_DEFINE_p_2 = --define __WXUNIVERSAL__
94 COND_PLATFORM_MAC_1___docview___mac_rezcmd = $(RESCOMP) -d __DARWIN__ -t APPL -d \
95 __WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p_1) -i $(top_srcdir)/include -i $(srcdir) \
96 $(__DLLFLAG_p_1) -i $(srcdir)/../../samples -o docview$(EXEEXT) \
97 $(MACOSX_RESOURCES) chart.r doc.r docview.r mondrian.r
98 @COND_PLATFORM_MAC_1@__docview___mac_rezcmd = $(COND_PLATFORM_MAC_1___docview___mac_rezcmd)
99 @COND_PLATFORM_MAC_1@__docview___mac_setfilecmd = \
100 @COND_PLATFORM_MAC_1@ $(SETFILE) -a C docview$(EXEEXT)
101 COND_PLATFORM_OS2_1___docview___os2_emxbindcmd = $(NM) docview$(EXEEXT) | if \
102 grep -q pmwin.763 ; then emxbind -ep docview$(EXEEXT) ; fi
103 @COND_PLATFORM_OS2_1@__docview___os2_emxbindcmd = $(COND_PLATFORM_OS2_1___docview___os2_emxbindcmd)
104 @COND_PLATFORM_WIN32_1@__docview___win32rc = docview_docview_rc.o
105 @COND_PLATFORM_MACOSX_1@__docview_bundle___depname = docview_bundle
106 @COND_PLATFORM_OS2_1@__docview_os2_lib_res = \
107 @COND_PLATFORM_OS2_1@ $(top_srcdir)/include/wx/os2/wx.res
111 all: docview$(EXEEXT) $(__docview_bundle___depname)
114 rm -rf ./.deps ./.pch
116 rm -f docview$(EXEEXT)
120 rm -f configure config.cache config.log config.status bk-deps bk-make-pch shared-ld-sh Makefile
122 docview$(EXEEXT): $(DOCVIEW_OBJECTS) $(__docview___win32rc)
123 $(CXX) -o $@ $(DOCVIEW_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)
124 $(__docview___mac_rezcmd)
125 $(__docview___mac_setfilecmd)
126 $(__docview___os2_emxbindcmd)
127 $(SAMPLES_RPATH_POSTLINK)
129 docview.app/Contents/PkgInfo: docview$(EXEEXT) $(top_srcdir)/src/mac/Info.plist.in $(LIBDIRNAME)/libwx_$(TOOLCHAIN_NAME).1.rsrc $(top_srcdir)/src/mac/wxmac.icns
130 mkdir -p docview.app/Contents
131 mkdir -p docview.app/Contents/MacOS
132 mkdir -p docview.app/Contents/Resources
135 sed -e "s/IDENTIFIER/`echo $(srcdir) | sed -e 's,\.\./,,g' | sed -e 's,/,.,g'`/" \
136 -e "s/EXECUTABLE/docview/" \
137 -e "s/VERSION/$(WX_VERSION)/" \
138 $(top_srcdir)/src/mac/Info.plist.in >docview.app/Contents/Info.plist
141 echo -n "APPL????" >docview.app/Contents/PkgInfo
144 ln -f docview$(EXEEXT) docview.app/Contents/MacOS/docview
147 ln -sf $(LIBDIRNAME)/libwx_$(TOOLCHAIN_NAME).1.rsrc docview.app/Contents/Resources/docview.rsrc
148 ln -sf $(top_srcdir)/src/mac/wxmac.icns docview.app/Contents/Resources/wxmac.icns
150 @COND_PLATFORM_MACOSX_1@docview_bundle: docview.app/Contents/PkgInfo
152 docview_doc.o: $(srcdir)/doc.cpp
153 $(CXXC) -c -o $@ $(DOCVIEW_CXXFLAGS) $<
155 docview_docview.o: $(srcdir)/docview.cpp
156 $(CXXC) -c -o $@ $(DOCVIEW_CXXFLAGS) $<
158 docview_docview_rc.o: $(srcdir)/docview.rc
159 $(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
161 docview_view.o: $(srcdir)/view.cpp
162 $(CXXC) -c -o $@ $(DOCVIEW_CXXFLAGS) $<
166 install-strip: install
171 # Include dependency info, if present:
172 @IF_GNU_MAKE@-include .deps/*.d
174 .PHONY: all clean distclean docview_bundle install uninstall