1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.1.7 (http://bakefile.sourceforge.net)
4 # Do not modify, all changes will be overwritten!
5 # =========================================================================
11 exec_prefix = @exec_prefix@
18 INSTALL_PROGRAM = @INSTALL_PROGRAM@
19 INSTALL_DIR = @INSTALL_DIR@
21 top_srcdir = @top_srcdir@
22 top_builddir = @top_builddir@
24 LDFLAGS_GUI = @LDFLAGS_GUI@
29 WX_LIB_FLAVOUR = @WX_LIB_FLAVOUR@
31 TOOLKIT_LOWERCASE = @TOOLKIT_LOWERCASE@
32 TOOLKIT_VERSION = @TOOLKIT_VERSION@
33 TOOLCHAIN_NAME = @TOOLCHAIN_NAME@
34 EXTRALIBS = @EXTRALIBS@
35 EXTRALIBS_HTML = @EXTRALIBS_HTML@
36 EXTRALIBS_GUI = @EXTRALIBS_GUI@
37 HOST_SUFFIX = @HOST_SUFFIX@
43 LIBDIRNAME = $(top_builddir)lib
44 TEX2RTF_CXXFLAGS = -D__WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p) -I$(srcdir) \
45 $(__DLLFLAG_p) -DwxUSE_GUI=0 -DNO_GUI $(CPPFLAGS) $(CXXFLAGS)
55 TEX2RTF_GUI_CXXFLAGS = -D__WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p) -I$(srcdir) \
56 $(__DLLFLAG_p) -I$(srcdir)/../../../samples $(CPPFLAGS) $(CXXFLAGS)
57 TEX2RTF_GUI_OBJECTS = \
58 $(__tex2rtf_gui___win32rc) \
59 $(__tex2rtf_gui_os2_lib_res) \
60 tex2rtf_gui_tex2rtf.o \
61 tex2rtf_gui_tex2any.o \
62 tex2rtf_gui_texutils.o \
63 tex2rtf_gui_rtfutils.o \
64 tex2rtf_gui_xlputils.o \
65 tex2rtf_gui_htmlutil.o \
66 tex2rtf_gui_readshg.o \
69 ### Conditionally set variables: ###
71 @COND_DEPS_TRACKING_0@CXXC = $(CXX)
72 @COND_DEPS_TRACKING_1@CXXC = $(top_builddir)./bk-deps $(CXX)
73 @COND_USE_GUI_0@PORTNAME = base
74 @COND_USE_GUI_1@PORTNAME = $(TOOLKIT_LOWERCASE)$(TOOLKIT_VERSION)
75 @COND_TOOLKIT_MAC@WXBASEPORT = _carbon
76 @COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@WXDEBUGFLAG = d
77 @COND_DEBUG_FLAG_1@WXDEBUGFLAG = d
78 @COND_UNICODE_1@WXUNICODEFLAG = u
79 @COND_WXUNIV_1@WXUNIVNAME = univ
80 @COND_MONOLITHIC_0@EXTRALIBS_FOR_BASE = $(EXTRALIBS)
81 @COND_MONOLITHIC_1@EXTRALIBS_FOR_BASE = $(EXTRALIBS) $(EXTRALIBS_GUI)
82 @COND_MONOLITHIC_0@EXTRALIBS_FOR_GUI = $(EXTRALIBS_GUI)
83 @COND_MONOLITHIC_1@EXTRALIBS_FOR_GUI =
84 @COND_PLATFORM_MAC_1@__tex2rtf___mac_setfilecmd = \
85 @COND_PLATFORM_MAC_1@ $(SETFILE) -t APPL tex2rtf$(EXEEXT)
86 @COND_USE_GUI_1@__tex2rtf_gui___depname = tex2rtf_gui$(EXEEXT)
87 @COND_PLATFORM_MAC_1@__tex2rtf_gui___mac_setfilecmd = \
88 @COND_PLATFORM_MAC_1@ $(SETFILE) -a C tex2rtf_gui$(EXEEXT)
89 @COND_PLATFORM_MAC_1@__tex2rtf_gui___mac_rezcmd = $(__MACOSX_RESOURCES_p_1)
90 @COND_WXUNIV_1@__WXUNIV_DEFINE_p_4 = -d __WXUNIVERSAL__
91 @COND_WXUNIV_1@__WXUNIV_DEFINE_p_5 = --define __WXUNIVERSAL__
92 @COND_SHARED_1@__DLLFLAG_p_4 = -d WXUSINGDLL
93 @COND_SHARED_1@__DLLFLAG_p_5 = --define WXUSINGDLL
94 COND_PLATFORM_OS2_1___tex2rtf_gui___os2_emxbindcmd = $(NM) \
95 tex2rtf_gui$(EXEEXT) | if grep -q pmwin.763 ; then emxbind -ep \
96 tex2rtf_gui$(EXEEXT) ; fi
97 @COND_PLATFORM_OS2_1@__tex2rtf_gui___os2_emxbindcmd = $(COND_PLATFORM_OS2_1___tex2rtf_gui___os2_emxbindcmd)
98 @COND_PLATFORM_WIN32_1@__tex2rtf_gui___win32rc = tex2rtf_gui_sample_rc.o
99 @COND_PLATFORM_OS2_1@__tex2rtf_gui_os2_lib_res = \
100 @COND_PLATFORM_OS2_1@ $(top_srcdir)/include/wx/os2/wx.res
101 COND_MONOLITHIC_0___WXLIB_HTML_p = \
102 -lwx_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_html-$(WX_RELEASE)$(HOST_SUFFIX)
103 @COND_MONOLITHIC_0@__WXLIB_HTML_p = $(COND_MONOLITHIC_0___WXLIB_HTML_p)
104 COND_MONOLITHIC_0___WXLIB_CORE_p = \
105 -lwx_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core-$(WX_RELEASE)$(HOST_SUFFIX)
106 @COND_MONOLITHIC_0@__WXLIB_CORE_p = $(COND_MONOLITHIC_0___WXLIB_CORE_p)
107 @COND_USE_GUI_1@__install_tex2rtf_gui___depname = install_tex2rtf_gui
108 COND_TOOLKIT_MAC___MACOSX_RESOURCES_p_1 = $(RESCOMP) -d __DARWIN__ -t APPL -d \
109 __WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p_4) -i $(srcdir) $(__DLLFLAG_p_4) -i \
110 $(srcdir)/../../../samples -i $(top_srcdir)/include -o tex2rtf_gui$(EXEEXT) \
111 Carbon.r $(LIBDIRNAME)/libwx_$(TOOLCHAIN_NAME).4.r sample.r
112 @COND_TOOLKIT_MAC@__MACOSX_RESOURCES_p_1 = $(COND_TOOLKIT_MAC___MACOSX_RESOURCES_p_1)
113 @COND_WXUNIV_1@__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
114 @COND_SHARED_1@__DLLFLAG_p = -DWXUSINGDLL
115 COND_MONOLITHIC_0___WXLIB_BASE_p = \
116 -lwx_base$(WXBASEPORT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX)
117 @COND_MONOLITHIC_0@__WXLIB_BASE_p = $(COND_MONOLITHIC_0___WXLIB_BASE_p)
118 COND_MONOLITHIC_1___WXLIB_MONO_p = \
119 -lwx_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX)
120 @COND_MONOLITHIC_1@__WXLIB_MONO_p = $(COND_MONOLITHIC_1___WXLIB_MONO_p)
121 @COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@__LIB_TIFF_p \
122 @COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@ = \
123 @COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@ -lwxtiff$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX)
124 @COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@__LIB_JPEG_p \
125 @COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@ = \
126 @COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@ -lwxjpeg$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX)
127 @COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@__LIB_PNG_p \
128 @COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@ = \
129 @COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@ -lwxpng$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX)
130 @COND_WXUSE_ZLIB_BUILTIN@__LIB_ZLIB_p = \
131 @COND_WXUSE_ZLIB_BUILTIN@ -lwxzlib$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX)
132 @COND_WXUSE_ODBC_BUILTIN@__LIB_ODBC_p = \
133 @COND_WXUSE_ODBC_BUILTIN@ -lwxodbc$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX)
134 COND_WXUSE_REGEX_BUILTIN___LIB_REGEX_p = \
135 -lwxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX)
136 @COND_WXUSE_REGEX_BUILTIN@__LIB_REGEX_p = $(COND_WXUSE_REGEX_BUILTIN___LIB_REGEX_p)
137 @COND_WXUSE_EXPAT_BUILTIN@__LIB_EXPAT_p = \
138 @COND_WXUSE_EXPAT_BUILTIN@ -lwxexpat$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX)
142 all: tex2rtf$(EXEEXT) $(__tex2rtf_gui___depname)
144 install: all install_tex2rtf $(__install_tex2rtf_gui___depname)
148 install-strip: install
149 $(STRIP) $(DESTDIR)$(bindir)/tex2rtf$(EXEEXT)
150 $(STRIP) $(DESTDIR)$(bindir)/tex2rtf_gui$(EXEEXT)
153 rm -rf ./.deps ./.pch
155 rm -f tex2rtf$(EXEEXT)
156 rm -f tex2rtf_gui$(EXEEXT)
159 rm -f config.cache config.log config.status bk-deps bk-make-pch shared-ld-sh Makefile
161 tex2rtf$(EXEEXT): $(TEX2RTF_OBJECTS)
162 $(CXX) -o $@ $(TEX2RTF_OBJECTS) $(LDFLAGS) -L$(LIBDIRNAME) $(__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_FOR_BASE)
164 $(__tex2rtf___mac_setfilecmd)
167 $(INSTALL_DIR) $(DESTDIR)$(bindir)
168 $(INSTALL_PROGRAM) tex2rtf$(EXEEXT) $(DESTDIR)$(bindir)
170 @COND_USE_GUI_1@tex2rtf_gui$(EXEEXT): $(TEX2RTF_GUI_OBJECTS) $(__tex2rtf_gui___win32rc)
171 @COND_USE_GUI_1@ $(CXX) -o $@ $(TEX2RTF_GUI_OBJECTS) $(LDFLAGS) -L$(LIBDIRNAME) $(LDFLAGS_GUI) $(__WXLIB_HTML_p) $(EXTRALIBS_HTML) $(__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_FOR_BASE) $(EXTRALIBS_FOR_GUI)
172 @COND_USE_GUI_1@ $(__tex2rtf_gui___mac_rezcmd)
173 @COND_USE_GUI_1@ $(__tex2rtf_gui___mac_setfilecmd)
174 @COND_USE_GUI_1@ $(__tex2rtf_gui___os2_emxbindcmd)
176 @COND_USE_GUI_1@install_tex2rtf_gui:
177 @COND_USE_GUI_1@ $(INSTALL_DIR) $(DESTDIR)$(bindir)
178 @COND_USE_GUI_1@ $(INSTALL_PROGRAM) tex2rtf_gui$(EXEEXT) $(DESTDIR)$(bindir)
180 tex2rtf_tex2rtf.o: $(srcdir)/tex2rtf.cpp
181 $(CXXC) -c -o $@ $(TEX2RTF_CXXFLAGS) $(srcdir)/tex2rtf.cpp
183 tex2rtf_tex2any.o: $(srcdir)/tex2any.cpp
184 $(CXXC) -c -o $@ $(TEX2RTF_CXXFLAGS) $(srcdir)/tex2any.cpp
186 tex2rtf_texutils.o: $(srcdir)/texutils.cpp
187 $(CXXC) -c -o $@ $(TEX2RTF_CXXFLAGS) $(srcdir)/texutils.cpp
189 tex2rtf_rtfutils.o: $(srcdir)/rtfutils.cpp
190 $(CXXC) -c -o $@ $(TEX2RTF_CXXFLAGS) $(srcdir)/rtfutils.cpp
192 tex2rtf_xlputils.o: $(srcdir)/xlputils.cpp
193 $(CXXC) -c -o $@ $(TEX2RTF_CXXFLAGS) $(srcdir)/xlputils.cpp
195 tex2rtf_htmlutil.o: $(srcdir)/htmlutil.cpp
196 $(CXXC) -c -o $@ $(TEX2RTF_CXXFLAGS) $(srcdir)/htmlutil.cpp
198 tex2rtf_readshg.o: $(srcdir)/readshg.cpp
199 $(CXXC) -c -o $@ $(TEX2RTF_CXXFLAGS) $(srcdir)/readshg.cpp
201 tex2rtf_table.o: $(srcdir)/table.cpp
202 $(CXXC) -c -o $@ $(TEX2RTF_CXXFLAGS) $(srcdir)/table.cpp
204 tex2rtf_gui_sample_rc.o: $(srcdir)/../../../samples/sample.rc
205 $(RESCOMP) -i$< -o$@ --define __WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p_5) --include-dir $(srcdir) $(__DLLFLAG_p_5) --include-dir $(srcdir)/../../../samples --include-dir $(top_srcdir)/include
207 tex2rtf_gui_tex2rtf.o: $(srcdir)/tex2rtf.cpp
208 $(CXXC) -c -o $@ $(TEX2RTF_GUI_CXXFLAGS) $(srcdir)/tex2rtf.cpp
210 tex2rtf_gui_tex2any.o: $(srcdir)/tex2any.cpp
211 $(CXXC) -c -o $@ $(TEX2RTF_GUI_CXXFLAGS) $(srcdir)/tex2any.cpp
213 tex2rtf_gui_texutils.o: $(srcdir)/texutils.cpp
214 $(CXXC) -c -o $@ $(TEX2RTF_GUI_CXXFLAGS) $(srcdir)/texutils.cpp
216 tex2rtf_gui_rtfutils.o: $(srcdir)/rtfutils.cpp
217 $(CXXC) -c -o $@ $(TEX2RTF_GUI_CXXFLAGS) $(srcdir)/rtfutils.cpp
219 tex2rtf_gui_xlputils.o: $(srcdir)/xlputils.cpp
220 $(CXXC) -c -o $@ $(TEX2RTF_GUI_CXXFLAGS) $(srcdir)/xlputils.cpp
222 tex2rtf_gui_htmlutil.o: $(srcdir)/htmlutil.cpp
223 $(CXXC) -c -o $@ $(TEX2RTF_GUI_CXXFLAGS) $(srcdir)/htmlutil.cpp
225 tex2rtf_gui_readshg.o: $(srcdir)/readshg.cpp
226 $(CXXC) -c -o $@ $(TEX2RTF_GUI_CXXFLAGS) $(srcdir)/readshg.cpp
228 tex2rtf_gui_table.o: $(srcdir)/table.cpp
229 $(CXXC) -c -o $@ $(TEX2RTF_GUI_CXXFLAGS) $(srcdir)/table.cpp
232 # Include dependency info, if present:
233 @IF_GNU_MAKE@-include .deps/*.d
235 .PHONY: all install uninstall clean distclean install_tex2rtf install_tex2rtf_gui