]>
Commit | Line | Data |
---|---|---|
cbd63f42 VS |
1 | # ========================================================================= |
2 | # This makefile was generated by | |
3fd9c298 | 3 | # Bakefile 0.1.4 (http://bakefile.sourceforge.net) |
cbd63f42 VS |
4 | # Do not modify, all changes will be overwritten! |
5 | # ========================================================================= | |
457814b5 | 6 | |
549c6f67 | 7 | |
cbd63f42 | 8 | @MAKE_SET@ |
457814b5 | 9 | |
3af038c0 VS |
10 | prefix = @prefix@ |
11 | exec_prefix = @exec_prefix@ | |
b1169abb | 12 | INSTALL = @INSTALL@ |
b17c1746 DE |
13 | EXEEXT = @EXEEXT@ |
14 | RESCOMP = @RESCOMP@ | |
15 | SETFILE = @SETFILE@ | |
16 | NM = @NM@ | |
17 | srcdir = @srcdir@ | |
18 | top_srcdir = @top_srcdir@ | |
19 | top_builddir = @top_builddir@ | |
20 | LDFLAGS_GUI = @LDFLAGS_GUI@ | |
3af038c0 | 21 | CXX = @CXX@ |
cbd63f42 | 22 | CXXFLAGS = @CXXFLAGS@ |
b17c1746 DE |
23 | CPPFLAGS = @CPPFLAGS@ |
24 | LDFLAGS = @LDFLAGS@ | |
589e20d0 | 25 | WX_LIB_FLAVOUR = @WX_LIB_FLAVOUR@ |
b17c1746 DE |
26 | TOOLKIT = @TOOLKIT@ |
27 | TOOLKIT_LOWERCASE = @TOOLKIT_LOWERCASE@ | |
28 | TOOLKIT_VERSION = @TOOLKIT_VERSION@ | |
29 | TOOLCHAIN_NAME = @TOOLCHAIN_NAME@ | |
cbd63f42 | 30 | EXTRALIBS = @EXTRALIBS@ |
6c974d0b | 31 | EXTRALIBS_GUI = @EXTRALIBS_GUI@ |
250700e4 | 32 | HOST_SUFFIX = @HOST_SUFFIX@ |
3af038c0 | 33 | SAMPLES_RPATH_FLAG = @SAMPLES_RPATH_FLAG@ |
ab892b95 | 34 | SAMPLES_RPATH_POSTLINK = @SAMPLES_RPATH_POSTLINK@ |
457814b5 | 35 | |
fcf61db4 VS |
36 | ### Variables: ### |
37 | ||
b71531ad | 38 | DESTDIR = |
c4839ccf | 39 | WX_VERSION = 2.5.2 |
ceec2216 | 40 | WX_RELEASE = 2.5 |
b17c1746 | 41 | LIBDIRNAME = $(top_builddir)lib |
9bfe7ad9 VS |
42 | DOCVIEW_CXXFLAGS = -D__WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p) -I$(srcdir) \ |
43 | $(__DLLFLAG_p) -I$(srcdir)/../../samples $(CPPFLAGS) $(CXXFLAGS) | |
25a73439 | 44 | DOCVIEW_OBJECTS = \ |
a4ad36cd | 45 | $(__docview_os2_lib_res) \ |
25a73439 VS |
46 | docview_docview.o \ |
47 | docview_doc.o \ | |
48 | docview_view.o \ | |
49 | $(__docview___win32rc) | |
fcf61db4 | 50 | |
cbd63f42 | 51 | ### Conditionally set variables: ### |
36825681 | 52 | |
b328fad3 VS |
53 | @COND_DEPS_TRACKING_0@CXXC = $(CXX) |
54 | @COND_DEPS_TRACKING_1@CXXC = $(top_builddir)./bk-deps $(CXX) | |
3af038c0 VS |
55 | @COND_USE_GUI_0@PORTNAME = base |
56 | @COND_USE_GUI_1@PORTNAME = $(TOOLKIT_LOWERCASE)$(TOOLKIT_VERSION) | |
b1169abb | 57 | @COND_TOOLKIT_MAC@WXBASEPORT = _carbon |
25a73439 VS |
58 | @COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@WXDEBUGFLAG = d |
59 | @COND_DEBUG_FLAG_1@WXDEBUGFLAG = d | |
3af038c0 | 60 | @COND_UNICODE_1@WXUNICODEFLAG = u |
fcf61db4 | 61 | @COND_WXUNIV_1@WXUNIVNAME = univ |
b17c1746 | 62 | @COND_TOOLKIT_MAC@MACOSX_RESOURCES = Carbon.r \ |
c4839ccf | 63 | @COND_TOOLKIT_MAC@ $(LIBDIRNAME)/libwx_$(TOOLCHAIN_NAME).2.r sample.r |
b17c1746 DE |
64 | @COND_PLATFORM_MAC_1@__docview___mac_setfilecmd = \ |
65 | @COND_PLATFORM_MAC_1@ $(SETFILE) -a C docview$(EXEEXT) | |
66 | COND_PLATFORM_MAC_1___docview___mac_rezcmd = $(RESCOMP) -d __DARWIN__ -t APPL -d \ | |
67 | __WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p_1) -i $(srcdir) $(__DLLFLAG_p_1) -i \ | |
c3255f5f DE |
68 | $(srcdir)/../../samples -i $(top_srcdir)/include -o docview$(EXEEXT) \ |
69 | $(MACOSX_RESOURCES) chart.r doc.r docview.r mondrian.r | |
b17c1746 DE |
70 | @COND_PLATFORM_MAC_1@__docview___mac_rezcmd = $(COND_PLATFORM_MAC_1___docview___mac_rezcmd) |
71 | @COND_WXUNIV_1@__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__ | |
72 | @COND_WXUNIV_1@__WXUNIV_DEFINE_p_1 = -d __WXUNIVERSAL__ | |
73 | @COND_WXUNIV_1@__WXUNIV_DEFINE_p_2 = --define __WXUNIVERSAL__ | |
3af038c0 | 74 | @COND_SHARED_1@__DLLFLAG_p = -DWXUSINGDLL |
fcf61db4 | 75 | @COND_SHARED_1@__DLLFLAG_p_1 = -d WXUSINGDLL |
fcf61db4 | 76 | @COND_SHARED_1@__DLLFLAG_p_2 = --define WXUSINGDLL |
b17c1746 DE |
77 | COND_PLATFORM_OS2_1___docview___os2_emxbindcmd = $(NM) docview$(EXEEXT) | if \ |
78 | grep -q pmwin.763 ; then emxbind -ep docview$(EXEEXT) ; fi | |
79 | @COND_PLATFORM_OS2_1@__docview___os2_emxbindcmd = $(COND_PLATFORM_OS2_1___docview___os2_emxbindcmd) | |
80 | @COND_PLATFORM_OS2_1@__docview_os2_lib_res = \ | |
81 | @COND_PLATFORM_OS2_1@ $(top_srcdir)/include/wx/os2/wx.res | |
82 | @COND_PLATFORM_MACOSX_1@__docview_bundle___depname = docview_bundle | |
c4839ccf JS |
83 | @COND_TOOLKIT_COCOA@____docview_BUNDLE_TGT_REF_DEP = \ |
84 | @COND_TOOLKIT_COCOA@ docview.app/Contents/PkgInfo | |
85 | @COND_TOOLKIT_MAC@____docview_BUNDLE_TGT_REF_DEP = \ | |
86 | @COND_TOOLKIT_MAC@ docview.app/Contents/PkgInfo | |
b17c1746 | 87 | COND_MONOLITHIC_0___WXLIB_CORE_p = \ |
ceec2216 | 88 | -lwx_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core-2.5$(HOST_SUFFIX) |
b17c1746 | 89 | @COND_MONOLITHIC_0@__WXLIB_CORE_p = $(COND_MONOLITHIC_0___WXLIB_CORE_p) |
ceec2216 RL |
90 | COND_MONOLITHIC_0___WXLIB_BASE_p = \ |
91 | -lwx_base$(WXBASEPORT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-2.5$(HOST_SUFFIX) | |
92 | @COND_MONOLITHIC_0@__WXLIB_BASE_p = $(COND_MONOLITHIC_0___WXLIB_BASE_p) | |
b17c1746 DE |
93 | @COND_PLATFORM_WIN32_1@__docview___win32rc = docview_docview_rc.o |
94 | COND_MONOLITHIC_1___WXLIB_MONO_p = \ | |
ceec2216 | 95 | -lwx_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-2.5$(HOST_SUFFIX) |
b17c1746 DE |
96 | @COND_MONOLITHIC_1@__WXLIB_MONO_p = $(COND_MONOLITHIC_1___WXLIB_MONO_p) |
97 | @COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@__LIB_TIFF_p \ | |
98 | @COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@ = \ | |
ceec2216 | 99 | @COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@ -lwxtiff$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX) |
25a73439 VS |
100 | @COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@__LIB_JPEG_p \ |
101 | @COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@ = \ | |
ceec2216 | 102 | @COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@ -lwxjpeg$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX) |
25a73439 VS |
103 | @COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@__LIB_PNG_p \ |
104 | @COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@ = \ | |
ceec2216 | 105 | @COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@ -lwxpng$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX) |
250700e4 | 106 | @COND_WXUSE_ZLIB_BUILTIN@__LIB_ZLIB_p = \ |
ceec2216 | 107 | @COND_WXUSE_ZLIB_BUILTIN@ -lwxzlib$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX) |
b17c1746 DE |
108 | @COND_WXUSE_ODBC_BUILTIN@__LIB_ODBC_p = \ |
109 | @COND_WXUSE_ODBC_BUILTIN@ -lwxodbc$(WXDEBUGFLAG)$(HOST_SUFFIX) | |
ceec2216 RL |
110 | COND_WXUSE_REGEX_BUILTIN___LIB_REGEX_p = \ |
111 | -lwxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX) | |
112 | @COND_WXUSE_REGEX_BUILTIN@__LIB_REGEX_p = $(COND_WXUSE_REGEX_BUILTIN___LIB_REGEX_p) | |
b17c1746 | 113 | @COND_WXUSE_EXPAT_BUILTIN@__LIB_EXPAT_p = \ |
ceec2216 | 114 | @COND_WXUSE_EXPAT_BUILTIN@ -lwxexpat$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX) |
457814b5 | 115 | |
cbd63f42 | 116 | ### Targets: ### |
457814b5 | 117 | |
b328fad3 | 118 | all: docview$(EXEEXT) $(__docview_bundle___depname) |
cbd63f42 | 119 | |
b17c1746 DE |
120 | install: all |
121 | ||
122 | uninstall: | |
123 | ||
124 | install-strip: install | |
125 | ||
3af038c0 | 126 | clean: |
ab892b95 | 127 | rm -rf ./.deps ./.pch |
25a73439 | 128 | rm -f ./*.o |
b328fad3 | 129 | rm -f docview$(EXEEXT) |
ab892b95 | 130 | rm -rf docview.app |
49b0a3aa | 131 | |
3af038c0 | 132 | distclean: clean |
ab892b95 | 133 | rm -f configure config.cache config.log config.status bk-deps bk-make-pch shared-ld-sh Makefile |
cbd63f42 | 134 | |
b328fad3 | 135 | docview$(EXEEXT): $(DOCVIEW_OBJECTS) $(__docview___win32rc) |
ec08d395 | 136 | $(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) |
49b0a3aa VS |
137 | $(__docview___mac_rezcmd) |
138 | $(__docview___mac_setfilecmd) | |
ec08d395 | 139 | $(__docview___os2_emxbindcmd) |
ab892b95 VS |
140 | $(SAMPLES_RPATH_POSTLINK) |
141 | ||
c4839ccf | 142 | docview.app/Contents/PkgInfo: docview$(EXEEXT) $(top_srcdir)/src/mac/carbon/Info.plist.in $(LIBDIRNAME)/libwx_$(TOOLCHAIN_NAME).2.rsrc $(top_srcdir)/src/mac/carbon/wxmac.icns |
ab892b95 VS |
143 | mkdir -p docview.app/Contents |
144 | mkdir -p docview.app/Contents/MacOS | |
145 | mkdir -p docview.app/Contents/Resources | |
146 | ||
147 | ||
148 | sed -e "s/IDENTIFIER/`echo $(srcdir) | sed -e 's,\.\./,,g' | sed -e 's,/,.,g'`/" \ | |
149 | -e "s/EXECUTABLE/docview/" \ | |
75a0a7b7 | 150 | -e "s/VERSION/$(WX_VERSION)/" \ |
0b0efa9a | 151 | $(top_srcdir)/src/mac/carbon/Info.plist.in >docview.app/Contents/Info.plist |
ab892b95 VS |
152 | |
153 | ||
154 | echo -n "APPL????" >docview.app/Contents/PkgInfo | |
155 | ||
156 | ||
b328fad3 | 157 | ln -f docview$(EXEEXT) docview.app/Contents/MacOS/docview |
ab892b95 VS |
158 | |
159 | ||
c4839ccf JS |
160 | cp -f $(LIBDIRNAME)/libwx_$(TOOLCHAIN_NAME).2.rsrc docview.app/Contents/Resources/docview.rsrc |
161 | cp -f $(top_srcdir)/src/mac/carbon/wxmac.icns docview.app/Contents/Resources/wxmac.icns | |
ab892b95 | 162 | |
c4839ccf | 163 | @COND_PLATFORM_MACOSX_1@docview_bundle: $(____docview_BUNDLE_TGT_REF_DEP) |
cbd63f42 | 164 | |
3af038c0 | 165 | docview_docview.o: $(srcdir)/docview.cpp |
b328fad3 | 166 | $(CXXC) -c -o $@ $(DOCVIEW_CXXFLAGS) $< |
fcf61db4 | 167 | |
b17c1746 DE |
168 | docview_doc.o: $(srcdir)/doc.cpp |
169 | $(CXXC) -c -o $@ $(DOCVIEW_CXXFLAGS) $< | |
3af038c0 VS |
170 | |
171 | docview_view.o: $(srcdir)/view.cpp | |
b328fad3 | 172 | $(CXXC) -c -o $@ $(DOCVIEW_CXXFLAGS) $< |
cbd63f42 | 173 | |
b17c1746 | 174 | docview_docview_rc.o: $(srcdir)/docview.rc |
c3255f5f | 175 | $(RESCOMP) -i$< -o$@ --define __WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p_2) --include-dir $(srcdir) $(__DLLFLAG_p_2) --include-dir $(srcdir)/../../samples --include-dir $(top_srcdir)/include |
cbd63f42 VS |
176 | |
177 | ||
178 | # Include dependency info, if present: | |
49b0a3aa | 179 | @IF_GNU_MAKE@-include .deps/*.d |
cbd63f42 | 180 | |
b17c1746 | 181 | .PHONY: all install uninstall clean distclean docview_bundle |